Lines Matching full:avg
42 "--hashlimit <avg> max average match rate\n" in hashlimit_help()
79 " --hashlimit-upto <avg> max average match rate\n" in hashlimit_mt_help()
82 " --hashlimit-above <avg> min average match rate\n" in hashlimit_mt_help()
333 if (!parse_rate(cb->arg, &info->cfg.avg, cb->udata)) in hashlimit_parse()
357 if (parse_bytes(cb->arg, &info->cfg.avg, cb->udata)) in hashlimit_mt_parse()
359 else if (!parse_rate(cb->arg, &info->cfg.avg, cb->udata)) in hashlimit_mt_parse()
366 if (parse_bytes(cb->arg, &info->cfg.avg, cb->udata)) in hashlimit_mt_parse()
368 else if (!parse_rate(cb->arg, &info->cfg.avg, cb->udata)) in hashlimit_mt_parse()
412 if (info->cfg.burst < cost_to_bytes(info->cfg.avg)) in hashlimit_mt_check()
414 "burst cannot be smaller than %ub", cost_to_bytes(info->cfg.avg)); in hashlimit_mt_check()
417 burst /= cost_to_bytes(info->cfg.avg); in hashlimit_mt_check()
418 if (info->cfg.burst % cost_to_bytes(info->cfg.avg)) in hashlimit_mt_check()
465 static uint32_t print_bytes(uint32_t avg, uint32_t burst, const char *prefix) in print_bytes() argument
470 r = cost_to_bytes(avg); in print_bytes()
474 bytes_to_cost(r & ~(units[i].thresh - 1)) == avg) in print_bytes()
525 fputs(" limit: avg", stdout); in hashlimit_print()
526 quantum = print_rate(r->cfg.avg); in hashlimit_print()
551 quantum = print_bytes(info->cfg.avg, info->cfg.burst, ""); in hashlimit_mt_print()
553 quantum = print_rate(info->cfg.avg); in hashlimit_mt_print()
600 quantum = print_rate(r->cfg.avg); in hashlimit_save()
629 quantum = print_bytes(info->cfg.avg, info->cfg.burst, "--hashlimit-"); in hashlimit_mt_save()
631 quantum = print_rate(info->cfg.avg); in hashlimit_mt_save()