Lines Matching refs:cidx

248 		wq->sq.flush_cidx = wq->sq.cidx;  in c4iw_flush_sq()
270 int cidx; in flush_completed_wrs() local
273 wq->sq.flush_cidx = wq->sq.cidx; in flush_completed_wrs()
274 cidx = wq->sq.flush_cidx; in flush_completed_wrs()
276 while (cidx != wq->sq.pidx) { in flush_completed_wrs()
277 swsqe = &wq->sq.sw_sq[cidx]; in flush_completed_wrs()
279 if (++cidx == wq->sq.size) in flush_completed_wrs()
280 cidx = 0; in flush_completed_wrs()
287 cidx, cq->sw_pidx); in flush_completed_wrs()
292 if (++cidx == wq->sq.size) in flush_completed_wrs()
293 cidx = 0; in flush_completed_wrs()
294 wq->sq.flush_cidx = cidx; in flush_completed_wrs()
303 read_cqe->u.scqe.cidx = wq->sq.oldest_read->idx; in create_read_req_cqe()
474 srq->cidx, srq->pidx, srq->wq_pidx, in post_pending_srq_wrs()
499 if (rel_idx == srq->cidx) { in reap_srq_cqe()
501 __func__, rel_idx, srq->cidx, srq->pidx, in reap_srq_cqe()
505 while (srq->ooo_count && !srq->sw_rq[srq->cidx].valid) { in reap_srq_cqe()
507 __func__, srq->cidx, srq->pidx, in reap_srq_cqe()
511 srq->sw_rq[srq->cidx].wr_id); in reap_srq_cqe()
518 __func__, rel_idx, srq->cidx, in reap_srq_cqe()
680 if (!SW_CQE(hw_cqe) && (CQE_WRID_SQ_IDX(hw_cqe) != wq->sq.cidx)) { in poll_cq()
710 if (idx < wq->sq.cidx) in poll_cq()
711 wq->sq.in_use -= wq->sq.size + idx - wq->sq.cidx; in poll_cq()
713 wq->sq.in_use -= idx - wq->sq.cidx; in poll_cq()
715 wq->sq.cidx = (uint16_t)idx; in poll_cq()
716 pr_debug("completing sq idx %u\n", wq->sq.cidx); in poll_cq()
717 *cookie = wq->sq.sw_sq[wq->sq.cidx].wr_id; in poll_cq()
723 pr_debug("completing rq idx %u\n", wq->rq.cidx); in poll_cq()
724 *cookie = wq->rq.sw_rq[wq->rq.cidx].wr_id; in poll_cq()
748 cq, cq->cqid, cq->cidx); in poll_cq()