spinlock_t rx_lock; struct napi_struct napi[__MT_RXQ_MAX]; struct sk_buff_head rx_skb[__MT_RXQ_MAX]; struct tasklet_struct irq_tasklet; struct list_head txwi_cache; struct list_head rxwi_cache; struct mt76_queue *q_mcu[__MT_MCUQ_MAX]; struct mt76_queue q_rx[__MT_RXQ_MAX...
netdev_info(qca->net_dev,"Failed to allocate RX sk_buff.\n");return-ENOBUFS; }return0; } 开发者ID:Lyude,项目名称:linux,代码行数:29,代码来源:qca_spi.c 示例2: roq_alloc_rx_buffers ▲点赞 6▼ staticintroq_alloc_rx_buffers(struct roq_eth_priv *priv){structdevice*dev= &priv->nde...
NUM_QRX_DESC *sizeof(struct PDMA_rxdesc), &ei_local->qrx_ring_phy, GFP_KERNEL);if(!ei_local->qrx_ring)gotoerr_cleanup;/* allocate QDMA RX stub buffer */ei_local->qrx_buff =__dev_alloc_skb(MAX_RX_LENGTH + NET_IP_ALIGN, GFP_KERNEL);if...
RX_FAULT EM-551 %L2-10GE_PLIM-2-RX_UNKNOWN EM-551 %L2-10GE_PLIM-2-STARTUP EM-551 %L2-10GE_PLIM-2-UNSUP EM-552 %L2-10GE_PLIM-2-XGXS_RX_SYNC EM-552 %L2-10GE_PLIM-2-XGXS_TX_SYNC EM-552 %L2-10GE_PLIM-3-FAULTY_XFP EM-552 %L2-10GE_PLIM-3-OIM_ERR EM-552 %L2-10GE_...
SIZE_PTR alignment=0;structsk_buff*pskb=NULL;printk("%s\n", __func__);#ifdefCONFIG_USE_USB_BUFFER_ALLOC_RXfor(i=0; i<NR_RECVBUFF; i++) { rtk_buf_mem[i] =usb_buffer_alloc(dev, size, (in_interrupt() ? GFP_ATOMIC : GFP_KERNEL), dma); ...
fep->rx_skbuff = (struct sk_buff **)&fep[1]; fep->tx_skbuff = fep->rx_skbuff + fpi->rx_ring; spin_lock_init(&fep->lock); spin_lock_init(&fep->tx_lock); mac_addr = of_get_mac_address(ofdev->dev.of_node);if(mac_addr)memcpy(ndev->dev_addr, mac_addr,6); ...
printk("error in read_buff's memory allocation...\n"); unregister_chrdev_region(p_device_id,1); kfree(my_dev); release_region(base_addr,NO_OF_PORTS);return-ENOMEM; } printk("5>kfifo_init(&(my_dev->read_kfifo)...!\n"); ...
*/staticinttemac_dma_bd_init(struct net_device *ndev){structtemac_local*lp=netdev_priv(ndev);structsk_buff*skb;inti; lp->rx_skb = kzalloc(sizeof(*lp->rx_skb) * RX_BD_NUM, GFP_KERNEL);if(!lp->rx_skb) { dev_err(&ndev->dev,"can't allocate memory for DMA RX buffer\n")...
init_usb_anchor(&data->rx_anchor); hdev =hci_alloc_dev();if(!hdev) { kfree(data);return-ENOMEM; } hdev->bus = HCI_USB; hdev->driver_data = data; data->hdev = hdev; SET_HCIDEV_DEV(hdev, &intf->dev); hdev->open = bpa10x_open; ...
cur_tx_buf = kmalloc(PKT_BUFF_SIZE, GFP_KERNEL);if(!cur_tx_buf) {gotoerror; } wq =alloc_workqueue("csma_wq", WQ_HIGHPRI,128);if(!wq) {gotoerror; } hrtimer_init(&backoff_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); backoff_timer.function = &cc2520_csma_timer_cb;return0; ...