Lines Matching refs:cidx

174 	unsigned int cidx;  in reclaimable()  local
176 cidx = eq->spg->cidx; /* stable snapshot */ in reclaimable()
177 cidx = be16_to_cpu(cidx); in reclaimable()
179 if (cidx >= eq->cidx) in reclaimable()
180 return (cidx - eq->cidx); in reclaimable()
182 return (cidx + eq->cap - eq->cidx); in reclaimable()
1037 eq->cidx += can_reclaim; in t4_wrq_tx_locked()
1039 if (eq->cidx >= eq->cap) in t4_wrq_tx_locked()
1040 eq->cidx -= eq->cap; in t4_wrq_tx_locked()
1080 eq->cidx += can_reclaim; in t4_wrq_tx_locked()
1082 if (eq->cidx >= eq->cap) in t4_wrq_tx_locked()
1083 eq->cidx -= eq->cap; in t4_wrq_tx_locked()
1416 iq->cidx = 0; in alloc_iq_fl()
1436 fl->pidx = fl->cidx = 0; in alloc_iq_fl()
1801 eq->pidx = eq->cidx = 0; in alloc_eq()
2007 while (eq->cidx != eq->pidx) { in free_txq()
2008 sd = &txq->sdesc[eq->cidx]; in free_txq()
2020 eq->cidx += sd->desc_used; in free_txq()
2021 if (eq->cidx >= eq->cap) in free_txq()
2022 eq->cidx -= eq->cap; in free_txq()
2196 if (++iq->cidx == iq->qsize - 1) { in iq_next()
2197 iq->cidx = 0; in iq_next()
2353 uint32_t cidx, offset, rcidx, roffset; in get_fl_payload() local
2360 rcidx = fl->cidx; in get_fl_payload()
2364 if (++fl->cidx == fl->cap) in get_fl_payload()
2365 fl->cidx = 0; in get_fl_payload()
2368 cidx = fl->cidx; in get_fl_payload()
2380 fl->cidx = rcidx; in get_fl_payload()
2387 rxb = fl->sdesc[cidx].rxb; in get_fl_payload()
2406 fl->cidx = rcidx; in get_fl_payload()
2423 if (++cidx == fl->cap) in get_fl_payload()
2424 cidx = 0; in get_fl_payload()
2429 fl->cidx = cidx; in get_fl_payload()
3196 uint_t cidx, can_reclaim, reclaimed, txb_freed, hdls_freed; in reclaim_tx_descs() local
3201 cidx = eq->spg->cidx; /* stable snapshot */ in reclaim_tx_descs()
3202 cidx = be16_to_cpu(cidx); in reclaim_tx_descs()
3204 if (cidx >= eq->cidx) in reclaim_tx_descs()
3205 can_reclaim = cidx - eq->cidx; in reclaim_tx_descs()
3207 can_reclaim = cidx + eq->cap - eq->cidx; in reclaim_tx_descs()
3216 txsd = &txq->sdesc[eq->cidx]; in reclaim_tx_descs()
3241 eq->cidx += ndesc; in reclaim_tx_descs()
3242 if (eq->cidx >= eq->cap) in reclaim_tx_descs()
3243 eq->cidx -= eq->cap; in reclaim_tx_descs()
3348 if (FL_HW_IDX(fl->pidx) == FL_HW_IDX(fl->cidx)) in ring_fl_db()