Lines Matching refs:pidx

422 get_inuse(int size, qidx_t cidx, qidx_t pidx, uint8_t gen)
426 if (pidx > cidx)
427 used = pidx - cidx;
428 else if (pidx < cidx)
429 used = size - cidx + pidx;
430 else if (gen == 0 && pidx == cidx)
432 else if (gen == 1 && pidx == cidx)
447 * these are the cq cidx and pidx. Otherwise
1828 int pidx = fl->ifl_pidx;
1843 idx = pidx;
1850 if (pidx < fl->ifl_cidx)
1851 MPASS(pidx + n <= fl->ifl_cidx);
1852 if (pidx == fl->ifl_cidx && (credits < fl->ifl_size))
1854 if (pidx > fl->ifl_cidx)
1855 MPASS(n <= fl->ifl_size - pidx + fl->ifl_cidx);
1933 iru.iru_pidx = pidx;
1937 pidx = idx;
1945 iru.iru_pidx = pidx;
1953 pidx = fl->ifl_size - 1;
1955 pidx = fl->ifl_pidx - 1;
1960 ctx->isc_rxd_flush(ctx->ifc_softc, fl->ifl_rxq->ifr_id, fl->ifl_id, pidx);
1969 /* we avoid allowing pidx to catch up with cidx as it confuses ixl */
2156 device_printf(ctx->ifc_dev, "TX(%d) desc avail = %d, pidx = %d\n",
2327 /* also resets the free lists pidx/cidx */
2793 printf("pi len: %d qsidx: %d nsegs: %d ndescs: %d flags: %x pidx: %d\n",
3010 int ntxd, i, pidx;
3013 pidx = txq->ift_pidx;
3016 mh = m = ifsd_m[pidx];
3017 ifsd_m[pidx] = NULL;
3024 ifsd_m[(pidx + i) & (ntxd -1)] = NULL;
3042 int i, next, pidx, err, ntxd, count;
3058 pidx = txq->ift_pidx;
3066 ifsd_flags[pidx] |= TX_SW_DESC_MAPPED;
3081 ifsd_m[pidx] = *m0;
3082 ifsd_m[pidx]->m_flags |= M_TOOBIG;
3088 next = (pidx + count) & (ntxd-1);
3121 next = (pidx + count) & (ntxd-1);
3225 int err, nsegs, ndesc, max_segs, pidx, cidx, next, ntxd;
3241 pidx = txq->ift_pidx;
3257 map = txq->ift_sds.ifsd_map[pidx];
3276 pi.ipi_pidx = pidx;
3361 MPASS(pidx >= 0 && pidx < txq->ift_size);
3384 MPASS(pi.ipi_new_pidx != pidx);
3552 iflib_txq_drain(struct ifmp_ring *r, uint32_t cidx, uint32_t pidx)
3569 avail = IDXDIFF(pidx, cidx, r->size);
3658 iflib_txq_drain_free(struct ifmp_ring *r, uint32_t cidx, uint32_t pidx)
3671 avail = IDXDIFF(pidx, cidx, r->size);
6066 SYSCTL_ADD_U16(ctx_list, fl_list, OID_AUTO, "pidx",