Home
last modified time | relevance | path

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

/linux-6.12.1/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.c122 unsigned int n_descs, wr_p, nop_slots; in nfp_nfdk_tx_maybe_close_block() local
130 n_descs = nfp_nfdk_headlen_to_segs(skb_headlen(skb)); in nfp_nfdk_tx_maybe_close_block()
135 n_descs += DIV_ROUND_UP(skb_frag_size(frag), in nfp_nfdk_tx_maybe_close_block()
138 if (unlikely(n_descs > NFDK_TX_DESC_GATHER_MAX)) { in nfp_nfdk_tx_maybe_close_block()
149 n_descs += !!skb_is_gso(skb); in nfp_nfdk_tx_maybe_close_block()
152 round_down(tx_ring->wr_p + n_descs, NFDK_TX_DESC_BLOCK_CNT)) in nfp_nfdk_tx_maybe_close_block()
497 unsigned int size, n_descs = 1; in nfp_nfdk_tx_complete() local
507 n_descs = D_BLOCK_CPL(rd_p); in nfp_nfdk_tx_complete()
513 n_descs += nfp_nfdk_headlen_to_segs(size); in nfp_nfdk_tx_complete()
522 n_descs += DIV_ROUND_UP(size, in nfp_nfdk_tx_complete()
[all …]
/linux-6.12.1/drivers/net/ethernet/sfc/
Def10.c2813 unsigned int n_descs, n_packets, i; in efx_ef10_handle_rx_event() local
2847 n_descs = ((next_ptr_lbits - rx_queue->removed_count) & in efx_ef10_handle_rx_event()
2850 if (n_descs != rx_queue->scatter_n + 1) { in efx_ef10_handle_rx_event()
2854 if (unlikely(n_descs == rx_queue->scatter_n)) { in efx_ef10_handle_rx_event()
2883 n_packets = n_descs; in efx_ef10_handle_rx_event()