Lines Matching refs:pidx
296 nm_txq->pidx = nm_txq->cidx = 0; in alloc_nm_txq_hwq()
519 while (be16toh(nm_txq->pidx) != spg->pidx) in cxgbe_netmap_off()
523 while (spg->pidx != spg->cidx) in cxgbe_netmap_off()
594 #define NMIDXDIFF(q, idx) IDXDIFF((q)->pidx, (q)->idx, (q)->sidx)
602 MPASS(nm_txq->pidx != nm_txq->dbidx); in ring_nm_txq_db()
624 __func__, nm_txq->doorbells, n, nm_txq->pidx, nm_txq)); in ring_nm_txq_db()
645 nm_txq->dbidx = nm_txq->pidx; in ring_nm_txq_db()
659 struct fw_eth_tx_pkts_wr *wr = (void *)&nm_txq->desc[nm_txq->pidx]; in cxgbe_nm_tx()
670 wr = (void *)&nm_txq->desc[nm_txq->pidx]; in cxgbe_nm_tx()
713 nm_txq->pidx += npkt_to_ndesc(n); in cxgbe_nm_tx()
714 MPASS(nm_txq->pidx <= nm_txq->sidx); in cxgbe_nm_tx()
715 if (__predict_false(nm_txq->pidx == nm_txq->sidx)) { in cxgbe_nm_tx()
721 nm_txq->pidx = 0; in cxgbe_nm_tx()
729 nm_txq->equeqidx = nm_txq->pidx; in cxgbe_nm_tx()
730 nm_txq->equiqidx = nm_txq->pidx; in cxgbe_nm_tx()
739 nm_txq->equeqidx = nm_txq->pidx; in cxgbe_nm_tx()
740 nm_txq->equiqidx = nm_txq->pidx; in cxgbe_nm_tx()
743 nm_txq->equeqidx = nm_txq->pidx; in cxgbe_nm_tx()
758 if (nm_txq->cidx > nm_txq->pidx) in contiguous_ndesc_available()
759 return (nm_txq->cidx - nm_txq->pidx - 1); in contiguous_ndesc_available()
761 return (nm_txq->sidx - nm_txq->pidx); in contiguous_ndesc_available()
763 return (nm_txq->sidx - nm_txq->pidx - 1); in contiguous_ndesc_available()
848 MPASS(nm_txq->dbidx == nm_txq->pidx); in cxgbe_netmap_txsync()