Lines Matching refs:rate
168 if (opt.ceil.rate) { in htb_parse_class_opt()
172 if (get_rate(&opt.ceil.rate, *argv)) { in htb_parse_class_opt()
179 if (opt.rate.rate) { in htb_parse_class_opt()
183 if (get_rate(&opt.rate.rate, *argv)) { in htb_parse_class_opt()
202 if (opt.rate.rate == 0) { in htb_parse_class_opt()
207 if (!opt.ceil.rate) opt.ceil = opt.rate; in htb_parse_class_opt()
211 if (!buffer) buffer = opt.rate.rate / get_hz() + mtu; in htb_parse_class_opt()
212 if (!cbuffer) cbuffer = opt.ceil.rate / get_hz() + mtu; in htb_parse_class_opt()
215 opt.rate.overhead = overhead; in htb_parse_class_opt()
218 opt.rate.mpu = mpu; in htb_parse_class_opt()
220 if (tc_calc_rtable(&opt.rate, rtab, cell_log, mtu, linklayer) < 0) { in htb_parse_class_opt()
224 opt.buffer = tc_calc_xmittime(opt.rate.rate, buffer); in htb_parse_class_opt()
230 opt.cbuffer = tc_calc_xmittime(opt.ceil.rate, cbuffer); in htb_parse_class_opt()
266 fprintf(f, "rate %s ", sprint_rate(hopt->rate.rate, b1)); in htb_print_opt()
267 buffer = tc_calc_xmitsize(hopt->rate.rate, hopt->buffer); in htb_print_opt()
268 fprintf(f, "ceil %s ", sprint_rate(hopt->ceil.rate, b1)); in htb_print_opt()
269 cbuffer = tc_calc_xmitsize(hopt->ceil.rate, hopt->cbuffer); in htb_print_opt()
273 1<<hopt->rate.cell_log, in htb_print_opt()
274 sprint_size(hopt->rate.mpu&0xFF, b2), in htb_print_opt()
275 sprint_size((hopt->rate.mpu>>8)&0xFF, b3)); in htb_print_opt()