Lines Matching refs:credit
615 si->credit += (now - si->sched_time) * bw;
617 si->credit = 0;
620 while (si->credit >= 0 && (m = s->fp->dequeue(si)) != NULL) {
626 si->credit -= len_scaled;
633 * If credit >= 0 the instance is idle, mark time.
637 if (si->credit >= 0) {
641 KASSERT (bw > 0, ("bw=0 and credit<0 ?"));
642 t = div64(bw - 1 - si->credit, bw);
924 si->credit = dn_cfg.io_fast ? p->bandwidth : 0;
929 si->credit += burst;