Home
last modified time | relevance | path

Searched refs:n_descs (Results 1 – 3 of 3) sorted by relevance

/linux-5.19.10/drivers/net/ethernet/netronome/nfp/nfdk/
Drings.c18 unsigned int size, n_descs = 1; in nfp_nfdk_tx_ring_reset() local
28 n_descs = D_BLOCK_CPL(tx_ring->rd_p); in nfp_nfdk_tx_ring_reset()
38 n_descs += nfp_nfdk_headlen_to_segs(size); in nfp_nfdk_tx_ring_reset()
47 n_descs += DIV_ROUND_UP(size, in nfp_nfdk_tx_ring_reset()
53 n_descs++; in nfp_nfdk_tx_ring_reset()
57 tx_ring->rd_p += n_descs; in nfp_nfdk_tx_ring_reset()
Ddp.c130 unsigned int n_descs, wr_p, nop_slots; in nfp_nfdk_tx_maybe_close_block() local
138 n_descs = nfp_nfdk_headlen_to_segs(skb_headlen(skb)); in nfp_nfdk_tx_maybe_close_block()
143 n_descs += DIV_ROUND_UP(skb_frag_size(frag), in nfp_nfdk_tx_maybe_close_block()
146 if (unlikely(n_descs > NFDK_TX_DESC_GATHER_MAX)) { in nfp_nfdk_tx_maybe_close_block()
157 n_descs += !!skb_is_gso(skb); in nfp_nfdk_tx_maybe_close_block()
160 round_down(tx_ring->wr_p + n_descs, NFDK_TX_DESC_BLOCK_CNT)) in nfp_nfdk_tx_maybe_close_block()
484 unsigned int size, n_descs = 1; in nfp_nfdk_tx_complete() local
494 n_descs = D_BLOCK_CPL(rd_p); in nfp_nfdk_tx_complete()
500 n_descs += nfp_nfdk_headlen_to_segs(size); in nfp_nfdk_tx_complete()
509 n_descs += DIV_ROUND_UP(size, in nfp_nfdk_tx_complete()
[all …]
/linux-5.19.10/drivers/net/ethernet/sfc/
Def10.c2785 unsigned int n_descs, n_packets, i; in efx_ef10_handle_rx_event() local
2819 n_descs = ((next_ptr_lbits - rx_queue->removed_count) & in efx_ef10_handle_rx_event()
2822 if (n_descs != rx_queue->scatter_n + 1) { in efx_ef10_handle_rx_event()
2826 if (unlikely(n_descs == rx_queue->scatter_n)) { in efx_ef10_handle_rx_event()
2855 n_packets = n_descs; in efx_ef10_handle_rx_event()