Lines Matching refs:n_frags
69 unsigned int n_frags, in efx_rx_mk_skb() argument
102 if (skb_shinfo(skb)->nr_frags == n_frags) in efx_rx_mk_skb()
110 n_frags = 0; in efx_rx_mk_skb()
122 unsigned int n_frags, unsigned int len, u16 flags) in efx_siena_rx_packet() argument
134 if (n_frags == 1) { in efx_siena_rx_packet()
137 } else if (unlikely(n_frags > EFX_RX_MAX_FRAGS) || in efx_siena_rx_packet()
138 unlikely(len <= (n_frags - 1) * efx->rx_dma_len) || in efx_siena_rx_packet()
139 unlikely(len > n_frags * efx->rx_dma_len) || in efx_siena_rx_packet()
151 (index + n_frags - 1) & rx_queue->ptr_mask, len, in efx_siena_rx_packet()
160 efx_siena_discard_rx_packet(channel, rx_buf, n_frags); in efx_siena_rx_packet()
164 if (n_frags == 1 && !(flags & EFX_RX_PKT_PREFIX_LEN)) in efx_siena_rx_packet()
180 if (n_frags > 1) { in efx_siena_rx_packet()
184 unsigned int tail_frags = n_frags - 1; in efx_siena_rx_packet()
192 rx_buf->len = len - (n_frags - 1) * efx->rx_dma_len; in efx_siena_rx_packet()
198 efx_siena_recycle_rx_pages(channel, rx_buf, n_frags); in efx_siena_rx_packet()
204 channel->rx_pkt_n_frags = n_frags; in efx_siena_rx_packet()
210 unsigned int n_frags) in efx_rx_deliver() argument
215 skb = efx_rx_mk_skb(channel, rx_buf, n_frags, eh, hdr_len); in efx_rx_deliver()
220 efx_siena_free_rx_buffers(rx_queue, rx_buf, n_frags); in efx_rx_deliver()