Lines Matching refs:rsc
147 struct tc_service_curve rsc = {}, fsc = {}, usc = {}; in hfsc_parse_class_opt() local
154 if (hfsc_get_sc(&argc, &argv, &rsc) < 0) { in hfsc_parse_class_opt()
168 if (hfsc_get_sc(&argc, &argv, &rsc) < 0) { in hfsc_parse_class_opt()
172 memcpy(&fsc, &rsc, sizeof(fsc)); in hfsc_parse_class_opt()
208 addattr_l(n, 1024, TCA_HFSC_RSC, &rsc, sizeof(rsc)); in hfsc_parse_class_opt()
233 struct tc_service_curve *rsc = NULL, *fsc = NULL, *usc = NULL; in hfsc_print_class_opt() local
241 if (RTA_PAYLOAD(tb[TCA_HFSC_RSC]) < sizeof(*rsc)) in hfsc_print_class_opt()
244 rsc = RTA_DATA(tb[TCA_HFSC_RSC]); in hfsc_print_class_opt()
260 if (rsc != NULL && fsc != NULL && in hfsc_print_class_opt()
261 memcmp(rsc, fsc, sizeof(*rsc)) == 0) in hfsc_print_class_opt()
262 hfsc_print_sc(f, "sc", rsc); in hfsc_print_class_opt()
264 if (rsc != NULL) in hfsc_print_class_opt()
265 hfsc_print_sc(f, "rt", rsc); in hfsc_print_class_opt()