Lines Matching full:credit
19 * CREDIT
36 * If the credit is below the drop threshold, the packet is dropped. If it
64 int credit; in _hbm_out_cg() local
95 credit = qdp->credit; in _hbm_out_cg()
99 * the new credit, so we should not add it ourselves in _hbm_out_cg()
103 new_credit = credit + CREDIT_PER_NS(delta, qdp->rate); in _hbm_out_cg()
105 credit = MAX_CREDIT; in _hbm_out_cg()
107 credit = new_credit; in _hbm_out_cg()
109 credit -= len; in _hbm_out_cg()
110 qdp->credit = credit; in _hbm_out_cg()
124 if (credit < -DROP_THRESH || in _hbm_out_cg()
125 (len > LARGE_PKT_THRESH && credit < -LARGE_PKT_DROP_THRESH)) { in _hbm_out_cg()
132 } else if (credit < 0) { in _hbm_out_cg()
135 if (credit < -MARK_THRESH) in _hbm_out_cg()
151 if (-credit >= MARK_THRESH + in _hbm_out_cg()
168 cwr_flag, ecn_ce_flag, &pkti, credit); in _hbm_out_cg()
171 __sync_add_and_fetch(&(qdp->credit), len); in _hbm_out_cg()