Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 183) sorted by relevance

12345678

/net/sctp/
Dsm_statefuns.c74 void *arg,
81 void *arg,
88 void *arg,
103 void *arg,
113 void *arg,
121 void *arg, void *ext,
129 void *arg,
137 void *arg,
149 void *arg,
212 void *arg, struct sctp_cmd_seq *commands) in sctp_sf_do_4_C() argument
[all …]
/net/batman-adv/
Dlog.h79 #define _batadv_dbg(type, bat_priv, ratelimited, fmt, arg...) \ argument
84 batadv_debug_log(__batpriv, fmt, ## arg); \
103 #define batadv_dbg(type, bat_priv, arg...) \ argument
104 _batadv_dbg(type, bat_priv, 0, ## arg)
112 #define batadv_dbg_ratelimited(type, bat_priv, arg...) \ argument
113 _batadv_dbg(type, bat_priv, 1, ## arg)
121 #define batadv_info(net_dev, fmt, arg...) \ argument
125 batadv_dbg(BATADV_DBG_ALL, _batpriv, fmt, ## arg); \
126 pr_info("%s: " fmt, _netdev->name, ## arg); \
135 #define batadv_err(net_dev, fmt, arg...) \ argument
[all …]
/net/sched/
Dsch_drr.c55 struct nlattr **tca, unsigned long *arg, in drr_change_class() argument
59 struct drr_class *cl = (struct drr_class *)*arg; in drr_change_class()
138 *arg = (unsigned long)cl; in drr_change_class()
149 static int drr_delete_class(struct Qdisc *sch, unsigned long arg) in drr_delete_class() argument
152 struct drr_class *cl = (struct drr_class *)arg; in drr_delete_class()
197 static void drr_unbind_tcf(struct Qdisc *sch, unsigned long arg) in drr_unbind_tcf() argument
199 struct drr_class *cl = (struct drr_class *)arg; in drr_unbind_tcf()
204 static int drr_graft_class(struct Qdisc *sch, unsigned long arg, in drr_graft_class() argument
208 struct drr_class *cl = (struct drr_class *)arg; in drr_graft_class()
221 static struct Qdisc *drr_class_leaf(struct Qdisc *sch, unsigned long arg) in drr_class_leaf() argument
[all …]
Dcls_fw.c154 static int fw_delete(struct tcf_proto *tp, void *arg, bool *last, in fw_delete() argument
158 struct fw_filter *f = arg; in fw_delete()
239 u32 handle, struct nlattr **tca, void **arg, in fw_change() argument
244 struct fw_filter *f = *arg; in fw_change()
299 *arg = fnew; in fw_change()
336 *arg = f; in fw_change()
345 static void fw_walk(struct tcf_proto *tp, struct tcf_walker *arg, in fw_walk() argument
352 arg->stop = 1; in fw_walk()
354 if (arg->stop) in fw_walk()
362 if (arg->count < arg->skip) { in fw_walk()
[all …]
Dcls_cgroup.c79 void **arg, bool ovr, bool rtnl_held, in cls_cgroup_change() argument
146 static int cls_cgroup_delete(struct tcf_proto *tp, void *arg, bool *last, in cls_cgroup_delete() argument
152 static void cls_cgroup_walk(struct tcf_proto *tp, struct tcf_walker *arg, in cls_cgroup_walk() argument
157 if (arg->count < arg->skip) in cls_cgroup_walk()
162 if (arg->fn(tp, head, arg) < 0) { in cls_cgroup_walk()
163 arg->stop = 1; in cls_cgroup_walk()
167 arg->count++; in cls_cgroup_walk()
Dsch_prio.c288 static int prio_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, in prio_graft() argument
293 unsigned long band = arg - 1; in prio_graft()
297 TC_H_MAKE(sch->handle, arg), extack); in prio_graft()
319 prio_leaf(struct Qdisc *sch, unsigned long arg) in prio_leaf() argument
322 unsigned long band = arg - 1; in prio_leaf()
372 static void prio_walk(struct Qdisc *sch, struct qdisc_walker *arg) in prio_walk() argument
377 if (arg->stop) in prio_walk()
381 if (arg->count < arg->skip) { in prio_walk()
382 arg->count++; in prio_walk()
385 if (arg->fn(sch, prio + 1, arg) < 0) { in prio_walk()
[all …]
Dsch_multiq.c281 static int multiq_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, in multiq_graft() argument
285 unsigned long band = arg - 1; in multiq_graft()
295 multiq_leaf(struct Qdisc *sch, unsigned long arg) in multiq_leaf() argument
298 unsigned long band = arg - 1; in multiq_leaf()
349 static void multiq_walk(struct Qdisc *sch, struct qdisc_walker *arg) in multiq_walk() argument
354 if (arg->stop) in multiq_walk()
358 if (arg->count < arg->skip) { in multiq_walk()
359 arg->count++; in multiq_walk()
362 if (arg->fn(sch, band + 1, arg) < 0) { in multiq_walk()
363 arg->stop = 1; in multiq_walk()
[all …]
Dcls_basic.c125 static int basic_delete(struct tcf_proto *tp, void *arg, bool *last, in basic_delete() argument
129 struct basic_filter *f = arg; in basic_delete()
172 struct nlattr **tca, void **arg, bool ovr, in basic_change() argument
178 struct basic_filter *fold = (struct basic_filter *) *arg; in basic_change()
227 *arg = fnew; in basic_change()
247 static void basic_walk(struct tcf_proto *tp, struct tcf_walker *arg, in basic_walk() argument
254 if (arg->count < arg->skip) in basic_walk()
257 if (arg->fn(tp, f, arg) < 0) { in basic_walk()
258 arg->stop = 1; in basic_walk()
262 arg->count++; in basic_walk()
Dsch_skbprio.c233 static struct Qdisc *skbprio_leaf(struct Qdisc *sch, unsigned long arg) in skbprio_leaf() argument
260 static void skbprio_walk(struct Qdisc *sch, struct qdisc_walker *arg) in skbprio_walk() argument
264 if (arg->stop) in skbprio_walk()
268 if (arg->count < arg->skip) { in skbprio_walk()
269 arg->count++; in skbprio_walk()
272 if (arg->fn(sch, i + 1, arg) < 0) { in skbprio_walk()
273 arg->stop = 1; in skbprio_walk()
276 arg->count++; in skbprio_walk()
Dsch_mq.c256 static void mq_walk(struct Qdisc *sch, struct qdisc_walker *arg) in mq_walk() argument
261 if (arg->stop) in mq_walk()
264 arg->count = arg->skip; in mq_walk()
265 for (ntx = arg->skip; ntx < dev->num_tx_queues; ntx++) { in mq_walk()
266 if (arg->fn(sch, ntx + 1, arg) < 0) { in mq_walk()
267 arg->stop = 1; in mq_walk()
270 arg->count++; in mq_walk()
Dcls_route.c311 static int route4_delete(struct tcf_proto *tp, void *arg, bool *last, in route4_delete() argument
315 struct route4_filter *f = arg; in route4_delete()
467 struct nlattr **tca, void **arg, bool ovr, in route4_change() argument
488 fold = *arg; in route4_change()
546 *arg = f; in route4_change()
561 static void route4_walk(struct tcf_proto *tp, struct tcf_walker *arg, in route4_walk() argument
567 if (head == NULL || arg->stop) in route4_walk()
580 if (arg->count < arg->skip) { in route4_walk()
581 arg->count++; in route4_walk()
584 if (arg->fn(tp, f, arg) < 0) { in route4_walk()
[all …]
Dsch_qfq.c393 struct nlattr **tca, unsigned long *arg, in qfq_change_class() argument
397 struct qfq_class *cl = (struct qfq_class *)*arg; in qfq_change_class()
513 *arg = (unsigned long)cl; in qfq_change_class()
532 static int qfq_delete_class(struct Qdisc *sch, unsigned long arg) in qfq_delete_class() argument
535 struct qfq_class *cl = (struct qfq_class *)arg; in qfq_delete_class()
578 static void qfq_unbind_tcf(struct Qdisc *sch, unsigned long arg) in qfq_unbind_tcf() argument
580 struct qfq_class *cl = (struct qfq_class *)arg; in qfq_unbind_tcf()
585 static int qfq_graft_class(struct Qdisc *sch, unsigned long arg, in qfq_graft_class() argument
589 struct qfq_class *cl = (struct qfq_class *)arg; in qfq_graft_class()
602 static struct Qdisc *qfq_class_leaf(struct Qdisc *sch, unsigned long arg) in qfq_class_leaf() argument
[all …]
/net/atm/
Dioctl.c52 unsigned long arg, int compat) in do_vcc_ioctl() argument
58 void __user *argp = (void __user *)arg; in do_vcc_ioctl()
154 error = ic->ioctl(sock, cmd, arg); in do_vcc_ioctl()
171 int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in vcc_ioctl() argument
173 return do_vcc_ioctl(sock, cmd, arg, 0); in vcc_ioctl()
231 unsigned long arg) in do_atm_iobuf() argument
240 iobuf32 = compat_ptr(arg); in do_atm_iobuf()
262 unsigned long arg) in do_atmif_sioc() argument
271 sioc32 = compat_ptr(arg); in do_atmif_sioc()
274 get_user(data, &sioc32->arg)) in do_atmif_sioc()
[all …]
Dresources.c177 static int fetch_stats(struct atm_dev *dev, struct atm_dev_stats __user *arg, in fetch_stats() argument
186 if (arg) in fetch_stats()
187 error = copy_to_user(arg, &tmp, sizeof(tmp)); in fetch_stats()
196 int atm_dev_ioctl(unsigned int cmd, void __user *arg, int compat) in atm_dev_ioctl() argument
210 struct compat_atm_iobuf __user *ciobuf = arg; in atm_dev_ioctl()
218 struct atm_iobuf __user *iobuf = arg; in atm_dev_ioctl()
254 struct compat_atmif_sioc __user *csioc = arg; in atm_dev_ioctl()
258 if (get_user(carg, &csioc->arg)) in atm_dev_ioctl()
268 struct atmif_sioc __user *sioc = arg; in atm_dev_ioctl()
271 if (get_user(buf, &sioc->arg)) in atm_dev_ioctl()
Dpppoatm.c104 static void pppoatm_wakeup_sender(unsigned long arg) in pppoatm_wakeup_sender() argument
106 ppp_output_wakeup((struct ppp_channel *) arg); in pppoatm_wakeup_sender()
369 unsigned long arg) in pppoatm_devppp_ioctl() argument
373 return put_user(chan_to_pvcc(chan)->flags, (int __user *) arg) in pppoatm_devppp_ioctl()
376 return get_user(chan_to_pvcc(chan)->flags, (int __user *) arg) in pppoatm_devppp_ioctl()
387 static int pppoatm_assign_vcc(struct atm_vcc *atmvcc, void __user *arg) in pppoatm_assign_vcc() argument
397 if (copy_from_user(&be, arg, sizeof be)) in pppoatm_assign_vcc()
443 unsigned long arg) in pppoatm_ioctl() argument
446 void __user *argp = (void __user *)arg; in pppoatm_ioctl()
/net/sunrpc/auth_gss/
Dgss_rpc_upcall.c201 static void gssp_free_receive_pages(struct gssx_arg_accept_sec_context *arg) in gssp_free_receive_pages() argument
205 for (i = 0; i < arg->npages && arg->pages[i]; i++) in gssp_free_receive_pages()
206 __free_page(arg->pages[i]); in gssp_free_receive_pages()
208 kfree(arg->pages); in gssp_free_receive_pages()
211 static int gssp_alloc_receive_pages(struct gssx_arg_accept_sec_context *arg) in gssp_alloc_receive_pages() argument
213 arg->npages = DIV_ROUND_UP(NGROUPS_MAX * 4, PAGE_SIZE); in gssp_alloc_receive_pages()
214 arg->pages = kcalloc(arg->npages, sizeof(struct page *), GFP_KERNEL); in gssp_alloc_receive_pages()
219 if (!arg->pages) in gssp_alloc_receive_pages()
271 struct gssx_arg_accept_sec_context arg = { in gssp_accept_sec_context_upcall() local
290 .rpc_argp = &arg, in gssp_accept_sec_context_upcall()
[all …]
/net/ipv6/
Dfib6_rules.c67 struct fib_lookup_arg arg = { in fib6_lookup() local
77 flowi6_to_flowi(fl6), flags, &arg); in fib6_lookup()
95 struct fib_lookup_arg arg = { in fib6_rule_lookup() local
106 flowi6_to_flowi(fl6), flags, &arg); in fib6_rule_lookup()
154 int flags, struct fib_lookup_arg *arg) in fib6_rule_action_alt() argument
156 struct fib6_result *res = arg->result; in fib6_rule_action_alt()
175 tb_id = fib_rule_get_table(rule, arg); in fib6_rule_action_alt()
180 oif = (int *)arg->lookup_data; in fib6_rule_action_alt()
192 int flags, struct fib_lookup_arg *arg) in __fib6_rule_action() argument
194 struct fib6_result *res = arg->result; in __fib6_rule_action()
[all …]
Droute.c506 struct fib6_nh_dm_arg *arg = _arg; in __rt6_nh_dev_match() local
508 arg->nh = nh; in __rt6_nh_dev_match()
509 return __rt6_device_match(arg->net, nh, arg->saddr, arg->oif, in __rt6_nh_dev_match()
510 arg->flags); in __rt6_nh_dev_match()
519 struct fib6_nh_dm_arg arg = { in rt6_nh_dev_match() local
529 if (nexthop_for_each_fib6_nh(nh, __rt6_nh_dev_match, &arg)) in rt6_nh_dev_match()
530 return arg.nh; in rt6_nh_dev_match()
786 struct fib6_nh_frl_arg *arg = _arg; in rt6_nh_find_match() local
788 arg->nh = nh; in rt6_nh_find_match()
789 return find_match(nh, arg->flags, arg->oif, arg->strict, in rt6_nh_find_match()
[all …]
Dip6_fib.c43 int (*func)(struct fib6_info *, void *arg);
45 void *arg; member
406 static void fib6_rt_dump(struct fib6_info *rt, struct fib6_dump_arg *arg) in fib6_rt_dump() argument
408 if (rt == arg->net->ipv6.fib6_null_entry) in fib6_rt_dump()
410 call_fib6_entry_notifier(arg->nb, arg->net, FIB_EVENT_ENTRY_ADD, rt); in fib6_rt_dump()
435 struct fib6_dump_arg arg; in fib6_tables_dump() local
444 arg.net = net; in fib6_tables_dump()
445 arg.nb = nb; in fib6_tables_dump()
446 w->args = &arg; in fib6_tables_dump()
565 struct rt6_rtnl_dump_arg arg = { .filter.dump_exceptions = true, in inet6_dump_fib() local
[all …]
/net/rds/
Dtcp_recv.c157 struct rds_tcp_desc_arg *arg = desc->arg.data; in rds_tcp_data_recv() local
158 struct rds_conn_path *cp = arg->conn_path; in rds_tcp_data_recv()
174 arg->gfp); in rds_tcp_data_recv()
218 clone = pskb_extract(skb, offset, to_copy, arg->gfp); in rds_tcp_data_recv()
245 arg->gfp); in rds_tcp_data_recv()
267 struct rds_tcp_desc_arg arg; in rds_tcp_read_sock() local
270 arg.conn_path = cp; in rds_tcp_read_sock()
271 arg.gfp = gfp; in rds_tcp_read_sock()
272 desc.arg.data = &arg; in rds_tcp_read_sock()
/net/ipv4/
Dfib_rules.c81 struct fib_lookup_arg arg = { in __fib_lookup() local
90 err = fib_rules_lookup(net->ipv4.rules_ops, flowi4_to_flowi(flp), 0, &arg); in __fib_lookup()
92 if (arg.rule) in __fib_lookup()
93 res->tclassid = ((struct fib4_rule *)arg.rule)->tclassid; in __fib_lookup()
106 int flags, struct fib_lookup_arg *arg) in fib4_rule_action() argument
129 tb_id = fib_rule_get_table(rule, arg); in fib4_rule_action()
133 (struct fib_result *)arg->result, in fib4_rule_action()
134 arg->flags); in fib4_rule_action()
140 static bool fib4_rule_suppress(struct fib_rule *rule, struct fib_lookup_arg *arg) in fib4_rule_suppress() argument
142 struct fib_result *result = (struct fib_result *) arg->result; in fib4_rule_suppress()
[all …]
/net/netfilter/
Dnft_set_hash.c42 const struct nft_rhash_cmp_arg *arg = data; in nft_rhash_key() local
44 return jhash(arg->key, len, seed); in nft_rhash_key()
54 static inline int nft_rhash_cmp(struct rhashtable_compare_arg *arg, in nft_rhash_cmp() argument
57 const struct nft_rhash_cmp_arg *x = arg->key; in nft_rhash_cmp()
82 struct nft_rhash_cmp_arg arg = { in nft_rhash_lookup() local
88 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_lookup()
100 struct nft_rhash_cmp_arg arg = { in nft_rhash_get() local
106 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_get()
123 struct nft_rhash_cmp_arg arg = { in nft_rhash_update() local
129 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_update()
[all …]
/net/nfc/
Ddigital_technology.c215 static void digital_in_recv_ats(struct nfc_digital_dev *ddev, void *arg, in digital_in_recv_ats() argument
218 struct nfc_target *target = arg; in digital_in_recv_ats()
272 static void digital_in_recv_sel_res(struct nfc_digital_dev *ddev, void *arg, in digital_in_recv_sel_res() argument
275 struct nfc_target *target = arg; in digital_in_recv_sel_res()
387 static void digital_in_recv_sdd_res(struct nfc_digital_dev *ddev, void *arg, in digital_in_recv_sdd_res() argument
390 struct nfc_target *target = arg; in digital_in_recv_sdd_res()
472 static void digital_in_recv_sens_res(struct nfc_digital_dev *ddev, void *arg, in digital_in_recv_sens_res() argument
571 static void digital_in_recv_attrib_res(struct nfc_digital_dev *ddev, void *arg, in digital_in_recv_attrib_res() argument
574 struct nfc_target *target = arg; in digital_in_recv_attrib_res()
641 static void digital_in_recv_sensb_res(struct nfc_digital_dev *ddev, void *arg, in digital_in_recv_sensb_res() argument
[all …]
Ddigital.h96 void digital_tg_recv_sens_req(struct nfc_digital_dev *ddev, void *arg,
99 void digital_tg_recv_sensf_req(struct nfc_digital_dev *ddev, void *arg,
103 nfc_digital_cmd_complete_t cb, void *arg) in digital_tg_listen() argument
106 timeout, cb, arg); in digital_tg_listen()
109 void digital_tg_recv_atr_req(struct nfc_digital_dev *ddev, void *arg,
116 void digital_tg_recv_md_req(struct nfc_digital_dev *ddev, void *arg,
/net/bluetooth/rfcomm/
Dtty.c390 static int __rfcomm_create_dev(struct sock *sk, void __user *arg) in __rfcomm_create_dev() argument
396 if (copy_from_user(&req, arg, sizeof(req))) in __rfcomm_create_dev()
438 static int __rfcomm_release_dev(void __user *arg) in __rfcomm_release_dev() argument
444 if (copy_from_user(&req, arg, sizeof(req))) in __rfcomm_release_dev()
481 static int rfcomm_create_dev(struct sock *sk, void __user *arg) in rfcomm_create_dev() argument
486 ret = __rfcomm_create_dev(sk, arg); in rfcomm_create_dev()
492 static int rfcomm_release_dev(void __user *arg) in rfcomm_release_dev() argument
497 ret = __rfcomm_release_dev(arg); in rfcomm_release_dev()
503 static int rfcomm_get_dev_list(void __user *arg) in rfcomm_get_dev_list() argument
513 if (get_user(dev_num, (u16 __user *) arg)) in rfcomm_get_dev_list()
[all …]

12345678