toks 73 block/sed-opal.c struct opal_resp_tok toks[MAX_TOKS]; toks 745 block/sed-opal.c tok = &resp->toks[n]; toks 884 block/sed-opal.c iter = resp->toks; toks 223 net/sched/act_police.c s64 now, toks, ptoks = 0; toks 248 net/sched/act_police.c toks = min_t(s64, now - police->tcfp_t_c, p->tcfp_burst); toks 250 net/sched/act_police.c ptoks = toks + police->tcfp_ptoks; toks 256 net/sched/act_police.c toks += police->tcfp_toks; toks 257 net/sched/act_police.c if (toks > p->tcfp_burst) toks 258 net/sched/act_police.c toks = p->tcfp_burst; toks 259 net/sched/act_police.c toks -= (s64)psched_l2t_ns(&p->rate, qdisc_pkt_len(skb)); toks 260 net/sched/act_police.c if ((toks|ptoks) >= 0) { toks 262 net/sched/act_police.c police->tcfp_toks = toks; toks 502 net/sched/sch_htb.c s64 toks; toks 504 net/sched/sch_htb.c if ((toks = (cl->ctokens + *diff)) < htb_lowater(cl)) { toks 505 net/sched/sch_htb.c *diff = -toks; toks 509 net/sched/sch_htb.c if ((toks = (cl->tokens + *diff)) >= htb_hiwater(cl)) toks 512 net/sched/sch_htb.c *diff = -toks; toks 620 net/sched/sch_htb.c s64 toks = diff + cl->tokens; toks 622 net/sched/sch_htb.c if (toks > cl->buffer) toks 623 net/sched/sch_htb.c toks = cl->buffer; toks 624 net/sched/sch_htb.c toks -= (s64) psched_l2t_ns(&cl->rate, bytes); toks 625 net/sched/sch_htb.c if (toks <= -cl->mbuffer) toks 626 net/sched/sch_htb.c toks = 1 - cl->mbuffer; toks 628 net/sched/sch_htb.c cl->tokens = toks; toks 633 net/sched/sch_htb.c s64 toks = diff + cl->ctokens; toks 635 net/sched/sch_htb.c if (toks > cl->cbuffer) toks 636 net/sched/sch_htb.c toks = cl->cbuffer; toks 637 net/sched/sch_htb.c toks -= (s64) psched_l2t_ns(&cl->ceil, bytes); toks 638 net/sched/sch_htb.c if (toks <= -cl->mbuffer) toks 639 net/sched/sch_htb.c toks = 1 - cl->mbuffer; toks 641 net/sched/sch_htb.c cl->ctokens = toks; toks 218 net/sched/sch_tbf.c s64 toks; toks 223 net/sched/sch_tbf.c toks = min_t(s64, now - q->t_c, q->buffer); toks 226 net/sched/sch_tbf.c ptoks = toks + q->ptokens; toks 231 net/sched/sch_tbf.c toks += q->tokens; toks 232 net/sched/sch_tbf.c if (toks > q->buffer) toks 233 net/sched/sch_tbf.c toks = q->buffer; toks 234 net/sched/sch_tbf.c toks -= (s64) psched_l2t_ns(&q->rate, len); toks 236 net/sched/sch_tbf.c if ((toks|ptoks) >= 0) { toks 242 net/sched/sch_tbf.c q->tokens = toks; toks 251 net/sched/sch_tbf.c now + max_t(long, -toks, -ptoks));