/net/sctp/ |
D | sm_statefuns.c | 74 void *arg, 81 void *arg, 88 void *arg, 95 void *arg, 110 void *arg, 120 void *arg, 128 void *arg, void *ext, 136 void *arg, 144 void *arg, 156 void *arg, [all …]
|
/net/batman-adv/ |
D | log.h | 79 #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/sunrpc/auth_gss/ |
D | gss_rpc_upcall.c | 202 static void gssp_free_receive_pages(struct gssx_arg_accept_sec_context *arg) in gssp_free_receive_pages() argument 206 for (i = 0; i < arg->npages && arg->pages[i]; i++) in gssp_free_receive_pages() 207 __free_page(arg->pages[i]); in gssp_free_receive_pages() 209 kfree(arg->pages); in gssp_free_receive_pages() 212 static int gssp_alloc_receive_pages(struct gssx_arg_accept_sec_context *arg) in gssp_alloc_receive_pages() argument 216 arg->npages = DIV_ROUND_UP(NGROUPS_MAX * 4, PAGE_SIZE); in gssp_alloc_receive_pages() 217 arg->pages = kcalloc(arg->npages, sizeof(struct page *), GFP_KERNEL); in gssp_alloc_receive_pages() 218 if (!arg->pages) in gssp_alloc_receive_pages() 220 for (i = 0; i < arg->npages; i++) { in gssp_alloc_receive_pages() 221 arg->pages[i] = alloc_page(GFP_KERNEL); in gssp_alloc_receive_pages() [all …]
|
D | gss_rpc_xdr.c | 737 const struct gssx_arg_accept_sec_context *arg = data; in gssx_enc_accept_sec_context() local 740 err = gssx_enc_call_ctx(xdr, &arg->call_ctx); in gssx_enc_accept_sec_context() 745 if (arg->context_handle) in gssx_enc_accept_sec_context() 746 err = gssx_enc_ctx(xdr, arg->context_handle); in gssx_enc_accept_sec_context() 753 if (arg->cred_handle) in gssx_enc_accept_sec_context() 754 err = gssx_enc_cred(xdr, arg->cred_handle); in gssx_enc_accept_sec_context() 761 err = gssx_enc_in_token(xdr, &arg->input_token); in gssx_enc_accept_sec_context() 766 if (arg->input_cb) in gssx_enc_accept_sec_context() 767 err = gssx_enc_cb(xdr, arg->input_cb); in gssx_enc_accept_sec_context() 773 err = gssx_enc_bool(xdr, arg->ret_deleg_cred); in gssx_enc_accept_sec_context() [all …]
|
/net/atm/ |
D | ioctl.c | 52 unsigned long arg, int compat) in do_vcc_ioctl() argument 58 void __user *argp = (void __user *)arg; in do_vcc_ioctl() 159 error = ic->ioctl(sock, cmd, arg); in do_vcc_ioctl() 196 if (get_user(carg, &csioc->arg)) in do_vcc_ioctl() 206 if (get_user(buf, &sioc->arg)) in do_vcc_ioctl() 218 int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in vcc_ioctl() argument 220 return do_vcc_ioctl(sock, cmd, arg, 0); in vcc_ioctl() 278 unsigned long arg) in do_atm_iobuf() argument 280 struct compat_atm_iobuf __user *iobuf32 = compat_ptr(arg); in do_atm_iobuf() 290 unsigned long arg) in do_atmif_sioc() argument [all …]
|
/net/sched/ |
D | sch_drr.c | 54 struct nlattr **tca, unsigned long *arg, in drr_change_class() argument 58 struct drr_class *cl = (struct drr_class *)*arg; in drr_change_class() 135 *arg = (unsigned long)cl; in drr_change_class() 146 static int drr_delete_class(struct Qdisc *sch, unsigned long arg, in drr_delete_class() argument 150 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 …]
|
D | cls_cgroup.c | 81 void **arg, u32 flags, in cls_cgroup_change() argument 148 static int cls_cgroup_delete(struct tcf_proto *tp, void *arg, bool *last, in cls_cgroup_delete() argument 154 static void cls_cgroup_walk(struct tcf_proto *tp, struct tcf_walker *arg, in cls_cgroup_walk() argument 159 if (arg->count < arg->skip) in cls_cgroup_walk() 164 if (arg->fn(tp, head, arg) < 0) { in cls_cgroup_walk() 165 arg->stop = 1; in cls_cgroup_walk() 169 arg->count++; in cls_cgroup_walk()
|
D | sch_ets.c | 90 ets_class_from_arg(struct Qdisc *sch, unsigned long arg) in ets_class_from_arg() argument 94 return &q->classes[arg - 1]; in ets_class_from_arg() 161 struct Qdisc *old, unsigned long arg, in ets_offload_graft() argument 170 qopt.graft_params.band = arg - 1; in ets_offload_graft() 198 struct nlattr **tca, unsigned long *arg, in ets_class_change() argument 201 struct ets_class *cl = ets_class_from_arg(sch, *arg); in ets_class_change() 247 static int ets_class_graft(struct Qdisc *sch, unsigned long arg, in ets_class_graft() argument 251 struct ets_class *cl = ets_class_from_arg(sch, arg); in ets_class_graft() 263 ets_offload_graft(sch, new, *old, arg, extack); in ets_class_graft() 267 static struct Qdisc *ets_class_leaf(struct Qdisc *sch, unsigned long arg) in ets_class_leaf() argument [all …]
|
D | cls_matchall.c | 165 void **arg, u32 flags, in mall_change() argument 231 *arg = head; in mall_change() 247 static int mall_delete(struct tcf_proto *tp, void *arg, bool *last, in mall_delete() argument 257 static void mall_walk(struct tcf_proto *tp, struct tcf_walker *arg, in mall_walk() argument 262 if (arg->count < arg->skip) in mall_walk() 267 if (arg->fn(tp, head, arg) < 0) in mall_walk() 268 arg->stop = 1; in mall_walk() 270 arg->count++; in mall_walk()
|
D | cls_fw.c | 156 static int fw_delete(struct tcf_proto *tp, void *arg, bool *last, in fw_delete() argument 160 struct fw_filter *f = arg; in fw_delete() 241 u32 handle, struct nlattr **tca, void **arg, in fw_change() argument 245 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 (!tc_cls_stats_dump(tp, arg, f)) in fw_walk()
|
D | sch_api.c | 1429 struct check_loop_arg arg; in check_loop() local 1434 arg.w.stop = arg.w.skip = arg.w.count = 0; in check_loop() 1435 arg.w.fn = check_loop_fn; in check_loop() 1436 arg.depth = depth; in check_loop() 1437 arg.p = p; in check_loop() 1438 q->ops->cl_ops->walk(q, &arg.w); in check_loop() 1439 return arg.w.stop ? -ELOOP : 0; in check_loop() 1447 struct check_loop_arg *arg = (struct check_loop_arg *)w; in check_loop_fn() local 1451 if (leaf == arg->p || arg->depth > 7) in check_loop_fn() 1453 return check_loop(leaf, arg->p, arg->depth + 1); in check_loop_fn() [all …]
|
D | sch_hfsc.c | 921 struct nlattr **tca, unsigned long *arg, in hfsc_change_class() argument 925 struct hfsc_class *cl = (struct hfsc_class *)*arg; in hfsc_change_class() 1087 *arg = (unsigned long)cl; in hfsc_change_class() 1104 hfsc_delete_class(struct Qdisc *sch, unsigned long arg, in hfsc_delete_class() argument 1108 struct hfsc_class *cl = (struct hfsc_class *)arg; in hfsc_delete_class() 1185 hfsc_graft_class(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, in hfsc_graft_class() argument 1188 struct hfsc_class *cl = (struct hfsc_class *)arg; in hfsc_graft_class() 1204 hfsc_class_leaf(struct Qdisc *sch, unsigned long arg) in hfsc_class_leaf() argument 1206 struct hfsc_class *cl = (struct hfsc_class *)arg; in hfsc_class_leaf() 1215 hfsc_qlen_notify(struct Qdisc *sch, unsigned long arg) in hfsc_qlen_notify() argument [all …]
|
/net/ipv6/ |
D | fib6_rules.c | 70 struct fib_lookup_arg arg = { in fib6_lookup() local 80 flowi6_to_flowi(fl6), flags, &arg); in fib6_lookup() 98 struct fib_lookup_arg arg = { in fib6_rule_lookup() local 109 flowi6_to_flowi(fl6), flags, &arg); in fib6_rule_lookup() 159 int flags, struct fib_lookup_arg *arg) in fib6_rule_action_alt() argument 161 struct fib6_result *res = arg->result; in fib6_rule_action_alt() 180 tb_id = fib_rule_get_table(rule, arg); in fib6_rule_action_alt() 185 oif = (int *)arg->lookup_data; in fib6_rule_action_alt() 197 int flags, struct fib_lookup_arg *arg) in __fib6_rule_action() argument 199 struct fib6_result *res = arg->result; in __fib6_rule_action() [all …]
|
D | ip6_fib.c | 45 int (*func)(struct fib6_info *, void *arg); 47 void *arg; member 437 static int fib6_rt_dump(struct fib6_info *rt, struct fib6_dump_arg *arg) in fib6_rt_dump() argument 442 if (!rt || rt == arg->net->ipv6.fib6_null_entry) in fib6_rt_dump() 446 err = call_fib6_multipath_entry_notifier(arg->nb, fib_event, in fib6_rt_dump() 449 arg->extack); in fib6_rt_dump() 451 err = call_fib6_entry_notifier(arg->nb, fib_event, rt, in fib6_rt_dump() 452 arg->extack); in fib6_rt_dump() 482 struct fib6_dump_arg arg; in fib6_tables_dump() local 492 arg.net = net; in fib6_tables_dump() [all …]
|
D | route.c | 499 struct fib6_nh_dm_arg *arg = _arg; in __rt6_nh_dev_match() local 501 arg->nh = nh; in __rt6_nh_dev_match() 502 return __rt6_device_match(arg->net, nh, arg->saddr, arg->oif, in __rt6_nh_dev_match() 503 arg->flags); in __rt6_nh_dev_match() 512 struct fib6_nh_dm_arg arg = { in rt6_nh_dev_match() local 522 if (nexthop_for_each_fib6_nh(nh, __rt6_nh_dev_match, &arg)) in rt6_nh_dev_match() 523 return arg.nh; in rt6_nh_dev_match() 782 struct fib6_nh_frl_arg *arg = _arg; in rt6_nh_find_match() local 784 arg->nh = nh; in rt6_nh_find_match() 785 return find_match(nh, arg->flags, arg->oif, arg->strict, in rt6_nh_find_match() [all …]
|
/net/rds/ |
D | tcp_recv.c | 158 struct rds_tcp_desc_arg *arg = desc->arg.data; in rds_tcp_data_recv() local 159 struct rds_conn_path *cp = arg->conn_path; in rds_tcp_data_recv() 175 arg->gfp); in rds_tcp_data_recv() 219 clone = pskb_extract(skb, offset, to_copy, arg->gfp); in rds_tcp_data_recv() 246 arg->gfp); in rds_tcp_data_recv() 268 struct rds_tcp_desc_arg arg; in rds_tcp_read_sock() local 271 arg.conn_path = cp; in rds_tcp_read_sock() 272 arg.gfp = gfp; in rds_tcp_read_sock() 273 desc.arg.data = &arg; in rds_tcp_read_sock()
|
/net/ipv4/ |
D | fib_rules.c | 84 struct fib_lookup_arg arg = { in __fib_lookup() local 93 err = fib_rules_lookup(net->ipv4.rules_ops, flowi4_to_flowi(flp), 0, &arg); in __fib_lookup() 95 if (arg.rule) in __fib_lookup() 96 res->tclassid = ((struct fib4_rule *)arg.rule)->tclassid; in __fib_lookup() 110 struct fib_lookup_arg *arg) in fib4_rule_action() argument 133 tb_id = fib_rule_get_table(rule, arg); in fib4_rule_action() 137 (struct fib_result *)arg->result, in fib4_rule_action() 138 arg->flags); in fib4_rule_action() 146 struct fib_lookup_arg *arg) in fib4_rule_suppress() argument 148 struct fib_result *result = arg->result; in fib4_rule_suppress() [all …]
|
/net/netfilter/ |
D | nft_set_hash.c | 42 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() 85 struct nft_rhash_cmp_arg arg = { in nft_rhash_lookup() local 91 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_lookup() 103 struct nft_rhash_cmp_arg arg = { in nft_rhash_get() local 109 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_get() 126 struct nft_rhash_cmp_arg arg = { in nft_rhash_update() local 132 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_update() [all …]
|
/net/nfc/ |
D | digital_technology.c | 215 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() 476 static void digital_in_recv_sens_res(struct nfc_digital_dev *ddev, void *arg, in digital_in_recv_sens_res() argument 575 static void digital_in_recv_attrib_res(struct nfc_digital_dev *ddev, void *arg, in digital_in_recv_attrib_res() argument 578 struct nfc_target *target = arg; in digital_in_recv_attrib_res() 645 static void digital_in_recv_sensb_res(struct nfc_digital_dev *ddev, void *arg, in digital_in_recv_sensb_res() argument [all …]
|
D | digital.h | 96 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/ |
D | tty.c | 391 static int __rfcomm_create_dev(struct sock *sk, void __user *arg) in __rfcomm_create_dev() argument 397 if (copy_from_user(&req, arg, sizeof(req))) in __rfcomm_create_dev() 437 static int __rfcomm_release_dev(void __user *arg) in __rfcomm_release_dev() argument 443 if (copy_from_user(&req, arg, sizeof(req))) in __rfcomm_release_dev() 480 static int rfcomm_create_dev(struct sock *sk, void __user *arg) in rfcomm_create_dev() argument 485 ret = __rfcomm_create_dev(sk, arg); in rfcomm_create_dev() 491 static int rfcomm_release_dev(void __user *arg) in rfcomm_release_dev() argument 496 ret = __rfcomm_release_dev(arg); in rfcomm_release_dev() 502 static int rfcomm_get_dev_list(void __user *arg) in rfcomm_get_dev_list() argument 512 if (get_user(dev_num, (u16 __user *) arg)) in rfcomm_get_dev_list() [all …]
|
/net/ceph/crush/ |
D | mapper.c | 306 const struct crush_choose_arg *arg, in get_choose_arg_weights() argument 309 if (!arg || !arg->weight_set) in get_choose_arg_weights() 312 if (position >= arg->weight_set_size) in get_choose_arg_weights() 313 position = arg->weight_set_size - 1; in get_choose_arg_weights() 314 return arg->weight_set[position].weights; in get_choose_arg_weights() 318 const struct crush_choose_arg *arg) in get_choose_arg_ids() argument 320 if (!arg || !arg->ids) in get_choose_arg_ids() 323 return arg->ids; in get_choose_arg_ids() 328 const struct crush_choose_arg *arg, in bucket_straw2_choose() argument 334 __u32 *weights = get_choose_arg_weights(bucket, arg, position); in bucket_straw2_choose() [all …]
|
/net/ceph/ |
D | msgpool.c | 12 static void *msgpool_alloc(gfp_t gfp_mask, void *arg) in msgpool_alloc() argument 14 struct ceph_msgpool *pool = arg; in msgpool_alloc() 28 static void msgpool_free(void *element, void *arg) in msgpool_free() argument 30 struct ceph_msgpool *pool = arg; in msgpool_free()
|
/net/ax25/ |
D | af_ax25.c | 364 static int ax25_ctl_ioctl(const unsigned int cmd, void __user *arg) in ax25_ctl_ioctl() argument 373 if (copy_from_user(&ax25_ctl, arg, sizeof(ax25_ctl))) in ax25_ctl_ioctl() 379 if (ax25_ctl.arg > ULONG_MAX / HZ && ax25_ctl.cmd != AX25_KILL) in ax25_ctl_ioctl() 408 if (ax25_ctl.arg < 1 || ax25_ctl.arg > 7) in ax25_ctl_ioctl() 411 if (ax25_ctl.arg < 1 || ax25_ctl.arg > 63) in ax25_ctl_ioctl() 414 ax25->window = ax25_ctl.arg; in ax25_ctl_ioctl() 418 if (ax25_ctl.arg < 1 || ax25_ctl.arg > ULONG_MAX / HZ) in ax25_ctl_ioctl() 420 ax25->rtt = (ax25_ctl.arg * HZ) / 2; in ax25_ctl_ioctl() 421 ax25->t1 = ax25_ctl.arg * HZ; in ax25_ctl_ioctl() 425 if (ax25_ctl.arg < 1 || ax25_ctl.arg > ULONG_MAX / HZ) in ax25_ctl_ioctl() [all …]
|
/net/bluetooth/hidp/ |
D | sock.c | 126 static int hidp_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in hidp_sock_ioctl() argument 128 return do_hidp_sock_ioctl(sock, cmd, (void __user *)arg); in hidp_sock_ioctl() 148 static int hidp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in hidp_sock_compat_ioctl() argument 150 void __user *argp = compat_ptr(arg); in hidp_sock_compat_ioctl() 181 if (copy_from_user(&ca32, (void __user *) arg, sizeof(ca32))) in hidp_sock_compat_ioctl() 219 return hidp_sock_ioctl(sock, cmd, arg); in hidp_sock_compat_ioctl()
|