Lines Matching refs:n_frags
69 unsigned int n_frags, in efx_rx_mk_skb() argument
103 if (skb_shinfo(skb)->nr_frags == n_frags) in efx_rx_mk_skb()
111 n_frags = 0; in efx_rx_mk_skb()
114 skb->truesize += n_frags * efx->rx_buffer_truesize; in efx_rx_mk_skb()
125 unsigned int n_frags, unsigned int len, u16 flags) in efx_rx_packet() argument
137 if (n_frags == 1) { in efx_rx_packet()
140 } else if (unlikely(n_frags > EFX_RX_MAX_FRAGS) || in efx_rx_packet()
141 unlikely(len <= (n_frags - 1) * efx->rx_dma_len) || in efx_rx_packet()
142 unlikely(len > n_frags * efx->rx_dma_len) || in efx_rx_packet()
154 (index + n_frags - 1) & rx_queue->ptr_mask, len, in efx_rx_packet()
163 efx_discard_rx_packet(channel, rx_buf, n_frags); in efx_rx_packet()
167 if (n_frags == 1 && !(flags & EFX_RX_PKT_PREFIX_LEN)) in efx_rx_packet()
183 if (n_frags > 1) { in efx_rx_packet()
187 unsigned int tail_frags = n_frags - 1; in efx_rx_packet()
195 rx_buf->len = len - (n_frags - 1) * efx->rx_dma_len; in efx_rx_packet()
201 efx_recycle_rx_pages(channel, rx_buf, n_frags); in efx_rx_packet()
207 channel->rx_pkt_n_frags = n_frags; in efx_rx_packet()
213 unsigned int n_frags) in efx_rx_deliver() argument
218 skb = efx_rx_mk_skb(channel, rx_buf, n_frags, eh, hdr_len); in efx_rx_deliver()
223 efx_free_rx_buffers(rx_queue, rx_buf, n_frags); in efx_rx_deliver()