Lines Matching defs:gsc
1115 gsc_add_sc(struct gen_sc *gsc, struct service_curve *sc)
1120 gsc_add_seg(gsc, 0.0, 0.0, (double)sc->d, (double)sc->m1);
1121 gsc_add_seg(gsc, (double)sc->d, 0.0, INFINITY, (double)sc->m2);
1130 is_gsc_under_sc(struct gen_sc *gsc, struct service_curve *sc)
1136 if (LIST_EMPTY(gsc))
1138 LIST_FOREACH(s, gsc, _next) {
1145 * gsc has a dummy entry at the end with x = INFINITY.
1148 end = gsc_getentry(gsc, INFINITY);
1152 for (s = LIST_FIRST(gsc); s != end; s = LIST_NEXT(s, _next)) {
1171 gsc_destroy(struct gen_sc *gsc)
1175 while ((s = LIST_FIRST(gsc)) != NULL) {
1183 * if gsc has no entry starting at x, a new entry is created at x.
1186 gsc_getentry(struct gen_sc *gsc, double x)
1191 LIST_FOREACH(s, gsc, _next) {
1215 LIST_INSERT_HEAD(gsc, new, _next);
1239 gsc_add_seg(struct gen_sc *gsc, double x, double y, double d, double m)
1248 start = gsc_getentry(gsc, x);
1249 end = gsc_getentry(gsc, x2);
1258 end = gsc_getentry(gsc, INFINITY);