Home
last modified time | relevance | path

Searched refs:rd_p (Results 1 – 10 of 10) sorted by relevance

/linux-5.19.10/drivers/net/ethernet/netronome/nfp/nfd3/
Drings.c16 while (tx_ring->rd_p != tx_ring->wr_p) { in nfp_nfd3_xsk_tx_bufs_free()
17 idx = D_IDX(tx_ring, tx_ring->rd_p); in nfp_nfd3_xsk_tx_bufs_free()
23 tx_ring->rd_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()
52 idx = D_IDX(tx_ring, tx_ring->rd_p); in nfp_nfd3_tx_ring_reset()
78 tx_ring->rd_p++; in nfp_nfd3_tx_ring_reset()
86 tx_ring->rd_p = 0; in nfp_nfd3_tx_ring_reset()
232 if (i == tx_ring->rd_p % txd_cnt) in nfp_nfd3_print_tx_descs()
Dxsk.c132 idx = D_IDX(rx_ring, rx_ring->rd_p); in nfp_nfd3_xsk_rx()
138 rx_ring->rd_p++; in nfp_nfd3_xsk_rx()
144 if (rx_ring->rd_p >= rx_ring->wr_p) { in nfp_nfd3_xsk_rx()
280 if (tx_ring->wr_p == tx_ring->rd_p) in nfp_nfd3_xsk_complete()
300 idx = D_IDX(tx_ring, tx_ring->rd_p); in nfp_nfd3_xsk_complete()
301 tx_ring->rd_p++; in nfp_nfd3_xsk_complete()
323 WARN_ONCE(tx_ring->wr_p - tx_ring->rd_p > tx_ring->cnt, in nfp_nfd3_xsk_complete()
325 tx_ring->rd_p, tx_ring->wr_p, tx_ring->cnt); in nfp_nfd3_xsk_complete()
Ddp.c245 qidx, tx_ring->wr_p, tx_ring->rd_p); in nfp_nfd3_tx()
391 if (tx_ring->wr_p == tx_ring->rd_p) in nfp_nfd3_tx_complete()
409 idx = D_IDX(tx_ring, tx_ring->rd_p++); in nfp_nfd3_tx_complete()
462 WARN_ONCE(tx_ring->wr_p - tx_ring->rd_p > tx_ring->cnt, in nfp_nfd3_tx_complete()
464 tx_ring->rd_p, tx_ring->wr_p, tx_ring->cnt); in nfp_nfd3_tx_complete()
491 idx = D_IDX(tx_ring, tx_ring->rd_p); in nfp_nfd3_xdp_complete()
492 tx_ring->rd_p++; in nfp_nfd3_xdp_complete()
502 WARN_ONCE(tx_ring->wr_p - tx_ring->rd_p > tx_ring->cnt, in nfp_nfd3_xdp_complete()
504 tx_ring->rd_p, tx_ring->wr_p, tx_ring->cnt); in nfp_nfd3_xdp_complete()
873 idx = D_IDX(rx_ring, rx_ring->rd_p); in nfp_nfd3_rx()
[all …]
/linux-5.19.10/drivers/net/ethernet/netronome/nfp/nfdk/
Drings.c16 while (!tx_ring->is_xdp && tx_ring->rd_p != tx_ring->wr_p) { in nfp_nfdk_tx_ring_reset()
23 rd_idx = D_IDX(tx_ring, tx_ring->rd_p); in nfp_nfdk_tx_ring_reset()
28 n_descs = D_BLOCK_CPL(tx_ring->rd_p); in nfp_nfdk_tx_ring_reset()
57 tx_ring->rd_p += n_descs; in nfp_nfdk_tx_ring_reset()
63 tx_ring->rd_p = 0; in nfp_nfdk_tx_ring_reset()
153 if (i == tx_ring->rd_p % txd_cnt) in nfp_nfdk_print_tx_descs()
Ddp.c272 qidx, tx_ring->wr_p, tx_ring->rd_p); in nfp_nfdk_tx()
466 u32 rd_p, qcp_rd_p; in nfp_nfdk_tx_complete() local
469 rd_p = tx_ring->rd_p; in nfp_nfdk_tx_complete()
470 if (tx_ring->wr_p == rd_p) in nfp_nfdk_tx_complete()
488 txbuf = &ktxbufs[D_IDX(tx_ring, rd_p)]; in nfp_nfdk_tx_complete()
494 n_descs = D_BLOCK_CPL(rd_p); in nfp_nfdk_tx_complete()
527 rd_p += n_descs; in nfp_nfdk_tx_complete()
531 tx_ring->rd_p = rd_p; in nfp_nfdk_tx_complete()
552 WARN_ONCE(tx_ring->wr_p - tx_ring->rd_p > tx_ring->cnt, in nfp_nfdk_tx_complete()
554 tx_ring->rd_p, tx_ring->wr_p, tx_ring->cnt); in nfp_nfdk_tx_complete()
[all …]
/linux-5.19.10/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()
60 if (i == rx_ring->rd_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_dp.c102 if (rx_ring->wr_p == 0 && rx_ring->rd_p == 0) in nfp_net_rx_ring_reset()
119 rx_ring->rd_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.h169 u32 rd_p; member
307 u32 rd_p; member