Lines Matching refs:cidx
71 &rx_ndesc, 0, "# of rx descriptors after which the hw cidx is updated.");
175 SYSCTL_ADD_U16(ctx, children, OID_AUTO, "cidx", CTLFLAG_RD,
185 SYSCTL_ADD_UINT(ctx, children, OID_AUTO, "cidx", CTLFLAG_RD,
231 nm_txq->pidx = nm_txq->cidx = 0;
251 SYSCTL_ADD_U16(&vi->ctx, children, OID_AUTO, "cidx", CTLFLAG_RD,
252 &nm_txq->cidx, 0, "consumer index");
472 nm_txq->pidx = nm_txq->cidx = 0;
1079 if (nm_txq->cidx > nm_txq->pidx)
1080 return (nm_txq->cidx - nm_txq->pidx - 1);
1081 else if (nm_txq->cidx > 0)
1091 uint16_t hw_cidx = spg->cidx; /* snapshot */
1097 while (nm_txq->cidx != hw_cidx) {
1098 wr = (void *)&nm_txq->desc[nm_txq->cidx];
1106 nm_txq->cidx += npkt_to_ndesc(wr->npkt);
1110 * back, WR by WR, should never cause the cidx to wrap around
1113 MPASS(nm_txq->cidx <= nm_txq->sidx);
1114 if (__predict_false(nm_txq->cidx == nm_txq->sidx))
1115 nm_txq->cidx = 0;
1295 * The freelist's cidx/pidx drives netmap's rx cidx/pidx. So
1360 u_int ndesc = 0; /* desc processed since last cidx update */