Lines Matching refs:rd_p
280 qidx, tx_ring->wr_p, tx_ring->rd_p); in nfp_nfdk_tx()
479 u32 rd_p, qcp_rd_p; in nfp_nfdk_tx_complete() local
482 rd_p = tx_ring->rd_p; in nfp_nfdk_tx_complete()
483 if (tx_ring->wr_p == rd_p) in nfp_nfdk_tx_complete()
501 txbuf = &ktxbufs[D_IDX(tx_ring, rd_p)]; in nfp_nfdk_tx_complete()
507 n_descs = D_BLOCK_CPL(rd_p); in nfp_nfdk_tx_complete()
540 rd_p += n_descs; in nfp_nfdk_tx_complete()
544 tx_ring->rd_p = rd_p; in nfp_nfdk_tx_complete()
565 WARN_ONCE(tx_ring->wr_p - tx_ring->rd_p > tx_ring->cnt, in nfp_nfdk_tx_complete()
567 tx_ring->rd_p, tx_ring->wr_p, tx_ring->cnt); in nfp_nfdk_tx_complete()
856 int idx = D_IDX(tx_ring, tx_ring->rd_p + done); in nfp_nfdk_xdp_complete()
889 tx_ring->rd_p += done; in nfp_nfdk_xdp_complete()
891 WARN_ONCE(tx_ring->wr_p - tx_ring->rd_p > tx_ring->cnt, in nfp_nfdk_xdp_complete()
893 tx_ring->rd_p, tx_ring->wr_p, tx_ring->cnt); in nfp_nfdk_xdp_complete()
1057 idx = D_IDX(rx_ring, rx_ring->rd_p); in nfp_nfdk_rx()
1070 rx_ring->rd_p++; in nfp_nfdk_rx()
1249 else if (unlikely(tx_ring->wr_p != tx_ring->rd_p) && in nfp_nfdk_rx()
1491 idx = D_IDX(rx_ring, rx_ring->rd_p); in nfp_ctrl_rx_one()
1502 rx_ring->rd_p++; in nfp_ctrl_rx_one()