Home
last modified time | relevance | path

Searched refs:cl (Results 1 – 25 of 43) sorted by relevance

12

/net/sched/
Dsch_hfsc.c186 eltree_insert(struct hfsc_class *cl) in eltree_insert() argument
188 struct rb_node **p = &cl->sched->eligible.rb_node; in eltree_insert()
195 if (cl->cl_e >= cl1->cl_e) in eltree_insert()
200 rb_link_node(&cl->el_node, parent, p); in eltree_insert()
201 rb_insert_color(&cl->el_node, &cl->sched->eligible); in eltree_insert()
205 eltree_remove(struct hfsc_class *cl) in eltree_remove() argument
207 rb_erase(&cl->el_node, &cl->sched->eligible); in eltree_remove()
211 eltree_update(struct hfsc_class *cl) in eltree_update() argument
213 eltree_remove(cl); in eltree_update()
214 eltree_insert(cl); in eltree_update()
[all …]
Dsch_cbq.c168 #define L2T(cl, len) qdisc_l2t((cl)->R_tab, len) argument
186 struct cbq_class *cl; in cbq_reclassify() local
188 for (cl = this->tparent; cl; cl = cl->tparent) { in cbq_reclassify()
189 struct cbq_class *new = cl->defaults[TC_PRIO_BESTEFFORT]; in cbq_reclassify()
215 struct cbq_class *cl = NULL; in cbq_classify() local
224 (cl = cbq_class_lookup(q, prio)) != NULL) in cbq_classify()
225 return cl; in cbq_classify()
240 cl = (void *)res.class; in cbq_classify()
241 if (!cl) { in cbq_classify()
243 cl = cbq_class_lookup(q, res.classid); in cbq_classify()
[all …]
Dsch_htb.c217 struct htb_class *cl; in htb_classify() local
228 cl = htb_find(skb->priority, sch); in htb_classify()
229 if (cl) { in htb_classify()
230 if (cl->level == 0) in htb_classify()
231 return cl; in htb_classify()
233 tcf = rcu_dereference_bh(cl->filter_list); in htb_classify()
250 cl = (void *)res.class; in htb_classify()
251 if (!cl) { in htb_classify()
254 cl = htb_find(res.classid, sch); in htb_classify()
255 if (!cl) in htb_classify()
[all …]
Dsch_drr.c53 static void drr_purge_queue(struct drr_class *cl) in drr_purge_queue() argument
55 unsigned int len = cl->qdisc->q.qlen; in drr_purge_queue()
56 unsigned int backlog = cl->qdisc->qstats.backlog; in drr_purge_queue()
58 qdisc_reset(cl->qdisc); in drr_purge_queue()
59 qdisc_tree_reduce_backlog(cl->qdisc, len, backlog); in drr_purge_queue()
70 struct drr_class *cl = (struct drr_class *)*arg; in drr_change_class() local
90 if (cl != NULL) { in drr_change_class()
92 err = gen_replace_estimator(&cl->bstats, NULL, in drr_change_class()
93 &cl->rate_est, in drr_change_class()
103 cl->quantum = quantum; in drr_change_class()
[all …]
Dsch_qfq.c220 static void qfq_purge_queue(struct qfq_class *cl) in qfq_purge_queue() argument
222 unsigned int len = cl->qdisc->q.qlen; in qfq_purge_queue()
223 unsigned int backlog = cl->qdisc->qstats.backlog; in qfq_purge_queue()
225 qdisc_reset(cl->qdisc); in qfq_purge_queue()
226 qdisc_tree_reduce_backlog(cl->qdisc, len, backlog); in qfq_purge_queue()
325 struct qfq_class *cl) in qfq_add_to_agg() argument
327 cl->agg = agg; in qfq_add_to_agg()
330 if (cl->qdisc->q.qlen > 0) { /* adding an active class */ in qfq_add_to_agg()
331 list_add_tail(&cl->alist, &agg->active); in qfq_add_to_agg()
333 cl && q->in_serv_agg != agg) /* agg was inactive */ in qfq_add_to_agg()
[all …]
Dsch_mq.c120 static struct netdev_queue *mq_queue_get(struct Qdisc *sch, unsigned long cl) in mq_queue_get() argument
123 unsigned long ntx = cl - 1; in mq_queue_get()
144 static int mq_graft(struct Qdisc *sch, unsigned long cl, struct Qdisc *new, in mq_graft() argument
147 struct netdev_queue *dev_queue = mq_queue_get(sch, cl); in mq_graft()
161 static struct Qdisc *mq_leaf(struct Qdisc *sch, unsigned long cl) in mq_leaf() argument
163 struct netdev_queue *dev_queue = mq_queue_get(sch, cl); in mq_leaf()
177 static int mq_dump_class(struct Qdisc *sch, unsigned long cl, in mq_dump_class() argument
180 struct netdev_queue *dev_queue = mq_queue_get(sch, cl); in mq_dump_class()
183 tcm->tcm_handle |= TC_H_MIN(cl); in mq_dump_class()
188 static int mq_dump_class_stats(struct Qdisc *sch, unsigned long cl, in mq_dump_class_stats() argument
[all …]
Dsch_mqprio.c193 unsigned long cl) in mqprio_queue_get() argument
196 unsigned long ntx = cl - 1 - netdev_get_num_tc(dev); in mqprio_queue_get()
203 static int mqprio_graft(struct Qdisc *sch, unsigned long cl, struct Qdisc *new, in mqprio_graft() argument
207 struct netdev_queue *dev_queue = mqprio_queue_get(sch, cl); in mqprio_graft()
270 static struct Qdisc *mqprio_leaf(struct Qdisc *sch, unsigned long cl) in mqprio_leaf() argument
272 struct netdev_queue *dev_queue = mqprio_queue_get(sch, cl); in mqprio_leaf()
290 static int mqprio_dump_class(struct Qdisc *sch, unsigned long cl, in mqprio_dump_class() argument
295 if (cl <= netdev_get_num_tc(dev)) { in mqprio_dump_class()
302 dev_queue = mqprio_queue_get(sch, cl); in mqprio_dump_class()
306 int q_idx = cl - netdev_get_num_tc(dev); in mqprio_dump_class()
[all …]
Dsch_api.c320 unsigned long cl; in qdisc_leaf() local
326 cl = cops->find(p, classid); in qdisc_leaf()
328 if (cl == 0) in qdisc_leaf()
330 leaf = cops->leaf(p, cl); in qdisc_leaf()
633 struct Qdisc_class_common *cl; in qdisc_class_hash_grow() local
653 hlist_for_each_entry_safe(cl, next, &ohash[i], hnode) { in qdisc_class_hash_grow()
654 h = qdisc_class_hash(cl->classid, nmask); in qdisc_class_hash_grow()
655 hlist_add_head(&cl->hnode, &nhash[h]); in qdisc_class_hash_grow()
688 struct Qdisc_class_common *cl) in qdisc_class_hash_insert() argument
692 INIT_HLIST_NODE(&cl->hnode); in qdisc_class_hash_insert()
[all …]
Dsch_prio.c285 static void prio_unbind(struct Qdisc *q, unsigned long cl) in prio_unbind() argument
289 static int prio_dump_class(struct Qdisc *sch, unsigned long cl, struct sk_buff *skb, in prio_dump_class() argument
294 tcm->tcm_handle |= TC_H_MIN(cl); in prio_dump_class()
295 tcm->tcm_info = q->queues[cl-1]->handle; in prio_dump_class()
299 static int prio_dump_class_stats(struct Qdisc *sch, unsigned long cl, in prio_dump_class_stats() argument
305 cl_q = q->queues[cl - 1]; in prio_dump_class_stats()
335 static struct tcf_block *prio_tcf_block(struct Qdisc *sch, unsigned long cl) in prio_tcf_block() argument
339 if (cl) in prio_tcf_block()
Dsch_multiq.c321 static void multiq_unbind(struct Qdisc *q, unsigned long cl) in multiq_unbind() argument
325 static int multiq_dump_class(struct Qdisc *sch, unsigned long cl, in multiq_dump_class() argument
330 tcm->tcm_handle |= TC_H_MIN(cl); in multiq_dump_class()
331 tcm->tcm_info = q->queues[cl - 1]->handle; in multiq_dump_class()
335 static int multiq_dump_class_stats(struct Qdisc *sch, unsigned long cl, in multiq_dump_class_stats() argument
341 cl_q = q->queues[cl - 1]; in multiq_dump_class_stats()
371 static struct tcf_block *multiq_tcf_block(struct Qdisc *sch, unsigned long cl) in multiq_tcf_block() argument
375 if (cl) in multiq_tcf_block()
Dsch_atm.c103 static struct Qdisc *atm_tc_leaf(struct Qdisc *sch, unsigned long cl) in atm_tc_leaf() argument
105 struct atm_flow_data *flow = (struct atm_flow_data *)cl; in atm_tc_leaf()
141 static void atm_tc_put(struct Qdisc *sch, unsigned long cl) in atm_tc_put() argument
144 struct atm_flow_data *flow = (struct atm_flow_data *)cl; in atm_tc_put()
267 unsigned long cl; in atm_tc_change() local
271 cl = atm_tc_find(sch, classid); in atm_tc_change()
272 if (!cl) in atm_tc_change()
359 static struct tcf_block *atm_tc_tcf_block(struct Qdisc *sch, unsigned long cl) in atm_tc_tcf_block() argument
362 struct atm_flow_data *flow = (struct atm_flow_data *)cl; in atm_tc_tcf_block()
591 static int atm_tc_dump_class(struct Qdisc *sch, unsigned long cl, in atm_tc_dump_class() argument
[all …]
Dsch_dsmark.c102 static void dsmark_unbind_filter(struct Qdisc *sch, unsigned long cl) in dsmark_unbind_filter() argument
187 static struct tcf_block *dsmark_tcf_block(struct Qdisc *sch, unsigned long cl) in dsmark_tcf_block() argument
417 static int dsmark_dump_class(struct Qdisc *sch, unsigned long cl, in dsmark_dump_class() argument
423 pr_debug("%s(sch %p,[qdisc %p],class %ld\n", __func__, sch, p, cl); in dsmark_dump_class()
425 if (!dsmark_valid_index(p, cl)) in dsmark_dump_class()
428 tcm->tcm_handle = TC_H_MAKE(TC_H_MAJ(sch->handle), cl - 1); in dsmark_dump_class()
434 if (nla_put_u8(skb, TCA_DSMARK_MASK, p->mv[cl - 1].mask) || in dsmark_dump_class()
435 nla_put_u8(skb, TCA_DSMARK_VALUE, p->mv[cl - 1].value)) in dsmark_dump_class()
Dsch_ingress.c41 static void ingress_unbind_filter(struct Qdisc *sch, unsigned long cl) in ingress_unbind_filter() argument
49 static struct tcf_block *ingress_tcf_block(struct Qdisc *sch, unsigned long cl) in ingress_tcf_block() argument
137 static struct tcf_block *clsact_tcf_block(struct Qdisc *sch, unsigned long cl) in clsact_tcf_block() argument
141 switch (cl) { in clsact_tcf_block()
Dcls_api.c551 unsigned long cl; in tc_ctl_tfilter() local
572 cl = 0; in tc_ctl_tfilter()
622 cl = cops->find(q, parent); in tc_ctl_tfilter()
623 if (cl == 0) in tc_ctl_tfilter()
628 block = cops->tcf_block(q, cl); in tc_ctl_tfilter()
738 err = tp->ops->change(net, skb, tp, cl, t->tcm_handle, tca, &fh, in tc_ctl_tfilter()
831 unsigned long cl = 0; in tc_dump_tfilter() local
861 cl = cops->find(q, tcm->tcm_parent); in tc_dump_tfilter()
862 if (cl == 0) in tc_dump_tfilter()
865 block = cops->tcf_block(q, cl); in tc_dump_tfilter()
Dsch_fq_codel.c593 static void fq_codel_unbind(struct Qdisc *q, unsigned long cl) in fq_codel_unbind() argument
597 static struct tcf_block *fq_codel_tcf_block(struct Qdisc *sch, unsigned long cl) in fq_codel_tcf_block() argument
601 if (cl) in fq_codel_tcf_block()
606 static int fq_codel_dump_class(struct Qdisc *sch, unsigned long cl, in fq_codel_dump_class() argument
609 tcm->tcm_handle |= TC_H_MIN(cl); in fq_codel_dump_class()
613 static int fq_codel_dump_class_stats(struct Qdisc *sch, unsigned long cl, in fq_codel_dump_class_stats() argument
617 u32 idx = cl - 1; in fq_codel_dump_class_stats()
Dsch_sfq.c835 static void sfq_unbind(struct Qdisc *q, unsigned long cl) in sfq_unbind() argument
839 static struct tcf_block *sfq_tcf_block(struct Qdisc *sch, unsigned long cl) in sfq_tcf_block() argument
843 if (cl) in sfq_tcf_block()
848 static int sfq_dump_class(struct Qdisc *sch, unsigned long cl, in sfq_dump_class() argument
851 tcm->tcm_handle |= TC_H_MIN(cl); in sfq_dump_class()
855 static int sfq_dump_class_stats(struct Qdisc *sch, unsigned long cl, in sfq_dump_class_stats() argument
859 sfq_index idx = q->ht[cl - 1]; in sfq_dump_class_stats()
Dsch_sfb.c611 static int sfb_dump_class(struct Qdisc *sch, unsigned long cl, in sfb_dump_class() argument
651 static int sfb_delete(struct Qdisc *sch, unsigned long cl) in sfb_delete() argument
668 static struct tcf_block *sfb_tcf_block(struct Qdisc *sch, unsigned long cl) in sfb_tcf_block() argument
672 if (cl) in sfb_tcf_block()
/net/bluetooth/cmtp/
Dsock.c70 struct cmtp_connlist_req cl; in cmtp_sock_ioctl() local
114 if (copy_from_user(&cl, argp, sizeof(cl))) in cmtp_sock_ioctl()
117 if (cl.cnum <= 0) in cmtp_sock_ioctl()
120 err = cmtp_get_connlist(&cl); in cmtp_sock_ioctl()
121 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in cmtp_sock_ioctl()
144 struct cmtp_connlist_req cl; in cmtp_sock_compat_ioctl() local
148 if (get_user(cl.cnum, (u32 __user *) arg) || in cmtp_sock_compat_ioctl()
152 cl.ci = compat_ptr(uci); in cmtp_sock_compat_ioctl()
154 if (cl.cnum <= 0) in cmtp_sock_compat_ioctl()
157 err = cmtp_get_connlist(&cl); in cmtp_sock_compat_ioctl()
[all …]
/net/bluetooth/bnep/
Dsock.c54 struct bnep_connlist_req cl; in bnep_sock_ioctl() local
102 if (copy_from_user(&cl, argp, sizeof(cl))) in bnep_sock_ioctl()
105 if (cl.cnum <= 0) in bnep_sock_ioctl()
108 err = bnep_get_connlist(&cl); in bnep_sock_ioctl()
109 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in bnep_sock_ioctl()
141 struct bnep_connlist_req cl; in bnep_sock_compat_ioctl() local
145 if (get_user(cl.cnum, (u32 __user *) arg) || in bnep_sock_compat_ioctl()
149 cl.ci = compat_ptr(uci); in bnep_sock_compat_ioctl()
151 if (cl.cnum <= 0) in bnep_sock_compat_ioctl()
154 err = bnep_get_connlist(&cl); in bnep_sock_compat_ioctl()
[all …]
/net/bluetooth/hidp/
Dsock.c54 struct hidp_connlist_req cl; in hidp_sock_ioctl() local
100 if (copy_from_user(&cl, argp, sizeof(cl))) in hidp_sock_ioctl()
103 if (cl.cnum <= 0) in hidp_sock_ioctl()
106 err = hidp_get_connlist(&cl); in hidp_sock_ioctl()
107 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in hidp_sock_ioctl()
146 struct hidp_connlist_req cl; in hidp_sock_compat_ioctl() local
150 if (get_user(cl.cnum, (u32 __user *) arg) || in hidp_sock_compat_ioctl()
154 cl.ci = compat_ptr(uci); in hidp_sock_compat_ioctl()
156 if (cl.cnum <= 0) in hidp_sock_compat_ioctl()
159 err = hidp_get_connlist(&cl); in hidp_sock_compat_ioctl()
[all …]
/net/bluetooth/
Da2mp.c99 static void __a2mp_add_cl(struct amp_mgr *mgr, struct a2mp_cl *cl) in __a2mp_add_cl() argument
104 cl[0].id = AMP_ID_BREDR; in __a2mp_add_cl()
105 cl[0].type = AMP_TYPE_BREDR; in __a2mp_add_cl()
106 cl[0].status = AMP_STATUS_BLUETOOTH_ONLY; in __a2mp_add_cl()
110 cl[i].id = hdev->id; in __a2mp_add_cl()
111 cl[i].type = hdev->amp_type; in __a2mp_add_cl()
113 cl[i].status = hdev->amp_status; in __a2mp_add_cl()
115 cl[i].status = AMP_STATUS_POWERED_DOWN; in __a2mp_add_cl()
187 __a2mp_add_cl(mgr, rsp->cl); in a2mp_discover_req()
202 struct a2mp_cl *cl; in a2mp_discover_rsp() local
[all …]
Dhci_conn.c1422 struct hci_conn_list_req req, *cl; in hci_get_conn_list() local
1435 cl = kmalloc(size, GFP_KERNEL); in hci_get_conn_list()
1436 if (!cl) in hci_get_conn_list()
1441 kfree(cl); in hci_get_conn_list()
1445 ci = cl->conn_info; in hci_get_conn_list()
1460 cl->dev_id = hdev->id; in hci_get_conn_list()
1461 cl->conn_num = n; in hci_get_conn_list()
1466 err = copy_to_user(arg, cl, size); in hci_get_conn_list()
1467 kfree(cl); in hci_get_conn_list()
/net/netfilter/ipvs/
Dip_vs_wrr.c66 struct ip_vs_dest *cl; /* current dest or head */ member
122 mark->cl = list_entry(&svc->destinations, struct ip_vs_dest, n_list); in ip_vs_wrr_init_svc()
149 mark->cl = list_entry(&svc->destinations, struct ip_vs_dest, n_list); in ip_vs_wrr_dest_changed()
175 dest = mark->cl; in ip_vs_wrr_schedule()
223 mark->cl = dest; in ip_vs_wrr_schedule()
230 mark->cl = dest; in ip_vs_wrr_schedule()
236 mark->cl = dest; in ip_vs_wrr_schedule()
/net/openvswitch/
Dconntrack.c146 struct nf_conn_labels *cl = ct ? nf_ct_labels_find(ct) : NULL; in ovs_ct_get_labels() local
148 if (cl) in ovs_ct_get_labels()
149 memcpy(labels, cl->bits, OVS_CT_LABELS_LEN); in ovs_ct_get_labels()
332 struct nf_conn_labels *cl; in ovs_ct_get_conn_labels() local
334 cl = nf_ct_labels_find(ct); in ovs_ct_get_conn_labels()
335 if (!cl) { in ovs_ct_get_conn_labels()
337 cl = nf_ct_labels_find(ct); in ovs_ct_get_conn_labels()
340 return cl; in ovs_ct_get_conn_labels()
351 struct nf_conn_labels *cl, *master_cl; in ovs_ct_init_labels() local
360 cl = ovs_ct_get_conn_labels(ct); in ovs_ct_init_labels()
[all …]
/net/9p/
Dtrans_fd.c928 struct sockaddr_in cl; in p9_bind_privport() local
931 memset(&cl, 0, sizeof(cl)); in p9_bind_privport()
932 cl.sin_family = AF_INET; in p9_bind_privport()
933 cl.sin_addr.s_addr = INADDR_ANY; in p9_bind_privport()
935 cl.sin_port = htons((ushort)port); in p9_bind_privport()
936 err = kernel_bind(sock, (struct sockaddr *)&cl, sizeof(cl)); in p9_bind_privport()

12