Home
last modified time | relevance | path

Searched refs:CREDIT_PER_NS (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_spin_lock.c47 #define CREDIT_PER_NS(delta, rate) (((delta) * rate) >> 20) macro
85 q->credit += CREDIT_PER_NS(curtime - q->lasttime, q->rate); in bpf_spin_lock_test()
/openbmc/linux/samples/bpf/
H A Dhbm_out_kern.c103 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()
H A Dhbm_kern.h56 #define CREDIT_PER_NS(delta, rate) ((((u64)(delta)) * (rate)) >> 20) macro