Lines Matching refs:rd_p
272 qidx, tx_ring->wr_p, tx_ring->rd_p); in nfp_nfdk_tx()
466 u32 rd_p, qcp_rd_p; in nfp_nfdk_tx_complete() local
469 rd_p = tx_ring->rd_p; in nfp_nfdk_tx_complete()
470 if (tx_ring->wr_p == rd_p) in nfp_nfdk_tx_complete()
488 txbuf = &ktxbufs[D_IDX(tx_ring, rd_p)]; in nfp_nfdk_tx_complete()
494 n_descs = D_BLOCK_CPL(rd_p); in nfp_nfdk_tx_complete()
527 rd_p += n_descs; in nfp_nfdk_tx_complete()
531 tx_ring->rd_p = rd_p; in nfp_nfdk_tx_complete()
552 WARN_ONCE(tx_ring->wr_p - tx_ring->rd_p > tx_ring->cnt, in nfp_nfdk_tx_complete()
554 tx_ring->rd_p, tx_ring->wr_p, tx_ring->cnt); in nfp_nfdk_tx_complete()
823 int idx = D_IDX(tx_ring, tx_ring->rd_p + done); in nfp_nfdk_xdp_complete()
856 tx_ring->rd_p += done; in nfp_nfdk_xdp_complete()
858 WARN_ONCE(tx_ring->wr_p - tx_ring->rd_p > tx_ring->cnt, in nfp_nfdk_xdp_complete()
860 tx_ring->rd_p, tx_ring->wr_p, tx_ring->cnt); in nfp_nfdk_xdp_complete()
1024 idx = D_IDX(rx_ring, rx_ring->rd_p); in nfp_nfdk_rx()
1037 rx_ring->rd_p++; in nfp_nfdk_rx()
1207 else if (unlikely(tx_ring->wr_p != tx_ring->rd_p) && in nfp_nfdk_rx()
1449 idx = D_IDX(rx_ring, rx_ring->rd_p); in nfp_ctrl_rx_one()
1460 rx_ring->rd_p++; in nfp_ctrl_rx_one()