Lines Matching refs:credits
123 int n = flq->credits;
156 if (unlikely(flq->pidx >= flq->credits))
157 flq->pidx -= (uint16_t)flq->credits;
261 q->credits = (qsz - q->wr_sz) / q->wr_sz;
281 flq->un.fl.bufs = kcalloc(flq->credits,
304 flq->pidx = flq->inc_idx = flq->credits - 8;
315 q->credits = (qsz - csio_wr_qstat_pgsz(hw)) / CSIO_QCREDIT_SZ;
320 q->credits = (qsz - csio_wr_qstat_pgsz(hw)) / sizeof(__be64);
773 for (i = 0; i < q->credits; i++) {
850 * If requested credits are available, return the start address of the
874 int credits;
878 CSIO_DB_ASSERT(cidx <= q->credits);
880 /* Calculate credits */
882 credits = q->credits - (pidx - cidx) - 1;
884 credits = cidx - pidx - 1;
887 credits = q->credits;
892 * Check if we have enough credits.
893 * credits = 1 implies queue is full.
895 if (!credits || (req_credits > credits)) {
901 * If we are here, we have enough credits to satisfy the
925 if (unlikely(q->pidx == q->credits)) {
1004 return q->credits - (q->cidx - q->pidx);
1024 if (flq->cidx == flq->credits) {
1243 csio_wr_update_fl(hw, flq, (flq->credits - 8) - avail);
1700 for (j = 0; j < q->credits; j++) {