Searched refs:toks (Results 1 - 6 of 6) sorted by relevance

/linux-4.1.27/net/sched/
H A Dact_police.c260 s64 toks; tcf_act_police() local
283 toks = min_t(s64, now - police->tcfp_t_c, tcf_act_police()
286 ptoks = toks + police->tcfp_ptoks; tcf_act_police()
292 toks += police->tcfp_toks; tcf_act_police()
293 if (toks > police->tcfp_burst) tcf_act_police()
294 toks = police->tcfp_burst; tcf_act_police()
295 toks -= (s64) psched_l2t_ns(&police->rate, qdisc_pkt_len(skb)); tcf_act_police()
296 if ((toks|ptoks) >= 0) { tcf_act_police()
298 police->tcfp_toks = toks; tcf_act_police()
H A Dsch_tbf.c238 s64 toks; tbf_dequeue() local
243 toks = min_t(s64, now - q->t_c, q->buffer); tbf_dequeue()
246 ptoks = toks + q->ptokens; tbf_dequeue()
251 toks += q->tokens; tbf_dequeue()
252 if (toks > q->buffer) tbf_dequeue()
253 toks = q->buffer; tbf_dequeue()
254 toks -= (s64) psched_l2t_ns(&q->rate, len); tbf_dequeue()
256 if ((toks|ptoks) >= 0) { tbf_dequeue()
262 q->tokens = toks; tbf_dequeue()
271 now + max_t(long, -toks, -ptoks), tbf_dequeue()
H A Dsch_htb.c497 s64 toks; htb_class_mode() local
499 if ((toks = (cl->ctokens + *diff)) < htb_lowater(cl)) { htb_class_mode()
500 *diff = -toks; htb_class_mode()
504 if ((toks = (cl->tokens + *diff)) >= htb_hiwater(cl)) htb_class_mode()
507 *diff = -toks; htb_class_mode()
609 s64 toks = diff + cl->tokens; htb_accnt_tokens() local
611 if (toks > cl->buffer) htb_accnt_tokens()
612 toks = cl->buffer; htb_accnt_tokens()
613 toks -= (s64) psched_l2t_ns(&cl->rate, bytes); htb_accnt_tokens()
614 if (toks <= -cl->mbuffer) htb_accnt_tokens()
615 toks = 1 - cl->mbuffer; htb_accnt_tokens()
617 cl->tokens = toks; htb_accnt_tokens()
622 s64 toks = diff + cl->ctokens; htb_accnt_ctokens() local
624 if (toks > cl->cbuffer) htb_accnt_ctokens()
625 toks = cl->cbuffer; htb_accnt_ctokens()
626 toks -= (s64) psched_l2t_ns(&cl->ceil, bytes); htb_accnt_ctokens()
627 if (toks <= -cl->mbuffer) htb_accnt_ctokens()
628 toks = 1 - cl->mbuffer; htb_accnt_ctokens()
630 cl->ctokens = toks; htb_accnt_ctokens()
/linux-4.1.27/fs/ecryptfs/
H A Ddebug.c27 * ecryptfs_dump_auth_tok - debug function to print auth toks
H A Dmain.c475 printk(KERN_WARNING "One or more global auth toks could not " ecryptfs_parse_options()
H A Dkeystore.c571 * mount_crypt_stat structure, we prevent to use auth toks that ecryptfs_find_auth_tok_for_sig()

Completed in 149 milliseconds