Lines Matching refs:qops
140 int register_qdisc(struct Qdisc_ops *qops) in register_qdisc() argument
147 if (!strcmp(qops->id, q->id)) in register_qdisc()
150 if (qops->enqueue == NULL) in register_qdisc()
151 qops->enqueue = noop_qdisc_ops.enqueue; in register_qdisc()
152 if (qops->peek == NULL) { in register_qdisc()
153 if (qops->dequeue == NULL) in register_qdisc()
154 qops->peek = noop_qdisc_ops.peek; in register_qdisc()
158 if (qops->dequeue == NULL) in register_qdisc()
159 qops->dequeue = noop_qdisc_ops.dequeue; in register_qdisc()
161 if (qops->cl_ops) { in register_qdisc()
162 const struct Qdisc_class_ops *cops = qops->cl_ops; in register_qdisc()
171 qops->next = NULL; in register_qdisc()
172 *qp = qops; in register_qdisc()
184 int unregister_qdisc(struct Qdisc_ops *qops) in unregister_qdisc() argument
191 if (q == qops) in unregister_qdisc()