Lines Matching refs:n_frags
294 unsigned int n_frags) in efx_recycle_rx_pages() argument
301 } while (--n_frags); in efx_recycle_rx_pages()
306 unsigned int n_frags) in efx_discard_rx_packet() argument
310 efx_recycle_rx_pages(channel, rx_buf, n_frags); in efx_discard_rx_packet()
312 efx_free_rx_buffers(rx_queue, rx_buf, n_frags); in efx_discard_rx_packet()
416 unsigned int n_frags, u8 *eh) in efx_rx_packet_gro() argument
428 efx_free_rx_buffers(rx_queue, rx_buf, n_frags); in efx_rx_packet_gro()
445 if (skb_shinfo(skb)->nr_frags == n_frags) in efx_rx_packet_gro()
452 skb->truesize += n_frags * efx->rx_buffer_truesize; in efx_rx_packet_gro()
464 unsigned int n_frags, in efx_rx_mk_skb() argument
498 if (skb_shinfo(skb)->nr_frags == n_frags) in efx_rx_mk_skb()
506 n_frags = 0; in efx_rx_mk_skb()
509 skb->truesize += n_frags * efx->rx_buffer_truesize; in efx_rx_mk_skb()
520 unsigned int n_frags, unsigned int len, u16 flags) in efx_rx_packet() argument
532 if (n_frags == 1) { in efx_rx_packet()
535 } else if (unlikely(n_frags > EFX_RX_MAX_FRAGS) || in efx_rx_packet()
536 unlikely(len <= (n_frags - 1) * efx->rx_dma_len) || in efx_rx_packet()
537 unlikely(len > n_frags * efx->rx_dma_len) || in efx_rx_packet()
549 (index + n_frags - 1) & rx_queue->ptr_mask, len, in efx_rx_packet()
558 efx_discard_rx_packet(channel, rx_buf, n_frags); in efx_rx_packet()
562 if (n_frags == 1 && !(flags & EFX_RX_PKT_PREFIX_LEN)) in efx_rx_packet()
578 if (n_frags > 1) { in efx_rx_packet()
582 unsigned int tail_frags = n_frags - 1; in efx_rx_packet()
590 rx_buf->len = len - (n_frags - 1) * efx->rx_dma_len; in efx_rx_packet()
596 efx_recycle_rx_pages(channel, rx_buf, n_frags); in efx_rx_packet()
602 channel->rx_pkt_n_frags = n_frags; in efx_rx_packet()
608 unsigned int n_frags) in efx_rx_deliver() argument
613 skb = efx_rx_mk_skb(channel, rx_buf, n_frags, eh, hdr_len); in efx_rx_deliver()
618 efx_free_rx_buffers(rx_queue, rx_buf, n_frags); in efx_rx_deliver()