Searched refs:D_IDX (Results 1 – 8 of 8) sorted by relevance
/linux-6.6.21/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() 135 idx = D_IDX(rx_ring, rx_ring->rd_p); in nfp_nfd3_xsk_rx() 292 todo = D_IDX(tx_ring, qcp_rd_p - tx_ring->qcp_rd_p); in nfp_nfd3_xsk_complete() 297 tx_ring->qcp_rd_p = D_IDX(tx_ring, tx_ring->qcp_rd_p + todo); in nfp_nfd3_xsk_complete() 303 idx = D_IDX(tx_ring, tx_ring->rd_p); 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()
|
D | dp.c | 304 wr_idx = D_IDX(tx_ring, tx_ring->wr_p); in nfp_nfd3_tx() 352 wr_idx = D_IDX(tx_ring, wr_idx + 1); in nfp_nfd3_tx() 436 todo = D_IDX(tx_ring, qcp_rd_p - tx_ring->qcp_rd_p); in nfp_nfd3_tx_complete() 445 idx = D_IDX(tx_ring, tx_ring->rd_p++); in nfp_nfd3_tx_complete() 518 todo = D_IDX(tx_ring, qcp_rd_p - tx_ring->qcp_rd_p); in nfp_nfd3_xdp_complete() 523 tx_ring->qcp_rd_p = D_IDX(tx_ring, tx_ring->qcp_rd_p + todo); in nfp_nfd3_xdp_complete() 527 idx = D_IDX(tx_ring, tx_ring->rd_p); in nfp_nfd3_xdp_complete() 590 wr_idx = D_IDX(rx_ring, rx_ring->wr_p); in nfp_nfd3_rx_give_one() 860 wr_idx = D_IDX(tx_ring, tx_ring->wr_p); in nfp_nfd3_tx_xdp_buf() 932 idx = D_IDX(rx_ring, rx_ring->rd_p); in nfp_nfd3_rx() [all …]
|
D | rings.c | 17 idx = D_IDX(tx_ring, tx_ring->rd_p); in nfp_nfd3_xsk_tx_bufs_free() 52 idx = D_IDX(tx_ring, tx_ring->rd_p); in nfp_nfd3_tx_ring_reset()
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/nfdk/ |
D | dp.c | 161 wr_idx = D_IDX(tx_ring, wr_p); in nfp_nfdk_tx_maybe_close_block() 298 wr_idx = D_IDX(tx_ring, tx_ring->wr_p); in nfp_nfdk_tx() 489 todo = D_IDX(tx_ring, qcp_rd_p - tx_ring->qcp_rd_p); in nfp_nfdk_tx_complete() 498 txbuf = &ktxbufs[D_IDX(tx_ring, rd_p)]; in nfp_nfdk_tx_complete() 610 wr_idx = D_IDX(rx_ring, rx_ring->wr_p); in nfp_nfdk_rx_give_one() 846 todo = D_IDX(tx_ring, qcp_rd_p - tx_ring->qcp_rd_p); in nfp_nfdk_xdp_complete() 853 int idx = D_IDX(tx_ring, tx_ring->rd_p + done); in nfp_nfdk_xdp_complete() 885 tx_ring->qcp_rd_p = D_IDX(tx_ring, tx_ring->qcp_rd_p + done); in nfp_nfdk_xdp_complete() 938 wr_idx = D_IDX(tx_ring, tx_ring->wr_p); in nfp_nfdk_tx_xdp_buf() 948 wr_idx = D_IDX(tx_ring, tx_ring->wr_p); in nfp_nfdk_tx_xdp_buf() [all …]
|
D | rings.c | 23 rd_idx = D_IDX(tx_ring, tx_ring->rd_p); in nfp_nfdk_tx_ring_reset()
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_xsk.c | 65 wr_idx = D_IDX(rx_ring, rx_ring->wr_p); in nfp_net_xsk_rx_ring_fill_freelist()
|
D | nfp_net_dp.c | 106 wr_idx = D_IDX(rx_ring, rx_ring->wr_p); in nfp_net_rx_ring_reset()
|
D | nfp_net.h | 118 #define D_IDX(ring, idx) ((idx) & ((ring)->cnt - 1)) macro
|