Lines Matching refs:gemodel
182 struct tc_netem_gemodel gemodel; in netem_parse_opt() local
297 if (get_percent(&gemodel.p, *argv)) { in netem_parse_opt()
303 set_percent(&gemodel.r, 1.); in netem_parse_opt()
304 set_percent(&gemodel.h, 0); in netem_parse_opt()
305 set_percent(&gemodel.k1, 0); in netem_parse_opt()
311 if (get_percent(&gemodel.r, *argv)) { in netem_parse_opt()
319 if (get_percent(&gemodel.h, *argv)) { in netem_parse_opt()
326 gemodel.h = max_percent_value - gemodel.h; in netem_parse_opt()
331 if (get_percent(&gemodel.k1, *argv)) { in netem_parse_opt()
497 &gemodel, sizeof(gemodel)) < 0) in netem_parse_opt()
537 const struct tc_netem_gemodel *gemodel = NULL; in netem_print_opt() local
584 gemodel = RTA_DATA(lb[NETEM_LOSS_GE]); in netem_print_opt()
629 if (gemodel) { in netem_print_opt()
631 sprint_percent(gemodel->p, b1)); in netem_print_opt()
632 fprintf(f, " r %s", sprint_percent(gemodel->r, b1)); in netem_print_opt()
634 gemodel->h, b1)); in netem_print_opt()
635 fprintf(f, " 1-k %s", sprint_percent(gemodel->k1, b1)); in netem_print_opt()