Lines Matching defs:credit
21 uint32_t credit;
38 amount of credit `credit' and the most credit you can ever have
42 `prev' tracks the last packet hit: you gain one credit per jiffy.
43 If you get credit balance more than this, the extra credit is
75 priv->credit += (now - xchg(&priv->prev, now)) * CREDITS_PER_JIFFY;
76 if (priv->credit > r->credit_cap)
77 priv->credit = r->credit_cap;
79 if (priv->credit >= r->cost) {
81 priv->credit -= r->cost;
125 priv->credit = user2credits(r->avg * r->burst); /* Credits full. */
145 u_int32_t credit;
160 .credit = cm->credit,
174 .credit = m->credit,