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_htb.c220 struct htb_class *cl; in htb_classify() local
231 cl = htb_find(skb->priority, sch); in htb_classify()
232 if (cl) { in htb_classify()
233 if (cl->level == 0) in htb_classify()
234 return cl; in htb_classify()
236 tcf = rcu_dereference_bh(cl->filter_list); in htb_classify()
254 cl = (void *)res.class; in htb_classify()
255 if (!cl) { in htb_classify()
258 cl = htb_find(res.classid, sch); in htb_classify()
259 if (!cl) in htb_classify()
[all …]
Dsch_drr.c59 struct drr_class *cl = (struct drr_class *)*arg; in drr_change_class() local
84 if (cl != NULL) { in drr_change_class()
86 err = gen_replace_estimator(&cl->bstats, NULL, in drr_change_class()
87 &cl->rate_est, in drr_change_class()
98 cl->quantum = quantum; in drr_change_class()
104 cl = kzalloc(sizeof(struct drr_class), GFP_KERNEL); in drr_change_class()
105 if (cl == NULL) in drr_change_class()
108 gnet_stats_basic_sync_init(&cl->bstats); in drr_change_class()
109 cl->common.classid = classid; in drr_change_class()
110 cl->quantum = quantum; in drr_change_class()
[all …]
Dsch_qfq.c319 struct qfq_class *cl) in qfq_add_to_agg() argument
321 cl->agg = agg; in qfq_add_to_agg()
324 if (cl->qdisc->q.qlen > 0) { /* adding an active class */ in qfq_add_to_agg()
325 list_add_tail(&cl->alist, &agg->active); in qfq_add_to_agg()
327 cl && q->in_serv_agg != agg) /* agg was inactive */ in qfq_add_to_agg()
347 static void qfq_deactivate_class(struct qfq_sched *q, struct qfq_class *cl) in qfq_deactivate_class() argument
349 struct qfq_aggregate *agg = cl->agg; in qfq_deactivate_class()
352 list_del(&cl->alist); /* remove from RR queue of the aggregate */ in qfq_deactivate_class()
358 static void qfq_rm_from_agg(struct qfq_sched *q, struct qfq_class *cl) in qfq_rm_from_agg() argument
360 struct qfq_aggregate *agg = cl->agg; in qfq_rm_from_agg()
[all …]
Dsch_ets.c97 static u32 ets_class_id(struct Qdisc *sch, const struct ets_class *cl) in ets_class_id() argument
100 int band = cl - q->classes; in ets_class_id()
190 static bool ets_class_is_strict(struct ets_sched *q, const struct ets_class *cl) in ets_class_is_strict() argument
192 unsigned int band = cl - q->classes; in ets_class_is_strict()
201 struct ets_class *cl = ets_class_from_arg(sch, *arg); in ets_class_change() local
211 if (!cl) { in ets_class_change()
229 if (ets_class_is_strict(q, cl)) { in ets_class_change()
240 cl->quantum = quantum; in ets_class_change()
251 struct ets_class *cl = ets_class_from_arg(sch, arg); in ets_class_graft() local
255 ets_class_id(sch, cl), NULL); in ets_class_graft()
[all …]
Dsch_mq.c159 static struct netdev_queue *mq_queue_get(struct Qdisc *sch, unsigned long cl) in mq_queue_get() argument
162 unsigned long ntx = cl - 1; in mq_queue_get()
175 static int mq_graft(struct Qdisc *sch, unsigned long cl, struct Qdisc *new, in mq_graft() argument
178 struct netdev_queue *dev_queue = mq_queue_get(sch, cl); in mq_graft()
192 graft_offload.graft_params.queue = cl - 1; in mq_graft()
201 static struct Qdisc *mq_leaf(struct Qdisc *sch, unsigned long cl) in mq_leaf() argument
203 struct netdev_queue *dev_queue = mq_queue_get(sch, cl); in mq_leaf()
217 static int mq_dump_class(struct Qdisc *sch, unsigned long cl, in mq_dump_class() argument
220 struct netdev_queue *dev_queue = mq_queue_get(sch, cl); in mq_dump_class()
223 tcm->tcm_handle |= TC_H_MIN(cl); in mq_dump_class()
[all …]
Dsch_api.c338 unsigned long cl; in qdisc_leaf() local
343 cl = cops->find(p, classid); in qdisc_leaf()
345 if (cl == 0) in qdisc_leaf()
347 return cops->leaf(p, cl); in qdisc_leaf()
684 struct Qdisc_class_common *cl; in qdisc_class_hash_grow() local
704 hlist_for_each_entry_safe(cl, next, &ohash[i], hnode) { in qdisc_class_hash_grow()
705 h = qdisc_class_hash(cl->classid, nmask); in qdisc_class_hash_grow()
706 hlist_add_head(&cl->hnode, &nhash[h]); in qdisc_class_hash_grow()
739 struct Qdisc_class_common *cl) in qdisc_class_hash_insert() argument
743 INIT_HLIST_NODE(&cl->hnode); in qdisc_class_hash_insert()
[all …]
Dsch_mqprio.c352 unsigned long cl) in mqprio_queue_get() argument
355 unsigned long ntx = cl - 1; in mqprio_queue_get()
362 static int mqprio_graft(struct Qdisc *sch, unsigned long cl, struct Qdisc *new, in mqprio_graft() argument
366 struct netdev_queue *dev_queue = mqprio_queue_get(sch, cl); in mqprio_graft()
487 static struct Qdisc *mqprio_leaf(struct Qdisc *sch, unsigned long cl) in mqprio_leaf() argument
489 struct netdev_queue *dev_queue = mqprio_queue_get(sch, cl); in mqprio_leaf()
516 static int mqprio_dump_class(struct Qdisc *sch, unsigned long cl, in mqprio_dump_class() argument
519 if (cl < TC_H_MIN_PRIORITY) { in mqprio_dump_class()
520 struct netdev_queue *dev_queue = mqprio_queue_get(sch, cl); in mqprio_dump_class()
522 int tc = netdev_txq_to_tc(dev, cl - 1); in mqprio_dump_class()
[all …]
Dsch_multiq.c319 static void multiq_unbind(struct Qdisc *q, unsigned long cl) in multiq_unbind() argument
323 static int multiq_dump_class(struct Qdisc *sch, unsigned long cl, in multiq_dump_class() argument
328 tcm->tcm_handle |= TC_H_MIN(cl); in multiq_dump_class()
329 tcm->tcm_info = q->queues[cl - 1]->handle; in multiq_dump_class()
333 static int multiq_dump_class_stats(struct Qdisc *sch, unsigned long cl, in multiq_dump_class_stats() argument
339 cl_q = q->queues[cl - 1]; in multiq_dump_class_stats()
361 static struct tcf_block *multiq_tcf_block(struct Qdisc *sch, unsigned long cl, in multiq_tcf_block() argument
366 if (cl) in multiq_tcf_block()
Dsch_prio.c341 static void prio_unbind(struct Qdisc *q, unsigned long cl) in prio_unbind() argument
345 static int prio_dump_class(struct Qdisc *sch, unsigned long cl, struct sk_buff *skb, in prio_dump_class() argument
350 tcm->tcm_handle |= TC_H_MIN(cl); in prio_dump_class()
351 tcm->tcm_info = q->queues[cl-1]->handle; in prio_dump_class()
355 static int prio_dump_class_stats(struct Qdisc *sch, unsigned long cl, in prio_dump_class_stats() argument
361 cl_q = q->queues[cl - 1]; in prio_dump_class_stats()
384 static struct tcf_block *prio_tcf_block(struct Qdisc *sch, unsigned long cl, in prio_tcf_block() argument
389 if (cl) in prio_tcf_block()
Dsch_skbprio.c243 static int skbprio_dump_class(struct Qdisc *sch, unsigned long cl, in skbprio_dump_class() argument
246 tcm->tcm_handle |= TC_H_MIN(cl); in skbprio_dump_class()
250 static int skbprio_dump_class_stats(struct Qdisc *sch, unsigned long cl, in skbprio_dump_class_stats() argument
254 if (gnet_stats_copy_queue(d, NULL, &q->qstats[cl - 1], in skbprio_dump_class_stats()
255 q->qstats[cl - 1].qlen) < 0) in skbprio_dump_class_stats()
Dsch_ingress.c39 static void ingress_unbind_filter(struct Qdisc *sch, unsigned long cl) in ingress_unbind_filter() argument
47 static struct tcf_block *ingress_tcf_block(struct Qdisc *sch, unsigned long cl, in ingress_tcf_block() argument
178 static struct tcf_block *clsact_tcf_block(struct Qdisc *sch, unsigned long cl, in clsact_tcf_block() argument
183 switch (cl) { in clsact_tcf_block()
Dcls_api.c1119 static int __tcf_qdisc_cl_find(struct Qdisc *q, u32 parent, unsigned long *cl, in __tcf_qdisc_cl_find() argument
1129 *cl = cops->find(q, parent); in __tcf_qdisc_cl_find()
1130 if (*cl == 0) { in __tcf_qdisc_cl_find()
1140 unsigned long cl, int ifindex, in __tcf_block_find() argument
1155 block = cops->tcf_block(q, cl, extack); in __tcf_block_find()
1214 u32 *parent, unsigned long *cl, in tcf_block_find() argument
1227 err = __tcf_qdisc_cl_find(*q, *parent, cl, ifindex, extack); in tcf_block_find()
1231 block = __tcf_block_find(net, *q, *cl, ifindex, block_index, extack); in tcf_block_find()
1983 unsigned long cl; in tc_new_tfilter() local
2004 cl = 0; in tc_new_tfilter()
[all …]
Dsch_fq_codel.c608 static void fq_codel_unbind(struct Qdisc *q, unsigned long cl) in fq_codel_unbind() argument
612 static struct tcf_block *fq_codel_tcf_block(struct Qdisc *sch, unsigned long cl, in fq_codel_tcf_block() argument
617 if (cl) in fq_codel_tcf_block()
622 static int fq_codel_dump_class(struct Qdisc *sch, unsigned long cl, in fq_codel_dump_class() argument
625 tcm->tcm_handle |= TC_H_MIN(cl); in fq_codel_dump_class()
629 static int fq_codel_dump_class_stats(struct Qdisc *sch, unsigned long cl, in fq_codel_dump_class_stats() argument
633 u32 idx = cl - 1; in fq_codel_dump_class_stats()
Dsch_taprio.c1854 unsigned long cl) in taprio_queue_get() argument
1857 unsigned long ntx = cl - 1; in taprio_queue_get()
1865 static int taprio_graft(struct Qdisc *sch, unsigned long cl, in taprio_graft() argument
1871 struct netdev_queue *dev_queue = taprio_queue_get(sch, cl); in taprio_graft()
1882 *old = q->qdiscs[cl - 1]; in taprio_graft()
1883 q->qdiscs[cl - 1] = new; in taprio_graft()
2057 static struct Qdisc *taprio_leaf(struct Qdisc *sch, unsigned long cl) in taprio_leaf() argument
2059 struct netdev_queue *dev_queue = taprio_queue_get(sch, cl); in taprio_leaf()
2076 static int taprio_dump_class(struct Qdisc *sch, unsigned long cl, in taprio_dump_class() argument
2079 struct netdev_queue *dev_queue = taprio_queue_get(sch, cl); in taprio_dump_class()
[all …]
Dsch_sfq.c844 static void sfq_unbind(struct Qdisc *q, unsigned long cl) in sfq_unbind() argument
848 static struct tcf_block *sfq_tcf_block(struct Qdisc *sch, unsigned long cl, in sfq_tcf_block() argument
853 if (cl) in sfq_tcf_block()
858 static int sfq_dump_class(struct Qdisc *sch, unsigned long cl, in sfq_dump_class() argument
861 tcm->tcm_handle |= TC_H_MIN(cl); in sfq_dump_class()
865 static int sfq_dump_class_stats(struct Qdisc *sch, unsigned long cl, in sfq_dump_class_stats() argument
869 sfq_index idx = q->ht[cl - 1]; in sfq_dump_class_stats()
Dsch_sfb.c613 static int sfb_dump_class(struct Qdisc *sch, unsigned long cl, in sfb_dump_class() argument
654 static int sfb_delete(struct Qdisc *sch, unsigned long cl, in sfb_delete() argument
667 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/bnep/
Dsock.c55 struct bnep_connlist_req cl; in do_bnep_sock_ioctl() local
102 if (copy_from_user(&cl, argp, sizeof(cl))) in do_bnep_sock_ioctl()
105 if (cl.cnum <= 0) in do_bnep_sock_ioctl()
108 err = bnep_get_connlist(&cl); in do_bnep_sock_ioctl()
109 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in do_bnep_sock_ioctl()
147 struct bnep_connlist_req cl; in bnep_sock_compat_ioctl() local
152 if (get_user(cl.cnum, p) || get_user(uci, p + 1)) in bnep_sock_compat_ioctl()
155 cl.ci = compat_ptr(uci); in bnep_sock_compat_ioctl()
157 if (cl.cnum <= 0) in bnep_sock_compat_ioctl()
160 err = bnep_get_connlist(&cl); in bnep_sock_compat_ioctl()
[all …]
/net/bluetooth/cmtp/
Dsock.c70 struct cmtp_connlist_req cl; in do_cmtp_sock_ioctl() local
113 if (copy_from_user(&cl, argp, sizeof(cl))) in do_cmtp_sock_ioctl()
116 if (cl.cnum <= 0) in do_cmtp_sock_ioctl()
119 err = cmtp_get_connlist(&cl); in do_cmtp_sock_ioctl()
120 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in do_cmtp_sock_ioctl()
149 struct cmtp_connlist_req cl; in cmtp_sock_compat_ioctl() local
154 if (get_user(cl.cnum, p) || get_user(uci, p + 1)) in cmtp_sock_compat_ioctl()
157 cl.ci = compat_ptr(uci); in cmtp_sock_compat_ioctl()
159 if (cl.cnum <= 0) in cmtp_sock_compat_ioctl()
162 err = cmtp_get_connlist(&cl); in cmtp_sock_compat_ioctl()
[all …]
/net/bluetooth/hidp/
Dsock.c54 struct hidp_connlist_req cl; in do_hidp_sock_ioctl() local
100 if (copy_from_user(&cl, argp, sizeof(cl))) in do_hidp_sock_ioctl()
103 if (cl.cnum <= 0) in do_hidp_sock_ioctl()
106 err = hidp_get_connlist(&cl); in do_hidp_sock_ioctl()
107 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in do_hidp_sock_ioctl()
154 struct hidp_connlist_req cl; in hidp_sock_compat_ioctl() local
158 if (get_user(cl.cnum, p) || get_user(uci, p + 1)) in hidp_sock_compat_ioctl()
161 cl.ci = compat_ptr(uci); in hidp_sock_compat_ioctl()
163 if (cl.cnum <= 0) in hidp_sock_compat_ioctl()
166 err = hidp_get_connlist(&cl); in hidp_sock_compat_ioctl()
[all …]
/net/bluetooth/
Da2mp.c92 static void __a2mp_add_cl(struct amp_mgr *mgr, struct a2mp_cl *cl) in __a2mp_add_cl() argument
97 cl[0].id = AMP_ID_BREDR; in __a2mp_add_cl()
98 cl[0].type = AMP_TYPE_BREDR; in __a2mp_add_cl()
99 cl[0].status = AMP_STATUS_BLUETOOTH_ONLY; in __a2mp_add_cl()
103 cl[i].id = hdev->id; in __a2mp_add_cl()
104 cl[i].type = hdev->amp_type; in __a2mp_add_cl()
106 cl[i].status = hdev->amp_status; in __a2mp_add_cl()
108 cl[i].status = AMP_STATUS_POWERED_DOWN; in __a2mp_add_cl()
170 len = struct_size(rsp, cl, num_ctrl); in a2mp_discover_req()
180 __a2mp_add_cl(mgr, rsp->cl); in a2mp_discover_req()
[all …]
/net/netfilter/ipvs/
Dip_vs_wrr.c61 struct ip_vs_dest *cl; /* current dest or head */ member
117 mark->cl = list_entry(&svc->destinations, struct ip_vs_dest, n_list); in ip_vs_wrr_init_svc()
144 mark->cl = list_entry(&svc->destinations, struct ip_vs_dest, n_list); in ip_vs_wrr_dest_changed()
170 dest = mark->cl; in ip_vs_wrr_schedule()
218 mark->cl = dest; in ip_vs_wrr_schedule()
225 mark->cl = dest; in ip_vs_wrr_schedule()
231 mark->cl = dest; in ip_vs_wrr_schedule()
/net/openvswitch/
Dconntrack.c169 struct nf_conn_labels *cl = ct ? nf_ct_labels_find(ct) : NULL; in ovs_ct_get_labels() local
171 if (cl) in ovs_ct_get_labels()
172 memcpy(labels, cl->bits, OVS_CT_LABELS_LEN); in ovs_ct_get_labels()
359 struct nf_conn_labels *cl; in ovs_ct_get_conn_labels() local
361 cl = nf_ct_labels_find(ct); in ovs_ct_get_conn_labels()
362 if (!cl) { in ovs_ct_get_conn_labels()
364 cl = nf_ct_labels_find(ct); in ovs_ct_get_conn_labels()
367 return cl; in ovs_ct_get_conn_labels()
378 struct nf_conn_labels *cl, *master_cl; in ovs_ct_init_labels() local
387 cl = ovs_ct_get_conn_labels(ct); in ovs_ct_init_labels()
[all …]
/net/9p/
Dtrans_fd.c973 struct sockaddr_in cl; in p9_bind_privport() local
976 memset(&cl, 0, sizeof(cl)); in p9_bind_privport()
977 cl.sin_family = AF_INET; in p9_bind_privport()
978 cl.sin_addr.s_addr = htonl(INADDR_ANY); in p9_bind_privport()
980 cl.sin_port = htons((ushort)port); in p9_bind_privport()
981 err = kernel_bind(sock, (struct sockaddr *)&cl, sizeof(cl)); in p9_bind_privport()
Dtrans_rdma.c614 struct sockaddr_in cl = { in p9_rdma_bind_privport() local
621 cl.sin_port = htons((ushort)port); in p9_rdma_bind_privport()
622 err = rdma_bind_addr(rdma->cm_id, (struct sockaddr *)&cl); in p9_rdma_bind_privport()

12