Lines Matching defs:bytes
621 static inline void htb_accnt_tokens(struct htb_class *cl, int bytes, s64 diff)
627 toks -= (s64) psched_l2t_ns(&cl->rate, bytes);
634 static inline void htb_accnt_ctokens(struct htb_class *cl, int bytes, s64 diff)
640 toks -= (s64) psched_l2t_ns(&cl->ceil, bytes);
648 * htb_charge_class - charges amount "bytes" to leaf and ancestors
650 * Routine assumes that packet "bytes" long was dequeued from leaf cl
651 * borrowing from "level". It accounts bytes to ceil leaky bucket for
661 int bytes = qdisc_pkt_len(skb);
670 htb_accnt_tokens(cl, bytes, diff);
675 htb_accnt_ctokens(cl, bytes, diff);