Lines Matching defs:sc
1087 struct service_curve *sc, struct internal_sc *isc, const char *which)
1094 which, sc->m1, (sc->fl & HFSCF_M1_PCT) ? "%" : " bps", isc->sm1,
1095 which, sc->d,
1096 which, sc->m2, (sc->fl & HFSCF_M2_PCT) ? "%" : " bps", isc->sm2,
1104 struct service_curve *sc;
1111 sc = &cl->cl_rsc0;
1113 if ((cl->cl_flags & HFCF_RSC) && sc2isc(cl, sc, isc, eff_rate)) {
1118 sc, isc, "rsc");
1121 sc = &cl->cl_fsc0;
1123 if ((cl->cl_flags & HFCF_FSC) && sc2isc(cl, sc, isc, eff_rate)) {
1127 sc, isc, "fsc");
1130 sc = &cl->cl_usc0;
1132 if ((cl->cl_flags & HFCF_USC) && sc2isc(cl, sc, isc, eff_rate)) {
1136 sc, isc, "usc");
1726 sc2isc(struct hfsc_class *cl, struct service_curve *sc, struct internal_sc *isc,
1733 if (eff_rate == 0 && (sc->fl & (HFSCF_M1_PCT | HFSCF_M2_PCT))) {
1748 m1 = sc->m1;
1749 if (sc->fl & HFSCF_M1_PCT) {
1754 m2 = sc->m2;
1755 if (sc->fl & HFSCF_M2_PCT) {
1762 isc->dx = d2dx(sc->d);