Lines Matching refs:pidx
230 nm_txq->pidx = nm_txq->cidx = 0; in alloc_nm_txq()
253 &nm_txq->pidx, 0, "producer index"); in alloc_nm_txq()
455 nm_txq->pidx = nm_txq->cidx = 0; in alloc_nm_txq_hwq()
907 #define NMIDXDIFF(q, idx) IDXDIFF((q)->pidx, (q)->idx, (q)->sidx)
915 MPASS(nm_txq->pidx != nm_txq->dbidx); in ring_nm_txq_db()
937 __func__, nm_txq->doorbells, n, nm_txq->pidx, nm_txq)); in ring_nm_txq_db()
958 nm_txq->dbidx = nm_txq->pidx; in ring_nm_txq_db()
972 struct fw_eth_tx_pkts_wr *wr = (void *)&nm_txq->desc[nm_txq->pidx]; in cxgbe_nm_tx()
983 wr = (void *)&nm_txq->desc[nm_txq->pidx]; in cxgbe_nm_tx()
1017 nm_txq->pidx += npkt_to_ndesc(n); in cxgbe_nm_tx()
1018 MPASS(nm_txq->pidx <= nm_txq->sidx); in cxgbe_nm_tx()
1019 if (__predict_false(nm_txq->pidx == nm_txq->sidx)) { in cxgbe_nm_tx()
1025 nm_txq->pidx = 0; in cxgbe_nm_tx()
1034 nm_txq->equeqidx = nm_txq->pidx; in cxgbe_nm_tx()
1035 nm_txq->equiqidx = nm_txq->pidx; in cxgbe_nm_tx()
1038 nm_txq->equeqidx = nm_txq->pidx; in cxgbe_nm_tx()
1046 nm_txq->equeqidx = nm_txq->pidx; in cxgbe_nm_tx()
1061 if (nm_txq->cidx > nm_txq->pidx) in contiguous_ndesc_available()
1062 return (nm_txq->cidx - nm_txq->pidx - 1); in contiguous_ndesc_available()
1064 return (nm_txq->sidx - nm_txq->pidx); in contiguous_ndesc_available()
1066 return (nm_txq->sidx - nm_txq->pidx - 1); in contiguous_ndesc_available()
1151 MPASS(nm_txq->dbidx == nm_txq->pidx); in cxgbe_netmap_txsync()