Lines Matching refs:credits
123 int n = flq->credits; in csio_wr_fill_fl()
156 if (unlikely(flq->pidx >= flq->credits)) in csio_wr_update_fl()
157 flq->pidx -= (uint16_t)flq->credits; in csio_wr_update_fl()
261 q->credits = (qsz - q->wr_sz) / q->wr_sz; in csio_wr_alloc_q()
281 flq->un.fl.bufs = kcalloc(flq->credits, in csio_wr_alloc_q()
304 flq->pidx = flq->inc_idx = flq->credits - 8; in csio_wr_alloc_q()
315 q->credits = (qsz - csio_wr_qstat_pgsz(hw)) / CSIO_QCREDIT_SZ; in csio_wr_alloc_q()
320 q->credits = (qsz - csio_wr_qstat_pgsz(hw)) / sizeof(__be64); in csio_wr_alloc_q()
773 for (i = 0; i < q->credits; i++) { in csio_wr_cleanup_iq_ftr()
875 int credits; in csio_wr_get() local
879 CSIO_DB_ASSERT(cidx <= q->credits); in csio_wr_get()
883 credits = q->credits - (pidx - cidx) - 1; in csio_wr_get()
885 credits = cidx - pidx - 1; in csio_wr_get()
888 credits = q->credits; in csio_wr_get()
896 if (!credits || (req_credits > credits)) { in csio_wr_get()
926 if (unlikely(q->pidx == q->credits)) { in csio_wr_get()
1005 return q->credits - (q->cidx - q->pidx); in csio_wr_avail_qcredits()
1025 if (flq->cidx == flq->credits) { in csio_wr_inval_flq_buf()
1243 csio_wr_update_fl(hw, flq, (flq->credits - 8) - avail); in csio_wr_process_iq()
1700 for (j = 0; j < q->credits; j++) { in csio_wrm_exit()