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()
608 static inline void htb_accnt_tokens(struct htb_class *cl, int bytes, s64 diff) in htb_accnt_tokens()
610 s64 toks = diff + cl->tokens; in htb_accnt_tokens()
614 toks -= (s64) psched_l2t_ns(&cl->rate, bytes); in htb_accnt_tokens()
621 static inline void htb_accnt_ctokens(struct htb_class *cl, int bytes, s64 diff) in htb_accnt_ctokens()
623 s64 toks = diff + cl->ctokens; in htb_accnt_ctokens()
627 toks -= (s64) psched_l2t_ns(&cl->ceil, bytes); in htb_accnt_ctokens()
650 s64 diff; in htb_charge_class()
653 diff = min_t(s64, q->now - cl->t_c, cl->mbuffer); in htb_charge_class()
690 static s64 htb_do_events(struct htb_sched *q, const int level, in htb_do_events()
702 s64 diff; in htb_do_events()
713 diff = min_t(s64, q->now - cl->t_c, cl->mbuffer); in htb_do_events()
884 s64 next_event; in htb_dequeue()
908 s64 event = q->near_ev_cache[level]; in htb_dequeue()