Searched refs:rd_p (Results 1 – 10 of 10) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/nfd3/ |
D | rings.c | 16 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()
|
D | xsk.c | 135 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()
|
D | dp.c | 260 qidx, tx_ring->wr_p, tx_ring->rd_p); in nfp_nfd3_tx() 406 if (tx_ring->wr_p == tx_ring->rd_p) in nfp_nfd3_tx_complete() 424 idx = D_IDX(tx_ring, 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() 506 idx = D_IDX(tx_ring, tx_ring->rd_p); in nfp_nfd3_xdp_complete() 507 tx_ring->rd_p++; in nfp_nfd3_xdp_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() 903 idx = D_IDX(rx_ring, rx_ring->rd_p); in nfp_nfd3_rx() [all …]
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/nfdk/ |
D | rings.c | 16 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()
|
D | dp.c | 257 qidx, tx_ring->wr_p, tx_ring->rd_p); in nfp_nfdk_tx() 451 u32 rd_p, qcp_rd_p; in nfp_nfdk_tx_complete() local 454 rd_p = tx_ring->rd_p; in nfp_nfdk_tx_complete() 455 if (tx_ring->wr_p == rd_p) in nfp_nfdk_tx_complete() 473 txbuf = &ktxbufs[D_IDX(tx_ring, rd_p)]; in nfp_nfdk_tx_complete() 479 n_descs = D_BLOCK_CPL(rd_p); in nfp_nfdk_tx_complete() 512 rd_p += n_descs; in nfp_nfdk_tx_complete() 516 tx_ring->rd_p = rd_p; in nfp_nfdk_tx_complete() 537 WARN_ONCE(tx_ring->wr_p - tx_ring->rd_p > tx_ring->cnt, in nfp_nfdk_tx_complete() 539 tx_ring->rd_p, tx_ring->wr_p, tx_ring->cnt); in nfp_nfdk_tx_complete() [all …]
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_xsk.h | 20 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()
|
D | nfp_net_debugfs.c | 39 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()
|
D | nfp_net_dp.c | 102 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()
|
D | nfp_net_dp.h | 53 return (tx_ring->wr_p - tx_ring->rd_p) >= (tx_ring->cnt - dcnt); in nfp_net_tx_full()
|
D | nfp_net.h | 169 u32 rd_p; member 314 u32 rd_p; member
|