Searched refs:n_descs (Results 1 – 3 of 3) sorted by relevance
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/nfdk/ |
D | rings.c | 18 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()
|
D | dp.c | 119 unsigned int n_descs, wr_p, nop_slots; in nfp_nfdk_tx_maybe_close_block() local 127 n_descs = nfp_nfdk_headlen_to_segs(skb_headlen(skb)); in nfp_nfdk_tx_maybe_close_block() 132 n_descs += DIV_ROUND_UP(skb_frag_size(frag), in nfp_nfdk_tx_maybe_close_block() 135 if (unlikely(n_descs > NFDK_TX_DESC_GATHER_MAX)) { in nfp_nfdk_tx_maybe_close_block() 146 n_descs += !!skb_is_gso(skb); in nfp_nfdk_tx_maybe_close_block() 149 round_down(tx_ring->wr_p + n_descs, NFDK_TX_DESC_BLOCK_CNT)) in nfp_nfdk_tx_maybe_close_block() 494 unsigned int size, n_descs = 1; in nfp_nfdk_tx_complete() local 504 n_descs = D_BLOCK_CPL(rd_p); in nfp_nfdk_tx_complete() 510 n_descs += nfp_nfdk_headlen_to_segs(size); in nfp_nfdk_tx_complete() 519 n_descs += DIV_ROUND_UP(size, in nfp_nfdk_tx_complete() [all …]
|
/linux-6.6.21/drivers/net/ethernet/sfc/ |
D | ef10.c | 2813 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()
|