Lines Matching refs:ewma_log
59 int ewma_log = -1; in cbq_parse_opt() local
72 if (get_integer(&ewma_log, *argv, 0)) { in cbq_parse_opt()
76 if (ewma_log > 31) { in cbq_parse_opt()
157 if (ewma_log < 0) in cbq_parse_opt()
158 ewma_log = TC_CBQ_DEF_EWMA; in cbq_parse_opt()
159 lss.ewma_log = ewma_log; in cbq_parse_opt()
190 int ewma_log = -1; in cbq_parse_class_opt() local
245 if (get_integer(&ewma_log, *argv, 0)) { in cbq_parse_class_opt()
249 if (ewma_log > 31) { in cbq_parse_class_opt()
366 if (ewma_log < 0) in cbq_parse_class_opt()
367 ewma_log = TC_CBQ_DEF_EWMA; in cbq_parse_class_opt()
368 lss.ewma_log = ewma_log; in cbq_parse_class_opt()
394 lss.maxidle = tc_cbq_calc_maxidle(bndw, r.rate, lss.avpkt, ewma_log, maxburst); in cbq_parse_class_opt()
399 lss.offtime = tc_cbq_calc_offtime(bndw, r.rate, lss.avpkt, ewma_log, minburst); in cbq_parse_class_opt()
404 lss.minidle <<= lss.ewma_log; in cbq_parse_class_opt()
534 fprintf(f, "\nlevel %u ewma %u avpkt %ub ", lss->level, lss->ewma_log, lss->avpkt); in cbq_print_opt()
536 fprintf(f, "maxidle %s ", sprint_ticks(lss->maxidle>>lss->ewma_log, b1)); in cbq_print_opt()
541 fprintf(f, "minidle %s ", sprint_ticks(lss->minidle>>lss->ewma_log, b1)); in cbq_print_opt()