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()
427 unsigned int n_frags, u8 *eh) in efx_rx_packet_gro() argument
439 efx_free_rx_buffers(rx_queue, rx_buf, n_frags); in efx_rx_packet_gro()
455 if (skb_shinfo(skb)->nr_frags == n_frags) in efx_rx_packet_gro()
462 skb->truesize += n_frags * efx->rx_buffer_truesize; in efx_rx_packet_gro()
475 unsigned int n_frags, in efx_rx_mk_skb() argument
509 if (skb_shinfo(skb)->nr_frags == n_frags) in efx_rx_mk_skb()
517 n_frags = 0; in efx_rx_mk_skb()
520 skb->truesize += n_frags * efx->rx_buffer_truesize; in efx_rx_mk_skb()
531 unsigned int n_frags, unsigned int len, u16 flags) in efx_rx_packet() argument
543 if (n_frags == 1) { in efx_rx_packet()
546 } else if (unlikely(n_frags > EFX_RX_MAX_FRAGS) || in efx_rx_packet()
547 unlikely(len <= (n_frags - 1) * efx->rx_dma_len) || in efx_rx_packet()
548 unlikely(len > n_frags * efx->rx_dma_len) || in efx_rx_packet()
560 (index + n_frags - 1) & rx_queue->ptr_mask, len, in efx_rx_packet()
569 efx_discard_rx_packet(channel, rx_buf, n_frags); in efx_rx_packet()
573 if (n_frags == 1 && !(flags & EFX_RX_PKT_PREFIX_LEN)) in efx_rx_packet()
589 if (n_frags > 1) { in efx_rx_packet()
593 unsigned int tail_frags = n_frags - 1; in efx_rx_packet()
601 rx_buf->len = len - (n_frags - 1) * efx->rx_dma_len; in efx_rx_packet()
607 efx_recycle_rx_pages(channel, rx_buf, n_frags); in efx_rx_packet()
613 channel->rx_pkt_n_frags = n_frags; in efx_rx_packet()
619 unsigned int n_frags) in efx_rx_deliver() argument
624 skb = efx_rx_mk_skb(channel, rx_buf, n_frags, eh, hdr_len); in efx_rx_deliver()
629 efx_free_rx_buffers(rx_queue, rx_buf, n_frags); in efx_rx_deliver()