Searched refs:CREDIT_PER_NS (Results 1 – 3 of 3) sorted by relevance
103 new_credit = credit + CREDIT_PER_NS(delta, qdp->rate); in _hbm_out_cg()119 CREDIT_PER_NS(1000000000, qdp->rate) * 8); in _hbm_out_cg()
56 #define CREDIT_PER_NS(delta, rate) ((((u64)(delta)) * (rate)) >> 20) macro
47 #define CREDIT_PER_NS(delta, rate) (((delta) * rate) >> 20) macro85 q->credit += CREDIT_PER_NS(curtime - q->lasttime, q->rate); in bpf_spin_lock_test()