• Home
  • Raw
  • Download

Lines Matching refs:tsc

65 		struct tc_service_curve tsc;  in hfsc_class_msg_parser()  local
67 nla_memcpy(&tsc, tb[TCA_HFSC_RSC], sizeof(tsc)); in hfsc_class_msg_parser()
68 hfsc->ch_rsc = tsc; in hfsc_class_msg_parser()
73 struct tc_service_curve tsc; in hfsc_class_msg_parser() local
75 nla_memcpy(&tsc, tb[TCA_HFSC_FSC], sizeof(tsc)); in hfsc_class_msg_parser()
76 hfsc->ch_fsc = tsc; in hfsc_class_msg_parser()
81 struct tc_service_curve tsc; in hfsc_class_msg_parser() local
83 nla_memcpy(&tsc, tb[TCA_HFSC_USC], sizeof(tsc)); in hfsc_class_msg_parser()
84 hfsc->ch_usc = tsc; in hfsc_class_msg_parser()
106 static void hfsc_dump_tsc(struct nl_dump_params *p, struct tc_service_curve *tsc) in hfsc_dump_tsc() argument
108 nl_dump(p, " m1 %u d %u m2 %u\n", tsc->m1, tsc->d, tsc->m2); in hfsc_dump_tsc()
149 struct tc_service_curve tsc; in hfsc_class_msg_fill() local
155 tsc = hfsc->ch_rsc; in hfsc_class_msg_fill()
156 NLA_PUT(msg, TCA_HFSC_RSC, sizeof(tsc), &tsc); in hfsc_class_msg_fill()
160 tsc = hfsc->ch_fsc; in hfsc_class_msg_fill()
161 NLA_PUT(msg, TCA_HFSC_FSC, sizeof(tsc), &tsc); in hfsc_class_msg_fill()
165 tsc = hfsc->ch_usc; in hfsc_class_msg_fill()
166 NLA_PUT(msg, TCA_HFSC_USC, sizeof(tsc), &tsc); in hfsc_class_msg_fill()
232 int rtnl_class_hfsc_get_rsc(const struct rtnl_class *class, struct tc_service_curve *tsc) in rtnl_class_hfsc_get_rsc() argument
239 *tsc = hfsc->ch_rsc; in rtnl_class_hfsc_get_rsc()
246 int rtnl_class_hfsc_set_rsc(struct rtnl_class *class, const struct tc_service_curve *tsc) in rtnl_class_hfsc_set_rsc() argument
254 hfsc->ch_rsc = *tsc; in rtnl_class_hfsc_set_rsc()
260 int rtnl_class_hfsc_get_fsc(const struct rtnl_class *class, struct tc_service_curve *tsc) in rtnl_class_hfsc_get_fsc() argument
267 *tsc = hfsc->ch_fsc; in rtnl_class_hfsc_get_fsc()
274 int rtnl_class_hfsc_set_fsc(struct rtnl_class *class, const struct tc_service_curve *tsc) in rtnl_class_hfsc_set_fsc() argument
282 hfsc->ch_fsc = *tsc; in rtnl_class_hfsc_set_fsc()
288 int rtnl_class_hfsc_get_usc(const struct rtnl_class *class, struct tc_service_curve *tsc) in rtnl_class_hfsc_get_usc() argument
295 *tsc = hfsc->ch_usc; in rtnl_class_hfsc_get_usc()
302 int rtnl_class_hfsc_set_usc(struct rtnl_class *class, const struct tc_service_curve *tsc) in rtnl_class_hfsc_set_usc() argument
310 hfsc->ch_usc = *tsc; in rtnl_class_hfsc_set_usc()