Lines Matching defs:wr_p
122 unsigned int n_descs, wr_p, nop_slots;
151 if (round_down(tx_ring->wr_p, NFDK_TX_DESC_BLOCK_CNT) !=
152 round_down(tx_ring->wr_p + n_descs, NFDK_TX_DESC_BLOCK_CNT))
161 wr_p = tx_ring->wr_p;
162 nop_slots = D_BLOCK_CPL(wr_p);
164 wr_idx = D_IDX(tx_ring, wr_p);
171 tx_ring->wr_p += nop_slots;
280 qidx, tx_ring->wr_p, tx_ring->rd_p);
301 wr_idx = D_IDX(tx_ring, tx_ring->wr_p);
416 tx_ring->wr_p += cnt;
417 if (tx_ring->wr_p % NFDK_TX_DESC_BLOCK_CNT)
483 if (tx_ring->wr_p == rd_p)
565 WARN_ONCE(tx_ring->wr_p - tx_ring->rd_p > tx_ring->cnt,
566 "TX ring corruption rd_p=%u wr_p=%u cnt=%u\n",
567 tx_ring->rd_p, tx_ring->wr_p, tx_ring->cnt);
613 wr_idx = D_IDX(rx_ring, rx_ring->wr_p);
627 rx_ring->wr_p++;
628 if (!(rx_ring->wr_p % NFP_NET_FL_BATCH)) {
891 WARN_ONCE(tx_ring->wr_p - tx_ring->rd_p > tx_ring->cnt,
892 "XDP TX ring corruption rd_p=%u wr_p=%u cnt=%u\n",
893 tx_ring->rd_p, tx_ring->wr_p, tx_ring->cnt);
935 if ((round_down(tx_ring->wr_p, NFDK_TX_DESC_BLOCK_CNT) !=
936 round_down(tx_ring->wr_p + n_descs, NFDK_TX_DESC_BLOCK_CNT)) ||
939 unsigned int nop_slots = D_BLOCK_CPL(tx_ring->wr_p);
941 wr_idx = D_IDX(tx_ring, tx_ring->wr_p);
947 tx_ring->wr_p += nop_slots;
951 wr_idx = D_IDX(tx_ring, tx_ring->wr_p);
1006 tx_ring->wr_p += cnt;
1007 if (tx_ring->wr_p % NFDK_TX_DESC_BLOCK_CNT)
1249 else if (unlikely(tx_ring->wr_p != tx_ring->rd_p) &&
1367 wr_idx = D_IDX(tx_ring, tx_ring->wr_p);
1424 tx_ring->wr_p += cnt;
1425 if (tx_ring->wr_p % NFDK_TX_DESC_BLOCK_CNT)