Searched refs:D_IDX (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_common.c | 1026 wr_idx = D_IDX(tx_ring, tx_ring->wr_p); in nfp_net_tx() 1071 wr_idx = D_IDX(tx_ring, wr_idx + 1); in nfp_net_tx() 1155 todo = D_IDX(tx_ring, qcp_rd_p - tx_ring->qcp_rd_p); in nfp_net_tx_complete() 1164 idx = D_IDX(tx_ring, tx_ring->rd_p++); in nfp_net_tx_complete() 1236 todo = D_IDX(tx_ring, qcp_rd_p - tx_ring->qcp_rd_p); in nfp_net_xdp_complete() 1241 tx_ring->qcp_rd_p = D_IDX(tx_ring, tx_ring->qcp_rd_p + todo); in nfp_net_xdp_complete() 1245 idx = D_IDX(tx_ring, tx_ring->rd_p); in nfp_net_xdp_complete() 1281 idx = D_IDX(tx_ring, tx_ring->rd_p); in nfp_net_tx_ring_reset() 1442 wr_idx = D_IDX(rx_ring, rx_ring->wr_p); in nfp_net_rx_give_one() 1483 wr_idx = D_IDX(rx_ring, rx_ring->wr_p); in nfp_net_rx_ring_reset() [all …]
|
D | nfp_net.h | 113 #define D_IDX(ring, idx) ((idx) & ((ring)->cnt - 1)) macro
|