Lines Matching refs:gsc
888 gsc_add_sc(struct gen_sc *gsc, struct service_curve *sc)
893 gsc_add_seg(gsc, 0.0, 0.0, (double)sc->d, (double)sc->m1);
894 gsc_add_seg(gsc, (double)sc->d, 0.0, HUGE_VAL, (double)sc->m2);
903 is_gsc_under_sc(struct gen_sc *gsc, struct service_curve *sc)
909 if (LIST_EMPTY(gsc))
911 LIST_FOREACH(s, gsc, _next) {
918 * gsc has a dummy entry at the end with x = HUGE_VAL.
921 end = gsc_getentry(gsc, HUGE_VAL);
925 for (s = LIST_FIRST(gsc); s != end; s = LIST_NEXT(s, _next)) {
944 gsc_destroy(struct gen_sc *gsc)
948 while ((s = LIST_FIRST(gsc)) != NULL) {
956 * if gsc has no entry starting at x, a new entry is created at x.
959 gsc_getentry(struct gen_sc *gsc, double x)
964 LIST_FOREACH(s, gsc, _next) {
988 LIST_INSERT_HEAD(gsc, new, _next);
1012 gsc_add_seg(struct gen_sc *gsc, double x, double y, double d, double m)
1021 start = gsc_getentry(gsc, x);
1022 end = gsc_getentry(gsc, x2);
1031 end = gsc_getentry(gsc, HUGE_VAL);