/net/sched/ |
D | sch_cbq.c | 98 void (*overlimit)(struct cbq_class *cl); 176 #define L2T(cl, len) qdisc_l2t((cl)->R_tab, len) argument 194 struct cbq_class *cl; in cbq_reclassify() local 196 for (cl = this->tparent; cl; cl = cl->tparent) { in cbq_reclassify() 197 struct cbq_class *new = cl->defaults[TC_PRIO_BESTEFFORT]; in cbq_reclassify() 223 struct cbq_class *cl = NULL; in cbq_classify() local 231 (cl = cbq_class_lookup(q, prio)) != NULL) in cbq_classify() 232 return cl; in cbq_classify() 246 cl = (void *)res.class; in cbq_classify() 247 if (!cl) { in cbq_classify() [all …]
|
D | sch_hfsc.c | 194 eltree_insert(struct hfsc_class *cl) in eltree_insert() argument 196 struct rb_node **p = &cl->sched->eligible.rb_node; in eltree_insert() 203 if (cl->cl_e >= cl1->cl_e) in eltree_insert() 208 rb_link_node(&cl->el_node, parent, p); in eltree_insert() 209 rb_insert_color(&cl->el_node, &cl->sched->eligible); in eltree_insert() 213 eltree_remove(struct hfsc_class *cl) in eltree_remove() argument 215 rb_erase(&cl->el_node, &cl->sched->eligible); in eltree_remove() 219 eltree_update(struct hfsc_class *cl) in eltree_update() argument 221 eltree_remove(cl); in eltree_update() 222 eltree_insert(cl); in eltree_update() [all …]
|
D | sch_htb.c | 196 struct htb_class *cl; in htb_classify() local 207 cl = htb_find(skb->priority, sch); in htb_classify() 208 if (cl && cl->level == 0) in htb_classify() 209 return cl; in htb_classify() 223 cl = (void *)res.class; in htb_classify() 224 if (!cl) { in htb_classify() 227 cl = htb_find(res.classid, sch); in htb_classify() 228 if (!cl) in htb_classify() 231 if (!cl->level) in htb_classify() 232 return cl; /* we hit leaf; return it */ in htb_classify() [all …]
|
D | sch_drr.c | 53 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() 57 qdisc_reset(cl->qdisc); in drr_purge_queue() 58 qdisc_tree_decrease_qlen(cl->qdisc, len); in drr_purge_queue() 69 struct drr_class *cl = (struct drr_class *)*arg; in drr_change_class() local 89 if (cl != NULL) { in drr_change_class() 91 err = gen_replace_estimator(&cl->bstats, &cl->rate_est, in drr_change_class() 100 cl->quantum = quantum; in drr_change_class() 106 cl = kzalloc(sizeof(struct drr_class), GFP_KERNEL); in drr_change_class() 107 if (cl == NULL) in drr_change_class() [all …]
|
D | sch_qfq.c | 221 static void qfq_purge_queue(struct qfq_class *cl) in qfq_purge_queue() argument 223 unsigned int len = cl->qdisc->q.qlen; in qfq_purge_queue() 225 qdisc_reset(cl->qdisc); in qfq_purge_queue() 226 qdisc_tree_decrease_qlen(cl->qdisc, len); in qfq_purge_queue() 324 struct qfq_class *cl) in qfq_add_to_agg() argument 326 cl->agg = agg; in qfq_add_to_agg() 329 if (cl->qdisc->q.qlen > 0) { /* adding an active class */ in qfq_add_to_agg() 330 list_add_tail(&cl->alist, &agg->active); in qfq_add_to_agg() 332 cl && q->in_serv_agg != agg) /* agg was inactive */ in qfq_add_to_agg() 349 static void qfq_deactivate_class(struct qfq_sched *q, struct qfq_class *cl) in qfq_deactivate_class() argument [all …]
|
D | sch_mq.c | 120 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 void mq_put(struct Qdisc *sch, unsigned long cl) in mq_put() argument 181 static int mq_dump_class(struct Qdisc *sch, unsigned long cl, in mq_dump_class() argument 184 struct netdev_queue *dev_queue = mq_queue_get(sch, cl); in mq_dump_class() 187 tcm->tcm_handle |= TC_H_MIN(cl); in mq_dump_class() [all …]
|
D | sch_mqprio.c | 185 unsigned long cl) in mqprio_queue_get() argument 188 unsigned long ntx = cl - 1 - netdev_get_num_tc(dev); in mqprio_queue_get() 195 static int mqprio_graft(struct Qdisc *sch, unsigned long cl, struct Qdisc *new, in mqprio_graft() argument 199 struct netdev_queue *dev_queue = mqprio_queue_get(sch, cl); in mqprio_graft() 263 static struct Qdisc *mqprio_leaf(struct Qdisc *sch, unsigned long cl) in mqprio_leaf() argument 265 struct netdev_queue *dev_queue = mqprio_queue_get(sch, cl); in mqprio_leaf() 283 static void mqprio_put(struct Qdisc *sch, unsigned long cl) in mqprio_put() argument 287 static int mqprio_dump_class(struct Qdisc *sch, unsigned long cl, in mqprio_dump_class() argument 292 if (cl <= netdev_get_num_tc(dev)) { in mqprio_dump_class() 299 dev_queue = mqprio_queue_get(sch, cl); in mqprio_dump_class() [all …]
|
D | sch_api.c | 43 unsigned long cl, int event); 253 unsigned long cl; in qdisc_leaf() local 259 cl = cops->get(p, classid); in qdisc_leaf() 261 if (cl == 0) in qdisc_leaf() 263 leaf = cops->leaf(p, cl); in qdisc_leaf() 264 cops->put(p, cl); in qdisc_leaf() 548 struct Qdisc_class_common *cl; in qdisc_class_hash_grow() local 568 hlist_for_each_entry_safe(cl, next, &ohash[i], hnode) { in qdisc_class_hash_grow() 569 h = qdisc_class_hash(cl->classid, nmask); in qdisc_class_hash_grow() 570 hlist_add_head(&cl->hnode, &nhash[h]); in qdisc_class_hash_grow() [all …]
|
D | cls_api.c | 136 unsigned long cl; in tc_ctl_tfilter() local 154 cl = 0; in tc_ctl_tfilter() 191 cl = cops->get(q, parent); in tc_ctl_tfilter() 192 if (cl == 0) in tc_ctl_tfilter() 197 chain = cops->tcf_chain(q, cl); in tc_ctl_tfilter() 324 err = tp->ops->change(net, skb, tp, cl, t->tcm_handle, tca, &fh); in tc_ctl_tfilter() 339 if (cl) in tc_ctl_tfilter() 340 cops->put(q, cl); in tc_ctl_tfilter() 426 unsigned long cl = 0; in tc_dump_tfilter() local 448 cl = cops->get(q, tcm->tcm_parent); in tc_dump_tfilter() [all …]
|
D | sch_multiq.c | 342 static void multiq_put(struct Qdisc *q, unsigned long cl) in multiq_put() argument 346 static int multiq_dump_class(struct Qdisc *sch, unsigned long cl, in multiq_dump_class() argument 351 tcm->tcm_handle |= TC_H_MIN(cl); in multiq_dump_class() 352 tcm->tcm_info = q->queues[cl - 1]->handle; in multiq_dump_class() 356 static int multiq_dump_class_stats(struct Qdisc *sch, unsigned long cl, in multiq_dump_class_stats() argument 362 cl_q = q->queues[cl - 1]; in multiq_dump_class_stats() 392 static struct tcf_proto **multiq_find_tcf(struct Qdisc *sch, unsigned long cl) in multiq_find_tcf() argument 396 if (cl) in multiq_find_tcf()
|
D | sch_prio.c | 304 static void prio_put(struct Qdisc *q, unsigned long cl) in prio_put() argument 308 static int prio_dump_class(struct Qdisc *sch, unsigned long cl, struct sk_buff *skb, in prio_dump_class() argument 313 tcm->tcm_handle |= TC_H_MIN(cl); in prio_dump_class() 314 tcm->tcm_info = q->queues[cl-1]->handle; in prio_dump_class() 318 static int prio_dump_class_stats(struct Qdisc *sch, unsigned long cl, in prio_dump_class_stats() argument 324 cl_q = q->queues[cl - 1]; in prio_dump_class_stats() 354 static struct tcf_proto **prio_find_tcf(struct Qdisc *sch, unsigned long cl) in prio_find_tcf() argument 358 if (cl) in prio_find_tcf()
|
D | sch_atm.c | 101 static struct Qdisc *atm_tc_leaf(struct Qdisc *sch, unsigned long cl) in atm_tc_leaf() argument 103 struct atm_flow_data *flow = (struct atm_flow_data *)cl; in atm_tc_leaf() 133 static void atm_tc_put(struct Qdisc *sch, unsigned long cl) in atm_tc_put() argument 136 struct atm_flow_data *flow = (struct atm_flow_data *)cl; in atm_tc_put() 259 unsigned long cl; in atm_tc_change() local 263 cl = atm_tc_get(sch, classid); in atm_tc_change() 264 if (!cl) in atm_tc_change() 266 atm_tc_put(sch, cl); in atm_tc_change() 348 static struct tcf_proto **atm_tc_find_tcf(struct Qdisc *sch, unsigned long cl) in atm_tc_find_tcf() argument 351 struct atm_flow_data *flow = (struct atm_flow_data *)cl; in atm_tc_find_tcf() [all …]
|
D | sch_dsmark.c | 100 static void dsmark_put(struct Qdisc *sch, unsigned long cl) in dsmark_put() argument 189 unsigned long cl) in dsmark_find_tcf() argument 414 static int dsmark_dump_class(struct Qdisc *sch, unsigned long cl, in dsmark_dump_class() argument 420 pr_debug("dsmark_dump_class(sch %p,[qdisc %p],class %ld\n", sch, p, cl); in dsmark_dump_class() 422 if (!dsmark_valid_index(p, cl)) in dsmark_dump_class() 425 tcm->tcm_handle = TC_H_MAKE(TC_H_MAJ(sch->handle), cl - 1); in dsmark_dump_class() 431 if (nla_put_u8(skb, TCA_DSMARK_MASK, p->mask[cl - 1]) || in dsmark_dump_class() 432 nla_put_u8(skb, TCA_DSMARK_VALUE, p->value[cl - 1])) in dsmark_dump_class()
|
D | sch_fq_codel.c | 500 static void fq_codel_put(struct Qdisc *q, unsigned long cl) in fq_codel_put() argument 504 static struct tcf_proto **fq_codel_find_tcf(struct Qdisc *sch, unsigned long cl) in fq_codel_find_tcf() argument 508 if (cl) in fq_codel_find_tcf() 513 static int fq_codel_dump_class(struct Qdisc *sch, unsigned long cl, in fq_codel_dump_class() argument 516 tcm->tcm_handle |= TC_H_MIN(cl); in fq_codel_dump_class() 520 static int fq_codel_dump_class_stats(struct Qdisc *sch, unsigned long cl, in fq_codel_dump_class_stats() argument 524 u32 idx = cl - 1; in fq_codel_dump_class_stats()
|
D | sch_ingress.c | 41 static void ingress_put(struct Qdisc *sch, unsigned long cl) in ingress_put() argument 49 static struct tcf_proto **ingress_find_tcf(struct Qdisc *sch, unsigned long cl) in ingress_find_tcf() argument
|
D | sch_choke.c | 558 static void choke_put(struct Qdisc *q, unsigned long cl) in choke_put() argument 568 static struct tcf_proto **choke_find_tcf(struct Qdisc *sch, unsigned long cl) in choke_find_tcf() argument 572 if (cl) in choke_find_tcf() 577 static int choke_dump_class(struct Qdisc *sch, unsigned long cl, in choke_dump_class() argument 580 tcm->tcm_handle |= TC_H_MIN(cl); in choke_dump_class()
|
D | sch_sfq.c | 843 static void sfq_put(struct Qdisc *q, unsigned long cl) in sfq_put() argument 847 static struct tcf_proto **sfq_find_tcf(struct Qdisc *sch, unsigned long cl) in sfq_find_tcf() argument 851 if (cl) in sfq_find_tcf() 856 static int sfq_dump_class(struct Qdisc *sch, unsigned long cl, in sfq_dump_class() argument 859 tcm->tcm_handle |= TC_H_MIN(cl); in sfq_dump_class() 863 static int sfq_dump_class_stats(struct Qdisc *sch, unsigned long cl, in sfq_dump_class_stats() argument 867 sfq_index idx = q->ht[cl - 1]; in sfq_dump_class_stats()
|
D | sch_sfb.c | 601 static int sfb_dump_class(struct Qdisc *sch, unsigned long cl, in sfb_dump_class() argument 646 static int sfb_delete(struct Qdisc *sch, unsigned long cl) in sfb_delete() argument 663 static struct tcf_proto **sfb_find_tcf(struct Qdisc *sch, unsigned long cl) in sfb_find_tcf() argument 667 if (cl) in sfb_find_tcf()
|
/net/bluetooth/bnep/ |
D | sock.c | 54 struct bnep_connlist_req cl; in bnep_sock_ioctl() local 101 if (copy_from_user(&cl, argp, sizeof(cl))) in bnep_sock_ioctl() 104 if (cl.cnum <= 0) in bnep_sock_ioctl() 107 err = bnep_get_connlist(&cl); in bnep_sock_ioctl() 108 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in bnep_sock_ioctl() 134 struct bnep_connlist_req cl; in bnep_sock_compat_ioctl() local 138 if (get_user(cl.cnum, (u32 __user *) arg) || in bnep_sock_compat_ioctl() 142 cl.ci = compat_ptr(uci); in bnep_sock_compat_ioctl() 144 if (cl.cnum <= 0) in bnep_sock_compat_ioctl() 147 err = bnep_get_connlist(&cl); in bnep_sock_compat_ioctl() [all …]
|
/net/bluetooth/cmtp/ |
D | sock.c | 70 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/hidp/ |
D | sock.c | 54 struct hidp_connlist_req cl; in hidp_sock_ioctl() local 99 if (copy_from_user(&cl, argp, sizeof(cl))) in hidp_sock_ioctl() 102 if (cl.cnum <= 0) in hidp_sock_ioctl() 105 err = hidp_get_connlist(&cl); in hidp_sock_ioctl() 106 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in hidp_sock_ioctl() 145 struct hidp_connlist_req cl; in hidp_sock_compat_ioctl() local 149 if (get_user(cl.cnum, (u32 __user *) arg) || in hidp_sock_compat_ioctl() 153 cl.ci = compat_ptr(uci); in hidp_sock_compat_ioctl() 155 if (cl.cnum <= 0) in hidp_sock_compat_ioctl() 158 err = hidp_get_connlist(&cl); in hidp_sock_compat_ioctl() [all …]
|
/net/bluetooth/ |
D | a2mp.c | 78 static inline void __a2mp_cl_bredr(struct a2mp_cl *cl) in __a2mp_cl_bredr() argument 80 cl->id = 0; in __a2mp_cl_bredr() 81 cl->type = 0; in __a2mp_cl_bredr() 82 cl->status = 1; in __a2mp_cl_bredr() 86 static void __a2mp_add_cl(struct amp_mgr *mgr, struct a2mp_cl *cl, u8 num_ctrl) in __a2mp_add_cl() argument 91 __a2mp_cl_bredr(cl); in __a2mp_add_cl() 102 cl[i].id = hdev->id; in __a2mp_add_cl() 103 cl[i].type = hdev->amp_type; in __a2mp_add_cl() 104 cl[i].status = hdev->amp_status; in __a2mp_add_cl() 166 __a2mp_add_cl(mgr, rsp->cl, num_ctrl); in a2mp_discover_req() [all …]
|
D | hci_conn.c | 861 struct hci_conn_list_req req, *cl; in hci_get_conn_list() local 874 cl = kmalloc(size, GFP_KERNEL); in hci_get_conn_list() 875 if (!cl) in hci_get_conn_list() 880 kfree(cl); in hci_get_conn_list() 884 ci = cl->conn_info; in hci_get_conn_list() 908 cl->dev_id = hdev->id; in hci_get_conn_list() 909 cl->conn_num = n; in hci_get_conn_list() 914 err = copy_to_user(arg, cl, size); in hci_get_conn_list() 915 kfree(cl); in hci_get_conn_list()
|
/net/netfilter/ipvs/ |
D | ip_vs_wrr.c | 66 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() 174 dest = mark->cl; in ip_vs_wrr_schedule() 222 mark->cl = dest; in ip_vs_wrr_schedule() 229 mark->cl = dest; in ip_vs_wrr_schedule() 235 mark->cl = dest; in ip_vs_wrr_schedule()
|
/net/ipv4/netfilter/ |
D | ipt_ULOG.c | 356 const struct compat_ipt_ulog_info *cl = src; in ulog_tg_compat_from_user() local 358 .nl_group = cl->nl_group, in ulog_tg_compat_from_user() 359 .copy_range = cl->copy_range, in ulog_tg_compat_from_user() 360 .qthreshold = cl->qthreshold, in ulog_tg_compat_from_user() 363 memcpy(l.prefix, cl->prefix, sizeof(l.prefix)); in ulog_tg_compat_from_user() 370 struct compat_ipt_ulog_info cl = { in ulog_tg_compat_to_user() local 376 memcpy(cl.prefix, l->prefix, sizeof(cl.prefix)); in ulog_tg_compat_to_user() 377 return copy_to_user(dst, &cl, sizeof(cl)) ? -EFAULT : 0; in ulog_tg_compat_to_user()
|