Lines Matching defs:ops
221 const struct Qdisc_ops *ops;
227 ops = qdisc_lookup_default(name);
228 if (!ops) {
234 ops = qdisc_lookup_default(name);
237 if (ops) {
240 default_qdisc_ops = ops;
244 return ops ? 0 : -ENOENT;
340 const struct Qdisc_class_ops *cops = p->ops->cl_ops;
602 txt, qdisc->ops->id, qdisc->handle >> 16);
817 cops = sch->ops->cl_ops;
884 const struct net_device_ops *ops = dev->netdev_ops;
892 if (ops->ndo_setup_tc)
893 ops->ndo_setup_tc(dev, TC_QUERY_CAPS, &base);
938 if (nla_put_string(skb, TCA_KIND, q->ops->id))
940 if (q->ops->ingress_block_get) {
941 block_index = q->ops->ingress_block_get(q);
946 if (q->ops->egress_block_get) {
947 block_index = q->ops->egress_block_get(q);
952 if (q->ops->dump && q->ops->dump(q, skb) < 0)
966 if (q->ops->dump_stats && q->ops->dump_stats(q, &d) < 0)
1112 if (new && new->ops->attach && !ingress)
1140 if (new && !new->ops->attach)
1146 if (new && new->ops->attach)
1147 new->ops->attach(new);
1153 const struct Qdisc_class_ops *cops = parent->ops->cl_ops;
1170 if (new && new->ops == &noqueue_qdisc_ops) {
1195 if (!sch->ops->ingress_block_set) {
1199 sch->ops->ingress_block_set(sch, block_index);
1208 if (!sch->ops->egress_block_set) {
1212 sch->ops->egress_block_set(sch, block_index);
1232 struct Qdisc_ops *ops;
1235 ops = qdisc_lookup_ops(kind);
1237 if (ops == NULL && kind != NULL) {
1251 ops = qdisc_lookup_ops(kind);
1252 if (ops != NULL) {
1256 module_put(ops->owner);
1265 if (!ops) {
1270 sch = qdisc_alloc(dev_queue, ops, extack);
1325 if (ops->init) {
1326 err = ops->init(sch, tca[TCA_OPTIONS], extack);
1351 trace_qdisc_create(ops, dev, parent);
1356 /* Even if ops->init() failed, we call ops->destroy()
1359 if (ops->destroy)
1360 ops->destroy(sch);
1366 module_put(ops->owner);
1379 if (!sch->ops->change) {
1387 err = sch->ops->change(sch, tca[TCA_OPTIONS], extack);
1431 if (q->ops->cl_ops == NULL)
1438 q->ops->cl_ops->walk(q, &arg.w);
1446 const struct Qdisc_class_ops *cops = q->ops->cl_ops;
1527 if (tca[TCA_KIND] && nla_strcmp(tca[TCA_KIND], q->ops->id)) {
1637 nla_strcmp(tca[TCA_KIND], q->ops->id)) {
1687 nla_strcmp(tca[TCA_KIND], q->ops->id)) {
1713 if (tca[TCA_KIND] && nla_strcmp(tca[TCA_KIND], q->ops->id)) {
1740 if (p && p->ops->cl_ops && p->ops->cl_ops->select_queue)
1741 dev_queue = p->ops->cl_ops->select_queue(p, tcm);
1889 const struct Qdisc_class_ops *cl_ops = q->ops->cl_ops;
1903 if (nla_put_string(skb, TCA_KIND, q->ops->id))
1999 if (n && tp->ops->bind_class) {
2003 tp->ops->bind_class(n, a->classid, a->cl, q, a->base);
2020 const struct Qdisc_class_ops *cops = q->ops->cl_ops;
2040 tp->ops->walk(tp, &arg.w, true);
2050 const struct Qdisc_class_ops *cops = q->ops->cl_ops;
2059 q->ops->cl_ops->walk(q, &args.w);
2145 cops = q->ops->cl_ops;
2227 *t_p < s_t || !q->ops->cl_ops ||
2241 q->ops->cl_ops->walk(q, &arg.w);