Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfd3/
H A 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()
H A Dxsk.c135 idx = D_IDX(rx_ring, rx_ring->rd_p); in nfp_nfd3_xsk_rx()
141 rx_ring->rd_p++; in nfp_nfd3_xsk_rx()
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()
303 idx = D_IDX(tx_ring, tx_ring->rd_p); in nfp_nfd3_xsk_complete()
304 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()
H A Ddp.c278 qidx, tx_ring->wr_p, tx_ring->rd_p); in nfp_nfd3_tx()
427 if (tx_ring->wr_p == tx_ring->rd_p) in nfp_nfd3_tx_complete()
445 idx = D_IDX(tx_ring, tx_ring->rd_p++); in nfp_nfd3_tx_complete()
500 tx_ring->rd_p, tx_ring->wr_p, tx_ring->cnt); in nfp_nfd3_tx_complete()
527 idx = D_IDX(tx_ring, tx_ring->rd_p); in nfp_nfd3_xdp_complete()
528 tx_ring->rd_p++; in nfp_nfd3_xdp_complete()
540 tx_ring->rd_p, tx_ring->wr_p, tx_ring->cnt); in nfp_nfd3_xdp_complete()
932 idx = D_IDX(rx_ring, rx_ring->rd_p); in nfp_nfd3_rx()
945 rx_ring->rd_p++; in nfp_nfd3_rx()
1326 idx = D_IDX(rx_ring, rx_ring->rd_p); in nfp_ctrl_rx_one()
[all …]
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfdk/
H A 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()
H A Ddp.c476 u32 rd_p, qcp_rd_p; in nfp_nfdk_tx_complete() local
479 rd_p = tx_ring->rd_p; in nfp_nfdk_tx_complete()
480 if (tx_ring->wr_p == rd_p) in nfp_nfdk_tx_complete()
504 n_descs = D_BLOCK_CPL(rd_p); in nfp_nfdk_tx_complete()
537 rd_p += n_descs; in nfp_nfdk_tx_complete()
541 tx_ring->rd_p = rd_p; in nfp_nfdk_tx_complete()
886 tx_ring->rd_p += done; in nfp_nfdk_xdp_complete()
1054 idx = D_IDX(rx_ring, rx_ring->rd_p); in nfp_nfdk_rx()
1067 rx_ring->rd_p++; in nfp_nfdk_rx()
1488 idx = D_IDX(rx_ring, rx_ring->rd_p); in nfp_ctrl_rx_one()
[all …]
/openbmc/linux/drivers/net/ethernet/netronome/nfp/
H A 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()
H A 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()
H A 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()
H A Dnfp_net_dp.h53 return (tx_ring->wr_p - tx_ring->rd_p) >= (tx_ring->cnt - dcnt); in nfp_net_tx_full()
H A Dnfp_net.h172 u32 rd_p; member
321 u32 rd_p; member