Lines Matching defs:ops

219 	const struct Qdisc_ops *ops;
225 ops = qdisc_lookup_default(name);
226 if (!ops) {
232 ops = qdisc_lookup_default(name);
235 if (ops) {
238 default_qdisc_ops = ops;
242 return ops ? 0 : -ENOENT;
337 const struct Qdisc_class_ops *cops = p->ops->cl_ops;
598 txt, qdisc->ops->id, qdisc->handle >> 16);
806 cops = sch->ops->cl_ops;
909 if (nla_put_string(skb, TCA_KIND, q->ops->id))
911 if (q->ops->ingress_block_get) {
912 block_index = q->ops->ingress_block_get(q);
917 if (q->ops->egress_block_get) {
918 block_index = q->ops->egress_block_get(q);
923 if (q->ops->dump && q->ops->dump(q, skb) < 0)
937 if (q->ops->dump_stats && q->ops->dump_stats(q, &d) < 0)
1065 if (new && new->ops->attach)
1085 if (new && !new->ops->attach)
1091 if (new && new->ops->attach)
1092 new->ops->attach(new);
1100 const struct Qdisc_class_ops *cops = parent->ops->cl_ops;
1117 if (new && new->ops == &noqueue_qdisc_ops) {
1142 if (!sch->ops->ingress_block_set) {
1146 sch->ops->ingress_block_set(sch, block_index);
1155 if (!sch->ops->egress_block_set) {
1159 sch->ops->egress_block_set(sch, block_index);
1179 struct Qdisc_ops *ops;
1182 ops = qdisc_lookup_ops(kind);
1184 if (ops == NULL && kind != NULL) {
1198 ops = qdisc_lookup_ops(kind);
1199 if (ops != NULL) {
1203 module_put(ops->owner);
1212 if (!ops) {
1217 sch = qdisc_alloc(dev_queue, ops, extack);
1263 if (ops->init) {
1264 err = ops->init(sch, tca[TCA_OPTIONS], extack);
1306 trace_qdisc_create(ops, dev, parent);
1311 /* ops->init() failed, we call ->destroy() like qdisc_create_dflt() */
1312 if (ops->destroy)
1313 ops->destroy(sch);
1318 module_put(ops->owner);
1325 * Any broken qdiscs that would require a ops->reset() here?
1329 if (ops->destroy)
1330 ops->destroy(sch);
1341 if (!sch->ops->change) {
1349 err = sch->ops->change(sch, tca[TCA_OPTIONS], extack);
1393 if (q->ops->cl_ops == NULL)
1400 q->ops->cl_ops->walk(q, &arg.w);
1408 const struct Qdisc_class_ops *cops = q->ops->cl_ops;
1493 if (tca[TCA_KIND] && nla_strcmp(tca[TCA_KIND], q->ops->id)) {
1606 nla_strcmp(tca[TCA_KIND], q->ops->id)) {
1656 nla_strcmp(tca[TCA_KIND], q->ops->id)) {
1682 if (tca[TCA_KIND] && nla_strcmp(tca[TCA_KIND], q->ops->id)) {
1709 if (p && p->ops->cl_ops && p->ops->cl_ops->select_queue)
1710 dev_queue = p->ops->cl_ops->select_queue(p, tcm);
1858 const struct Qdisc_class_ops *cl_ops = q->ops->cl_ops;
1872 if (nla_put_string(skb, TCA_KIND, q->ops->id))
1968 if (tp->ops->bind_class) {
1972 tp->ops->bind_class(n, a->classid, a->cl, q, a->base);
1989 const struct Qdisc_class_ops *cops = q->ops->cl_ops;
2009 tp->ops->walk(tp, &arg.w, true);
2019 const struct Qdisc_class_ops *cops = q->ops->cl_ops;
2028 q->ops->cl_ops->walk(q, &args.w);
2118 cops = q->ops->cl_ops;
2200 *t_p < s_t || !q->ops->cl_ops ||
2214 q->ops->cl_ops->walk(q, &arg.w);