Lines Matching refs:n_frags

294 				 unsigned int n_frags)  in ef4_recycle_rx_pages()  argument
304 } while (--n_frags); in ef4_recycle_rx_pages()
309 unsigned int n_frags) in ef4_discard_rx_packet() argument
313 ef4_recycle_rx_pages(channel, rx_buf, n_frags); in ef4_discard_rx_packet()
315 ef4_free_rx_buffers(rx_queue, rx_buf, n_frags); in ef4_discard_rx_packet()
431 unsigned int n_frags, u8 *eh) in ef4_rx_packet_gro() argument
442 ef4_free_rx_buffers(rx_queue, rx_buf, n_frags); in ef4_rx_packet_gro()
458 if (skb_shinfo(skb)->nr_frags == n_frags) in ef4_rx_packet_gro()
465 skb->truesize += n_frags * efx->rx_buffer_truesize; in ef4_rx_packet_gro()
475 unsigned int n_frags, in ef4_rx_mk_skb() argument
509 if (skb_shinfo(skb)->nr_frags == n_frags) in ef4_rx_mk_skb()
517 n_frags = 0; in ef4_rx_mk_skb()
520 skb->truesize += n_frags * efx->rx_buffer_truesize; in ef4_rx_mk_skb()
531 unsigned int n_frags, unsigned int len, u16 flags) in ef4_rx_packet() argument
543 if (n_frags == 1) { in ef4_rx_packet()
546 } else if (unlikely(n_frags > EF4_RX_MAX_FRAGS) || in ef4_rx_packet()
547 unlikely(len <= (n_frags - 1) * efx->rx_dma_len) || in ef4_rx_packet()
548 unlikely(len > n_frags * efx->rx_dma_len) || in ef4_rx_packet()
560 (index + n_frags - 1) & rx_queue->ptr_mask, len, in ef4_rx_packet()
569 ef4_discard_rx_packet(channel, rx_buf, n_frags); in ef4_rx_packet()
573 if (n_frags == 1 && !(flags & EF4_RX_PKT_PREFIX_LEN)) in ef4_rx_packet()
589 if (n_frags > 1) { in ef4_rx_packet()
593 unsigned int tail_frags = n_frags - 1; in ef4_rx_packet()
601 rx_buf->len = len - (n_frags - 1) * efx->rx_dma_len; in ef4_rx_packet()
607 ef4_recycle_rx_pages(channel, rx_buf, n_frags); in ef4_rx_packet()
613 channel->rx_pkt_n_frags = n_frags; in ef4_rx_packet()
619 unsigned int n_frags) in ef4_rx_deliver() argument
624 skb = ef4_rx_mk_skb(channel, rx_buf, n_frags, eh, hdr_len); in ef4_rx_deliver()
629 ef4_free_rx_buffers(rx_queue, rx_buf, n_frags); in ef4_rx_deliver()