Home
last modified time | relevance | path

Searched refs:rate64 (Results 1 – 4 of 4) sorted by relevance

/external/iproute2/tc/
Dq_htb.c124 __u64 ceil64 = 0, rate64 = 0; in htb_parse_class_opt() local
189 if (rate64) { in htb_parse_class_opt()
193 if (get_rate64(&rate64, *argv)) { in htb_parse_class_opt()
212 if (!rate64) { in htb_parse_class_opt()
218 ceil64 = rate64; in htb_parse_class_opt()
220 opt.rate.rate = (rate64 >= (1ULL << 32)) ? ~0U : rate64; in htb_parse_class_opt()
226 buffer = rate64 / get_hz() + mtu; in htb_parse_class_opt()
240 opt.buffer = tc_calc_xmittime(rate64, buffer); in htb_parse_class_opt()
251 if (rate64 >= (1ULL << 32)) in htb_parse_class_opt()
252 addattr_l(n, 1124, TCA_HTB_RATE64, &rate64, sizeof(rate64)); in htb_parse_class_opt()
[all …]
Dq_tbf.c50 __u64 rate64 = 0, prate64 = 0; in tbf_parse_opt() local
125 if (rate64) { in tbf_parse_opt()
129 if (get_rate64(&rate64, *argv)) { in tbf_parse_opt()
176 if (rate64 == 0) { in tbf_parse_opt()
201 opt.rate.rate = (rate64 >= (1ULL << 32)) ? ~0U : rate64; in tbf_parse_opt()
205 double lim = rate64*(double)latency/TIME_UNITS_PER_SEC + buffer; in tbf_parse_opt()
238 if (rate64 >= (1ULL << 32)) in tbf_parse_opt()
239 addattr_l(n, 2124, TCA_TBF_RATE64, &rate64, sizeof(rate64)); in tbf_parse_opt()
258 __u64 rate64 = 0, prate64 = 0; in tbf_print_opt() local
275 rate64 = qopt->rate.rate; in tbf_print_opt()
[all …]
Dq_netem.c187 __u64 rate64 = 0; in netem_parse_opt() local
402 if (get_rate64(&rate64, *argv)) { in netem_parse_opt()
508 if (rate64 >= (1ULL << 32)) { in netem_parse_opt()
510 TCA_NETEM_RATE64, &rate64, sizeof(rate64)) < 0) in netem_parse_opt()
514 rate.rate = rate64; in netem_parse_opt()
542 __u64 rate64 = 0; in netem_print_opt() local
597 if (RTA_PAYLOAD(tb[TCA_NETEM_RATE64]) < sizeof(rate64)) in netem_print_opt()
599 rate64 = rta_getattr_u64(tb[TCA_NETEM_RATE64]); in netem_print_opt()
662 if (rate64) in netem_print_opt()
663 fprintf(f, " rate %s", sprint_rate(rate64, b1)); in netem_print_opt()
/external/libnl/lib/route/qdisc/
Dhtb.c224 uint64_t rate64; in htb_class_msg_fill() local
240 rate64 = htb->ch_rate.rs_rate64; in htb_class_msg_fill()
252 ceil64 = rate64; in htb_class_msg_fill()
258 buffer = rate64 / nl_get_psched_hz() + mtu; /* XXX */ in htb_class_msg_fill()
260 opts.buffer = nl_us2ticks(rtnl_tc_calc_txtime64(buffer, rate64)); in htb_class_msg_fill()
273 if (rate64 > 0xFFFFFFFFull) in htb_class_msg_fill()
274 NLA_PUT(msg, TCA_HTB_RATE64, sizeof(uint64_t), &rate64); in htb_class_msg_fill()