Searched refs:wr_p (Results 1 – 11 of 11) sorted by relevance
/linux-5.19.10/drivers/net/ethernet/netronome/nfp/nfdk/ |
D | dp.c | 130 unsigned int n_descs, wr_p, nop_slots; in nfp_nfdk_tx_maybe_close_block() local 159 if (round_down(tx_ring->wr_p, NFDK_TX_DESC_BLOCK_CNT) != in nfp_nfdk_tx_maybe_close_block() 160 round_down(tx_ring->wr_p + n_descs, NFDK_TX_DESC_BLOCK_CNT)) in nfp_nfdk_tx_maybe_close_block() 169 wr_p = tx_ring->wr_p; in nfp_nfdk_tx_maybe_close_block() 170 nop_slots = D_BLOCK_CPL(wr_p); in nfp_nfdk_tx_maybe_close_block() 172 wr_idx = D_IDX(tx_ring, wr_p); in nfp_nfdk_tx_maybe_close_block() 179 tx_ring->wr_p += nop_slots; in nfp_nfdk_tx_maybe_close_block() 272 qidx, tx_ring->wr_p, tx_ring->rd_p); in nfp_nfdk_tx() 293 wr_idx = D_IDX(tx_ring, tx_ring->wr_p); in nfp_nfdk_tx() 403 tx_ring->wr_p += cnt; in nfp_nfdk_tx() [all …]
|
D | rings.c | 16 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-5.19.10/drivers/net/ethernet/netronome/nfp/nfd3/ |
D | xsk.c | 32 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() 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() 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() 349 wr_idx = D_IDX(tx_ring, tx_ring->wr_p + i); in nfp_nfd3_xsk_tx() 357 wr_idx = D_IDX(tx_ring, tx_ring->wr_p + i); in nfp_nfd3_xsk_tx() 373 tx_ring->wr_p += got; in nfp_nfd3_xsk_tx()
|
D | dp.c | 245 qidx, tx_ring->wr_p, tx_ring->rd_p); in nfp_nfd3_tx() 271 wr_idx = D_IDX(tx_ring, tx_ring->wr_p); in nfp_nfd3_tx() 338 tx_ring->wr_p += nr_frags + 1; in nfp_nfd3_tx() 391 if (tx_ring->wr_p == 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() 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() 554 wr_idx = D_IDX(rx_ring, rx_ring->wr_p); in nfp_nfd3_rx_give_one() 568 rx_ring->wr_p++; in nfp_nfd3_rx_give_one() [all …]
|
D | rings.c | 16 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-5.19.10/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() 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()
|
D | nfp_net_xsk.c | 65 wr_idx = D_IDX(rx_ring, rx_ring->wr_p); in nfp_net_xsk_rx_ring_fill_freelist() 76 rx_ring->wr_p++; in nfp_net_xsk_rx_ring_fill_freelist()
|
D | nfp_net_dp.c | 102 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()
|
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 | 168 u32 wr_p; member 306 u32 wr_p; member
|