Lines Matching refs:napi
290 if (napi_schedule_prep(&pdata->napi)) { in xlgmac_isr()
296 __napi_schedule_irqoff(&pdata->napi); in xlgmac_isr()
350 if (napi_schedule_prep(&channel->napi)) { in xlgmac_dma_isr()
355 __napi_schedule_irqoff(&channel->napi); in xlgmac_dma_isr()
365 struct napi_struct *napi; in xlgmac_tx_timer() local
367 napi = (pdata->per_channel_irq) ? &channel->napi : &pdata->napi; in xlgmac_tx_timer()
369 if (napi_schedule_prep(napi)) { in xlgmac_tx_timer()
378 __napi_schedule(napi); in xlgmac_tx_timer()
421 netif_napi_add(pdata->netdev, &channel->napi, in xlgmac_napi_enable()
424 napi_enable(&channel->napi); in xlgmac_napi_enable()
428 netif_napi_add(pdata->netdev, &pdata->napi, in xlgmac_napi_enable()
431 napi_enable(&pdata->napi); in xlgmac_napi_enable()
443 napi_disable(&channel->napi); in xlgmac_napi_disable()
446 netif_napi_del(&channel->napi); in xlgmac_napi_disable()
449 napi_disable(&pdata->napi); in xlgmac_napi_disable()
452 netif_napi_del(&pdata->napi); in xlgmac_napi_disable()
987 struct napi_struct *napi, in xlgmac_create_skb() argument
995 skb = napi_alloc_skb(napi, desc_data->rx.hdr.dma_len); in xlgmac_create_skb()
1118 struct napi_struct *napi; in xlgmac_rx_poll() local
1131 napi = (pdata->per_channel_irq) ? &channel->napi : &pdata->napi; in xlgmac_rx_poll()
1191 skb = xlgmac_create_skb(pdata, napi, desc_data, in xlgmac_rx_poll()
1259 napi_gro_receive(napi, skb); in xlgmac_rx_poll()
1279 static int xlgmac_one_poll(struct napi_struct *napi, int budget) in xlgmac_one_poll() argument
1281 struct xlgmac_channel *channel = container_of(napi, in xlgmac_one_poll()
1283 napi); in xlgmac_one_poll()
1297 napi_complete_done(napi, processed); in xlgmac_one_poll()
1308 static int xlgmac_all_poll(struct napi_struct *napi, int budget) in xlgmac_all_poll() argument
1310 struct xlgmac_pdata *pdata = container_of(napi, in xlgmac_all_poll()
1312 napi); in xlgmac_all_poll()
1340 napi_complete_done(napi, processed); in xlgmac_all_poll()