Lines Matching refs:ewma_log
60 int ewma_log=-1; in cbq_parse_opt() local
76 if (get_integer(&ewma_log, *argv, 0)) { in cbq_parse_opt()
80 if (ewma_log > 31) { in cbq_parse_opt()
160 if (ewma_log < 0) in cbq_parse_opt()
161 ewma_log = TC_CBQ_DEF_EWMA; in cbq_parse_opt()
162 lss.ewma_log = ewma_log; in cbq_parse_opt()
193 int ewma_log=-1; in cbq_parse_class_opt() local
254 if (get_integer(&ewma_log, *argv, 0)) { in cbq_parse_class_opt()
258 if (ewma_log > 31) { in cbq_parse_class_opt()
371 if (ewma_log < 0) in cbq_parse_class_opt()
372 ewma_log = TC_CBQ_DEF_EWMA; in cbq_parse_class_opt()
373 lss.ewma_log = ewma_log; in cbq_parse_class_opt()
399 lss.maxidle = tc_cbq_calc_maxidle(bndw, r.rate, lss.avpkt, ewma_log, maxburst); in cbq_parse_class_opt()
404 lss.offtime = tc_cbq_calc_offtime(bndw, r.rate, lss.avpkt, ewma_log, minburst); in cbq_parse_class_opt()
409 lss.minidle <<= lss.ewma_log; in cbq_parse_class_opt()
529 fprintf(f, "\nlevel %u ewma %u avpkt %ub ", lss->level, lss->ewma_log, lss->avpkt); in cbq_print_opt()
531 fprintf(f, "maxidle %s ", sprint_ticks(lss->maxidle>>lss->ewma_log, b1)); in cbq_print_opt()
536 fprintf(f, "minidle %s ", sprint_ticks(lss->minidle>>lss->ewma_log, b1)); in cbq_print_opt()