Lines Matching refs:pidx

400 get_inuse(int size, qidx_t cidx, qidx_t pidx, uint8_t gen)
404 if (pidx > cidx)
405 used = pidx - cidx;
406 else if (pidx < cidx)
407 used = size - cidx + pidx;
408 else if (gen == 0 && pidx == cidx)
410 else if (gen == 1 && pidx == cidx)
2036 int err, frag_idx, i, idx, n, pidx;
2045 pidx = fl->ifl_pidx;
2046 idx = pidx;
2055 if (pidx < fl->ifl_cidx)
2056 MPASS(pidx + n <= fl->ifl_cidx);
2057 if (pidx == fl->ifl_cidx && (credits < fl->ifl_size))
2059 if (pidx > fl->ifl_cidx)
2060 MPASS(n <= fl->ifl_size - pidx + fl->ifl_cidx);
2129 iru.iru_pidx = pidx;
2134 pidx = idx;
2141 iru.iru_pidx = pidx;
2168 * We leave an unused descriptor to avoid pidx to catch up with cidx.
2399 "Watchdog timeout (TX: %d desc avail: %d pidx: %d) -- resetting\n",
2602 /* also resets the free lists pidx/cidx */
3112 * pending flush (BRCM). 'pidx' is used in cases where the card's doorbeel uses the
3133 printf("pi len: %d qsidx: %d nsegs: %d ndescs: %d flags: %x pidx: %d\n",
3327 int ntxd, pidx;
3332 pidx = txq->ift_pidx & (ntxd - 1);
3334 m = ifsd_m[pidx];
3335 ifsd_m[pidx] = NULL;
3336 bus_dmamap_unload(txq->ift_buf_tag, txq->ift_sds.ifsd_map[pidx]);
3339 txq->ift_sds.ifsd_tso_map[pidx]);
3422 int err, nsegs, ndesc, max_segs, pidx, cidx, next, ntxd;
3436 pidx = txq->ift_pidx;
3449 map = txq->ift_sds.ifsd_map[pidx];
3455 map = txq->ift_sds.ifsd_tso_map[pidx];
3461 map = txq->ift_sds.ifsd_map[pidx];
3475 pi.ipi_pidx = pidx;
3534 ifsd_m[pidx] = m_head;
3565 MPASS(pidx >= 0 && pidx < txq->ift_size);
3584 MPASS(pi.ipi_new_pidx != pidx);
3748 iflib_txq_drain(struct ifmp_ring *r, uint32_t cidx, uint32_t pidx)
3765 avail = IDXDIFF(pidx, cidx, r->size);
3862 iflib_txq_drain_free(struct ifmp_ring *r, uint32_t cidx, uint32_t pidx)
3875 avail = IDXDIFF(pidx, cidx, r->size);
6859 SYSCTL_ADD_U16(ctx_list, fl_list, OID_AUTO, "pidx",