Lines Matching refs:n_frags

291 				 unsigned int n_frags)  in efx_recycle_rx_pages()  argument
298 } while (--n_frags); in efx_recycle_rx_pages()
303 unsigned int n_frags) in efx_discard_rx_packet() argument
307 efx_recycle_rx_pages(channel, rx_buf, n_frags); in efx_discard_rx_packet()
309 efx_free_rx_buffers(rx_queue, rx_buf, n_frags); in efx_discard_rx_packet()
412 unsigned int n_frags, u8 *eh) in efx_rx_packet_gro() argument
423 efx_free_rx_buffers(rx_queue, rx_buf, n_frags); in efx_rx_packet_gro()
440 if (skb_shinfo(skb)->nr_frags == n_frags) in efx_rx_packet_gro()
447 skb->truesize += n_frags * efx->rx_buffer_truesize; in efx_rx_packet_gro()
457 unsigned int n_frags, in efx_rx_mk_skb() argument
491 if (skb_shinfo(skb)->nr_frags == n_frags) in efx_rx_mk_skb()
499 n_frags = 0; in efx_rx_mk_skb()
502 skb->truesize += n_frags * efx->rx_buffer_truesize; in efx_rx_mk_skb()
513 unsigned int n_frags, unsigned int len, u16 flags) in efx_rx_packet() argument
525 if (n_frags == 1) { in efx_rx_packet()
528 } else if (unlikely(n_frags > EFX_RX_MAX_FRAGS) || in efx_rx_packet()
529 unlikely(len <= (n_frags - 1) * efx->rx_dma_len) || in efx_rx_packet()
530 unlikely(len > n_frags * efx->rx_dma_len) || in efx_rx_packet()
542 (index + n_frags - 1) & rx_queue->ptr_mask, len, in efx_rx_packet()
551 efx_discard_rx_packet(channel, rx_buf, n_frags); in efx_rx_packet()
555 if (n_frags == 1 && !(flags & EFX_RX_PKT_PREFIX_LEN)) in efx_rx_packet()
571 if (n_frags > 1) { in efx_rx_packet()
575 unsigned int tail_frags = n_frags - 1; in efx_rx_packet()
583 rx_buf->len = len - (n_frags - 1) * efx->rx_dma_len; in efx_rx_packet()
589 efx_recycle_rx_pages(channel, rx_buf, n_frags); in efx_rx_packet()
595 channel->rx_pkt_n_frags = n_frags; in efx_rx_packet()
601 unsigned int n_frags) in efx_rx_deliver() argument
606 skb = efx_rx_mk_skb(channel, rx_buf, n_frags, eh, hdr_len); in efx_rx_deliver()
611 efx_free_rx_buffers(rx_queue, rx_buf, n_frags); in efx_rx_deliver()