Lines Matching refs:prio
38 struct rtnl_prio *prio = data; in prio_msg_parser() local
45 prio->qp_bands = opt->bands; in prio_msg_parser()
46 memcpy(prio->qp_priomap, opt->priomap, sizeof(prio->qp_priomap)); in prio_msg_parser()
47 prio->qp_mask = (SCH_PRIO_ATTR_BANDS | SCH_PRIO_ATTR_PRIOMAP); in prio_msg_parser()
55 struct rtnl_prio *prio = data; in prio_dump_line() local
57 if (prio) in prio_dump_line()
58 nl_dump(p, " bands %u", prio->qp_bands); in prio_dump_line()
64 struct rtnl_prio *prio = data; in prio_dump_details() local
67 if (!prio) in prio_dump_details()
73 nl_dump(p, "%u%s", prio->qp_priomap[i], in prio_dump_details()
85 prio->qp_priomap[i]); in prio_dump_details()
89 prio->qp_priomap[hp+i]); in prio_dump_details()
100 struct rtnl_prio *prio = data; in prio_msg_fill() local
103 if (!prio || !(prio->qp_mask & SCH_PRIO_ATTR_PRIOMAP)) in prio_msg_fill()
106 opts.bands = prio->qp_bands; in prio_msg_fill()
107 memcpy(opts.priomap, prio->qp_priomap, sizeof(opts.priomap)); in prio_msg_fill()
125 struct rtnl_prio *prio; in rtnl_qdisc_prio_set_bands() local
127 if (!(prio = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_prio_set_bands()
130 prio->qp_bands = bands; in rtnl_qdisc_prio_set_bands()
131 prio->qp_mask |= SCH_PRIO_ATTR_BANDS; in rtnl_qdisc_prio_set_bands()
141 struct rtnl_prio *prio; in rtnl_qdisc_prio_get_bands() local
143 if (!(prio = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_prio_get_bands()
146 if (prio->qp_mask & SCH_PRIO_ATTR_BANDS) in rtnl_qdisc_prio_get_bands()
147 return prio->qp_bands; in rtnl_qdisc_prio_get_bands()
162 struct rtnl_prio *prio; in rtnl_qdisc_prio_set_priomap() local
165 if (!(prio = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_prio_set_priomap()
168 if (!(prio->qp_mask & SCH_PRIO_ATTR_BANDS)) in rtnl_qdisc_prio_set_priomap()
175 if (priomap[i] > prio->qp_bands) in rtnl_qdisc_prio_set_priomap()
179 memcpy(prio->qp_priomap, priomap, len); in rtnl_qdisc_prio_set_priomap()
180 prio->qp_mask |= SCH_PRIO_ATTR_PRIOMAP; in rtnl_qdisc_prio_set_priomap()
193 struct rtnl_prio *prio; in rtnl_qdisc_prio_get_priomap() local
195 if (!(prio = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_prio_get_priomap()
198 if (prio->qp_mask & SCH_PRIO_ATTR_PRIOMAP) in rtnl_qdisc_prio_get_priomap()
199 return prio->qp_priomap; in rtnl_qdisc_prio_get_priomap()
231 char * rtnl_prio2str(int prio, char *buf, size_t size) in rtnl_prio2str() argument
233 return __type2str(prio, buf, size, prios, ARRAY_SIZE(prios)); in rtnl_prio2str()