Lines Matching refs:s64
101 s64 buffer, cbuffer;/* token bucket depth/rate */
102 s64 mbuffer; /* max wait time */
124 s64 tokens, ctokens;/* current number of tokens */
125 s64 t_c; /* checkpoint time */
137 s64 pq_key;
169 s64 now; /* cached dequeue time */
173 s64 near_ev_cache[TC_HTB_MAXDEPTH];
296 struct htb_class *cl, s64 delay) in htb_add_to_wait_tree()
467 static inline s64 htb_lowater(const struct htb_class *cl) in htb_lowater()
474 static inline s64 htb_hiwater(const struct htb_class *cl) in htb_hiwater()
495 htb_class_mode(struct htb_class *cl, s64 *diff) in htb_class_mode()
497 s64 toks; in htb_class_mode()
521 htb_change_class_mode(struct htb_sched *q, struct htb_class *cl, s64 *diff) in htb_change_class_mode()
607 static inline void htb_accnt_tokens(struct htb_class *cl, int bytes, s64 diff) in htb_accnt_tokens()
609 s64 toks = diff + cl->tokens; in htb_accnt_tokens()
613 toks -= (s64) psched_l2t_ns(&cl->rate, bytes); in htb_accnt_tokens()
620 static inline void htb_accnt_ctokens(struct htb_class *cl, int bytes, s64 diff) in htb_accnt_ctokens()
622 s64 toks = diff + cl->ctokens; in htb_accnt_ctokens()
626 toks -= (s64) psched_l2t_ns(&cl->ceil, bytes); in htb_accnt_ctokens()
649 s64 diff; in htb_charge_class()
652 diff = min_t(s64, q->now - cl->t_c, cl->mbuffer); in htb_charge_class()
689 static s64 htb_do_events(struct htb_sched *q, const int level, in htb_do_events()
701 s64 diff; in htb_do_events()
712 diff = min_t(s64, q->now - cl->t_c, cl->mbuffer); in htb_do_events()
883 s64 next_event; in htb_dequeue()
906 s64 event = q->near_ev_cache[level]; in htb_dequeue()