Home
last modified time | relevance | path

Searched refs:toks (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.1/net/sched/
Dsch_tbf.c277 s64 toks; in tbf_dequeue() local
282 toks = min_t(s64, now - q->t_c, q->buffer); in tbf_dequeue()
285 ptoks = toks + q->ptokens; in tbf_dequeue()
290 toks += q->tokens; in tbf_dequeue()
291 if (toks > q->buffer) in tbf_dequeue()
292 toks = q->buffer; in tbf_dequeue()
293 toks -= (s64) psched_l2t_ns(&q->rate, len); in tbf_dequeue()
295 if ((toks|ptoks) >= 0) { in tbf_dequeue()
301 q->tokens = toks; in tbf_dequeue()
310 now + max_t(long, -toks, -ptoks)); in tbf_dequeue()
Dact_police.c249 s64 now, toks, ppstoks = 0, ptoks = 0; in tcf_police_act() local
275 toks = min_t(s64, now - police->tcfp_t_c, p->tcfp_burst); in tcf_police_act()
277 ptoks = toks + police->tcfp_ptoks; in tcf_police_act()
284 toks += police->tcfp_toks; in tcf_police_act()
285 if (toks > p->tcfp_burst) in tcf_police_act()
286 toks = p->tcfp_burst; in tcf_police_act()
287 toks -= (s64)psched_l2t_ns(&p->rate, qdisc_pkt_len(skb)); in tcf_police_act()
295 if ((toks | ptoks | ppstoks) >= 0) { in tcf_police_act()
297 police->tcfp_toks = toks; in tcf_police_act()
Dsch_htb.c528 s64 toks; in htb_class_mode() local
530 if ((toks = (cl->ctokens + *diff)) < htb_lowater(cl)) { in htb_class_mode()
531 *diff = -toks; in htb_class_mode()
535 if ((toks = (cl->tokens + *diff)) >= htb_hiwater(cl)) in htb_class_mode()
538 *diff = -toks; in htb_class_mode()
653 s64 toks = diff + cl->tokens; in htb_accnt_tokens() local
655 if (toks > cl->buffer) in htb_accnt_tokens()
656 toks = cl->buffer; in htb_accnt_tokens()
657 toks -= (s64) psched_l2t_ns(&cl->rate, bytes); in htb_accnt_tokens()
658 if (toks <= -cl->mbuffer) in htb_accnt_tokens()
[all …]
/Linux-v6.1/block/
Dsed-opal.c73 struct opal_resp_tok toks[MAX_TOKS]; member
787 tok = &resp->toks[n]; in response_get_token()
926 iter = resp->toks; in response_parse()