Lines Matching defs:sc
1093 struct service_curve *sc, struct internal_sc *isc, const char *which)
1100 which, sc->m1, (sc->fl & HFSCF_M1_PCT) ? "%" : " bps", isc->sm1,
1101 which, sc->d,
1102 which, sc->m2, (sc->fl & HFSCF_M2_PCT) ? "%" : " bps", isc->sm2,
1110 struct service_curve *sc;
1117 sc = &cl->cl_rsc0;
1119 if ((cl->cl_flags & HFCF_RSC) && sc2isc(cl, sc, isc, eff_rate)) {
1124 sc, isc, "rsc");
1127 sc = &cl->cl_fsc0;
1129 if ((cl->cl_flags & HFCF_FSC) && sc2isc(cl, sc, isc, eff_rate)) {
1133 sc, isc, "fsc");
1136 sc = &cl->cl_usc0;
1138 if ((cl->cl_flags & HFCF_USC) && sc2isc(cl, sc, isc, eff_rate)) {
1142 sc, isc, "usc");
1732 sc2isc(struct hfsc_class *cl, struct service_curve *sc, struct internal_sc *isc,
1739 if (eff_rate == 0 && (sc->fl & (HFSCF_M1_PCT | HFSCF_M2_PCT))) {
1754 m1 = sc->m1;
1755 if (sc->fl & HFSCF_M1_PCT) {
1760 m2 = sc->m2;
1761 if (sc->fl & HFSCF_M2_PCT) {
1768 isc->dx = d2dx(sc->d);