Lines Matching full:gsc
1062 gsc_add_sc(struct gen_sc *gsc, struct service_curve *sc) in gsc_add_sc() argument
1067 gsc_add_seg(gsc, 0.0, 0.0, (double)sc->d, (double)sc->m1); in gsc_add_sc()
1068 gsc_add_seg(gsc, (double)sc->d, 0.0, INFINITY, (double)sc->m2); in gsc_add_sc()
1077 is_gsc_under_sc(struct gen_sc *gsc, struct service_curve *sc) in is_gsc_under_sc() argument
1083 if (LIST_EMPTY(gsc)) in is_gsc_under_sc()
1085 LIST_FOREACH(s, gsc, _next) { in is_gsc_under_sc()
1092 * gsc has a dummy entry at the end with x = INFINITY. in is_gsc_under_sc()
1095 end = gsc_getentry(gsc, INFINITY); in is_gsc_under_sc()
1099 for (s = LIST_FIRST(gsc); s != end; s = LIST_NEXT(s, _next)) { in is_gsc_under_sc()
1119 * if gsc has no entry starting at x, a new entry is created at x.
1122 gsc_getentry(struct gen_sc *gsc, double x) in gsc_getentry() argument
1127 LIST_FOREACH(s, gsc, _next) { in gsc_getentry()
1151 LIST_INSERT_HEAD(gsc, new, _next); in gsc_getentry()
1175 gsc_add_seg(struct gen_sc *gsc, double x, double y, double d, double m) in gsc_add_seg() argument
1184 start = gsc_getentry(gsc, x); in gsc_add_seg()
1185 end = gsc_getentry(gsc, x2); in gsc_add_seg()
1194 end = gsc_getentry(gsc, INFINITY); in gsc_add_seg()