Home
last modified time | relevance | path

Searched refs:wr_p (Results 1 – 11 of 11) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/netronome/nfp/nfdk/
Ddp.c118 unsigned int n_descs, wr_p, nop_slots; in nfp_nfdk_tx_maybe_close_block() local
147 if (round_down(tx_ring->wr_p, NFDK_TX_DESC_BLOCK_CNT) != in nfp_nfdk_tx_maybe_close_block()
148 round_down(tx_ring->wr_p + n_descs, NFDK_TX_DESC_BLOCK_CNT)) in nfp_nfdk_tx_maybe_close_block()
157 wr_p = tx_ring->wr_p; in nfp_nfdk_tx_maybe_close_block()
158 nop_slots = D_BLOCK_CPL(wr_p); in nfp_nfdk_tx_maybe_close_block()
160 wr_idx = D_IDX(tx_ring, wr_p); in nfp_nfdk_tx_maybe_close_block()
167 tx_ring->wr_p += nop_slots; in nfp_nfdk_tx_maybe_close_block()
257 qidx, tx_ring->wr_p, tx_ring->rd_p); in nfp_nfdk_tx()
278 wr_idx = D_IDX(tx_ring, tx_ring->wr_p); in nfp_nfdk_tx()
388 tx_ring->wr_p += cnt; in nfp_nfdk_tx()
[all …]
Drings.c16 while (!tx_ring->is_xdp && tx_ring->rd_p != tx_ring->wr_p) { in nfp_nfdk_tx_ring_reset()
62 tx_ring->wr_p = 0; in nfp_nfdk_tx_ring_reset()
155 if (i == tx_ring->wr_p % txd_cnt) in nfp_nfdk_print_tx_descs()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/nfd3/
Dxsk.c32 wr_idx = D_IDX(tx_ring, tx_ring->wr_p); in nfp_nfd3_xsk_tx_xdp()
51 tx_ring->wr_p++; in nfp_nfd3_xsk_tx_xdp()
147 if (rx_ring->rd_p >= rx_ring->wr_p) { in nfp_nfd3_xsk_rx()
283 if (tx_ring->wr_p == tx_ring->rd_p) in nfp_nfd3_xsk_complete()
326 WARN_ONCE(tx_ring->wr_p - tx_ring->rd_p > tx_ring->cnt, in nfp_nfd3_xsk_complete()
328 tx_ring->rd_p, tx_ring->wr_p, tx_ring->cnt); in nfp_nfd3_xsk_complete()
352 wr_idx = D_IDX(tx_ring, tx_ring->wr_p + i); in nfp_nfd3_xsk_tx()
360 wr_idx = D_IDX(tx_ring, tx_ring->wr_p + i); in nfp_nfd3_xsk_tx()
374 tx_ring->wr_p += got; in nfp_nfd3_xsk_tx()
Ddp.c260 qidx, tx_ring->wr_p, tx_ring->rd_p); in nfp_nfd3_tx()
286 wr_idx = D_IDX(tx_ring, tx_ring->wr_p); in nfp_nfd3_tx()
353 tx_ring->wr_p += nr_frags + 1; in nfp_nfd3_tx()
406 if (tx_ring->wr_p == tx_ring->rd_p) in nfp_nfd3_tx_complete()
477 WARN_ONCE(tx_ring->wr_p - tx_ring->rd_p > tx_ring->cnt, in nfp_nfd3_tx_complete()
479 tx_ring->rd_p, tx_ring->wr_p, tx_ring->cnt); in nfp_nfd3_tx_complete()
517 WARN_ONCE(tx_ring->wr_p - tx_ring->rd_p > tx_ring->cnt, in nfp_nfd3_xdp_complete()
519 tx_ring->rd_p, tx_ring->wr_p, tx_ring->cnt); in nfp_nfd3_xdp_complete()
569 wr_idx = D_IDX(rx_ring, rx_ring->wr_p); in nfp_nfd3_rx_give_one()
587 rx_ring->wr_p++; in nfp_nfd3_rx_give_one()
[all …]
Drings.c16 while (tx_ring->rd_p != tx_ring->wr_p) { in nfp_nfd3_xsk_tx_bufs_free()
47 while (!tx_ring->is_xdp && tx_ring->rd_p != tx_ring->wr_p) { in nfp_nfd3_tx_ring_reset()
85 tx_ring->wr_p = 0; in nfp_nfd3_tx_ring_reset()
234 if (i == tx_ring->wr_p % txd_cnt) in nfp_nfd3_print_tx_descs()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/
Dnfp_net_xsk.h20 return rx_ring->cnt - rx_ring->wr_p + rx_ring->rd_p - 1; in nfp_net_rx_space()
25 return tx_ring->cnt - tx_ring->wr_p + tx_ring->rd_p - 1; in nfp_net_tx_space()
Dnfp_net_debugfs.c39 rx_ring->rd_p, rx_ring->wr_p, fl_rd_p, fl_wr_p); in nfp_rx_q_show()
62 if (i == rx_ring->wr_p % rxd_cnt) in nfp_rx_q_show()
106 tx_ring->rd_p, tx_ring->wr_p, d_rd_p, d_wr_p); in nfp_tx_q_show()
Dnfp_net_xsk.c65 wr_idx = D_IDX(rx_ring, rx_ring->wr_p); in nfp_net_xsk_rx_ring_fill_freelist()
80 rx_ring->wr_p++; in nfp_net_xsk_rx_ring_fill_freelist()
Dnfp_net_dp.c102 if (rx_ring->wr_p == 0 && rx_ring->rd_p == 0) in nfp_net_rx_ring_reset()
106 wr_idx = D_IDX(rx_ring, rx_ring->wr_p); in nfp_net_rx_ring_reset()
118 rx_ring->wr_p = 0; in nfp_net_rx_ring_reset()
Dnfp_net_dp.h53 return (tx_ring->wr_p - tx_ring->rd_p) >= (tx_ring->cnt - dcnt); in nfp_net_tx_full()
Dnfp_net.h168 u32 wr_p; member
313 u32 wr_p; member