Lines Matching refs:prio

57 	struct rtnl_prio *prio;  in prio_msg_parser()  local
63 prio = prio_alloc(qdisc); in prio_msg_parser()
64 if (!prio) in prio_msg_parser()
68 prio->qp_bands = opt->bands; in prio_msg_parser()
69 memcpy(prio->qp_priomap, opt->priomap, sizeof(prio->qp_priomap)); in prio_msg_parser()
70 prio->qp_mask = (SCH_PRIO_ATTR_BANDS | SCH_PRIO_ATTR_PRIOMAP); in prio_msg_parser()
82 struct rtnl_prio *prio = prio_qdisc(qdisc); in prio_dump_line() local
84 if (prio) in prio_dump_line()
85 nl_dump(p, " bands %u", prio->qp_bands); in prio_dump_line()
90 struct rtnl_prio *prio = prio_qdisc(qdisc); in prio_dump_details() local
93 if (!prio) in prio_dump_details()
99 nl_dump(p, "%u%s", prio->qp_priomap[i], in prio_dump_details()
111 prio->qp_priomap[i]); in prio_dump_details()
115 prio->qp_priomap[hp+i]); in prio_dump_details()
126 struct rtnl_prio *prio; in prio_get_opts() local
130 prio = prio_qdisc(qdisc); in prio_get_opts()
131 if (!prio || in prio_get_opts()
132 !(prio->qp_mask & SCH_PRIO_ATTR_PRIOMAP)) in prio_get_opts()
135 opts.bands = prio->qp_bands; in prio_get_opts()
136 memcpy(opts.priomap, prio->qp_priomap, sizeof(opts.priomap)); in prio_get_opts()
165 struct rtnl_prio *prio; in rtnl_qdisc_prio_set_bands() local
167 prio = prio_alloc(qdisc); in rtnl_qdisc_prio_set_bands()
168 if (!prio) in rtnl_qdisc_prio_set_bands()
171 prio->qp_bands = bands; in rtnl_qdisc_prio_set_bands()
172 prio->qp_mask |= SCH_PRIO_ATTR_BANDS; in rtnl_qdisc_prio_set_bands()
184 struct rtnl_prio *prio; in rtnl_qdisc_prio_get_bands() local
186 prio = prio_qdisc(qdisc); in rtnl_qdisc_prio_get_bands()
187 if (prio && prio->qp_mask & SCH_PRIO_ATTR_BANDS) in rtnl_qdisc_prio_get_bands()
188 return prio->qp_bands; in rtnl_qdisc_prio_get_bands()
203 struct rtnl_prio *prio; in rtnl_qdisc_prio_set_priomap() local
206 prio = prio_alloc(qdisc); in rtnl_qdisc_prio_set_priomap()
207 if (!prio) in rtnl_qdisc_prio_set_priomap()
210 if (!(prio->qp_mask & SCH_PRIO_ATTR_BANDS)) in rtnl_qdisc_prio_set_priomap()
217 if (priomap[i] > prio->qp_bands) in rtnl_qdisc_prio_set_priomap()
221 memcpy(prio->qp_priomap, priomap, len); in rtnl_qdisc_prio_set_priomap()
222 prio->qp_mask |= SCH_PRIO_ATTR_PRIOMAP; in rtnl_qdisc_prio_set_priomap()
235 struct rtnl_prio *prio; in rtnl_qdisc_prio_get_priomap() local
237 prio = prio_qdisc(qdisc); in rtnl_qdisc_prio_get_priomap()
238 if (prio && prio->qp_mask & SCH_PRIO_ATTR_PRIOMAP) in rtnl_qdisc_prio_get_priomap()
239 return prio->qp_priomap; in rtnl_qdisc_prio_get_priomap()
271 char * rtnl_prio2str(int prio, char *buf, size_t size) in rtnl_prio2str() argument
273 return __type2str(prio, buf, size, prios, ARRAY_SIZE(prios)); in rtnl_prio2str()