Home
last modified time | relevance | path

Searched refs:argp (Results 1 – 25 of 334) sorted by relevance

12345678910>>...14

/linux/fs/nfsd/
H A Dnfs3proc.c69 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd3_proc_getattr() local
73 SVCFH_fmt(&argp->fh)); in nfsd3_proc_getattr()
75 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr()
93 struct nfsd3_sattrargs *argp = rqstp->rq_argp; in nfsd3_proc_setattr() local
96 .na_iattr = &argp->attrs, in nfsd3_proc_setattr()
101 SVCFH_fmt(&argp->fh)); in nfsd3_proc_setattr()
103 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr()
104 if (argp->check_guard) in nfsd3_proc_setattr()
105 guardtime = &argp->guardtime; in nfsd3_proc_setattr()
117 struct nfsd3_diropargs *argp = rqstp->rq_argp; in nfsd3_proc_lookup() local
[all …]
H A Dnfsproc.c54 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd_proc_getattr() local
57 dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_getattr()
59 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr()
77 struct nfsd_sattrargs *argp = rqstp->rq_argp; in nfsd_proc_setattr() local
79 struct iattr *iap = &argp->attrs; in nfsd_proc_setattr()
86 SVCFH_fmt(&argp->fh), in nfsd_proc_setattr()
87 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr()
89 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr()
158 struct nfsd_diropargs *argp = rqstp->rq_argp; in nfsd_proc_lookup() local
162 SVCFH_fmt(&argp->fh), argp->len, argp->name); in nfsd_proc_lookup()
[all …]
H A Dnfs2acl.c32 struct nfsd3_getaclargs *argp = rqstp->rq_argp; in nfsacld_proc_getacl() local
38 dprintk("nfsd: GETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_getacl()
40 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getacl()
47 if (argp->mask & ~NFS_ACL_MASK) { in nfsacld_proc_getacl()
51 resp->mask = argp->mask; in nfsacld_proc_getacl()
95 struct nfsd3_setaclargs *argp = rqstp->rq_argp; in nfsacld_proc_setacl() local
101 dprintk("nfsd: SETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_setacl()
103 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_setacl()
117 argp->acl_access); in nfsacld_proc_setacl()
121 argp->acl_default); in nfsacld_proc_setacl()
[all …]
H A Dnfs3acl.c30 struct nfsd3_getaclargs *argp = rqstp->rq_argp; in nfsd3_proc_getacl() local
36 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getacl()
43 if (argp->mask & ~NFS_ACL_MASK) { in nfsd3_proc_getacl()
47 resp->mask = argp->mask; in nfsd3_proc_getacl()
87 struct nfsd3_setaclargs *argp = rqstp->rq_argp; in nfsd3_proc_setacl() local
93 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setacl()
107 argp->acl_access); in nfsd3_proc_setacl()
111 argp->acl_default); in nfsd3_proc_setacl()
121 posix_acl_release(argp->acl_access); in nfsd3_proc_setacl()
122 posix_acl_release(argp->acl_default); in nfsd3_proc_setacl()
[all …]
/linux/fs/lockd/
H A Dxdr.c157 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_decode_testargs() local
160 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_testargs()
164 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlmsvc_decode_testargs()
167 argp->lock.fl.c.flc_type = F_WRLCK; in nlmsvc_decode_testargs()
175 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_decode_lockargs() local
178 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_lockargs()
180 if (xdr_stream_decode_bool(xdr, &argp->block) < 0) in nlmsvc_decode_lockargs()
184 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlmsvc_decode_lockargs()
187 argp->lock.fl.c.flc_type = F_WRLCK; in nlmsvc_decode_lockargs()
188 if (xdr_stream_decode_bool(xdr, &argp->reclaim) < 0) in nlmsvc_decode_lockargs()
[all …]
H A Dsvcshare.c29 struct nlm_args *argp) in nlmsvc_share_file() argument
32 struct xdr_netobj *oh = &argp->lock.oh; in nlmsvc_share_file()
38 if ((argp->fsm_access & share->s_mode) in nlmsvc_share_file()
39 || (argp->fsm_mode & share->s_access )) in nlmsvc_share_file()
60 share->s_access = argp->fsm_access; in nlmsvc_share_file()
61 share->s_mode = argp->fsm_mode; in nlmsvc_share_file()
70 struct nlm_args *argp) in nlmsvc_unshare_file() argument
73 struct xdr_netobj *oh = &argp->lock.oh; in nlmsvc_unshare_file()
H A Dmon.c439 static void encode_mon_name(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_mon_name() argument
441 encode_nsm_string(xdr, argp->mon_name); in encode_mon_name()
450 static void encode_my_id(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_my_id() argument
454 encode_nsm_string(xdr, argp->nodename); in encode_my_id()
456 *p++ = cpu_to_be32(argp->prog); in encode_my_id()
457 *p++ = cpu_to_be32(argp->vers); in encode_my_id()
458 *p = cpu_to_be32(argp->proc); in encode_my_id()
465 static void encode_mon_id(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_mon_id() argument
467 encode_mon_name(xdr, argp); in encode_mon_id()
468 encode_my_id(xdr, argp); in encode_mon_id()
[all …]
/linux/block/
H A Dioctl.c180 void __user *argp) in blk_ioctl_secure_erase() argument
190 if (copy_from_user(range, argp, sizeof(range))) in blk_ioctl_secure_erase()
251 static int put_ushort(unsigned short __user *argp, unsigned short val) in put_ushort() argument
253 return put_user(val, argp); in put_ushort()
256 static int put_int(int __user *argp, int val) in put_int() argument
258 return put_user(val, argp); in put_int()
261 static int put_uint(unsigned int __user *argp, unsigned int val) in put_uint() argument
263 return put_user(val, argp); in put_uint()
266 static int put_long(long __user *argp, long val) in put_long() argument
268 return put_user(val, argp); in put_long()
[all …]
/linux/drivers/sbus/char/
H A Dopenprom.c130 static int opromgetprop(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsi… in opromgetprop() argument
138 return copyout(argp, op, sizeof(int)); in opromgetprop()
144 return copyout(argp, op, sizeof(int) + bufsize); in opromgetprop()
147 static int opromnxtprop(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsi… in opromnxtprop() argument
153 return copyout(argp, op, sizeof(int)); in opromnxtprop()
157 return copyout(argp, op, sizeof(int)); in opromnxtprop()
165 return copyout(argp, op, sizeof(int)); in opromnxtprop()
174 return copyout(argp, op, sizeof(int) + bufsize); in opromnxtprop()
185 static int opromnext(void __user *argp, unsigned int cmd, struct device_node *dp, struct openpromio… in opromnext() argument
229 return copyout(argp, op, bufsize + sizeof(int)); in opromnext()
[all …]
/linux/fs/nilfs2/
H A Dioctl.c177 static int nilfs_ioctl_getversion(struct inode *inode, void __user *argp) in nilfs_ioctl_getversion() argument
179 return put_user(inode->i_generation, (int __user *)argp); in nilfs_ioctl_getversion()
202 unsigned int cmd, void __user *argp) in nilfs_ioctl_change_cpmode() argument
217 if (copy_from_user(&cpmode, argp, sizeof(cpmode))) in nilfs_ioctl_change_cpmode()
257 unsigned int cmd, void __user *argp) in nilfs_ioctl_delete_checkpoint() argument
272 if (copy_from_user(&cno, argp, sizeof(cno))) in nilfs_ioctl_delete_checkpoint()
336 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_cpstat() argument
348 if (copy_to_user(argp, &cpstat, sizeof(cpstat))) in nilfs_ioctl_get_cpstat()
403 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_sustat() argument
415 if (copy_to_user(argp, &sustat, sizeof(sustat))) in nilfs_ioctl_get_sustat()
[all …]
/linux/fs/
H A Dioctl.c252 struct file_clone_range __user *argp) in ioctl_file_clone_range() argument
256 if (copy_from_user(&args, argp, sizeof(args))) in ioctl_file_clone_range()
269 static int ioctl_preallocate(struct file *filp, int mode, void __user *argp) in ioctl_preallocate() argument
274 if (copy_from_user(&sr, argp, sizeof(sr))) in ioctl_preallocate()
298 struct space_resv_32 __user *argp) in compat_ioctl_preallocate() argument
303 if (copy_from_user(&sr, argp, sizeof(sr))) in compat_ioctl_preallocate()
341 static int ioctl_fionbio(struct file *filp, int __user *argp) in ioctl_fionbio() argument
346 error = get_user(on, argp); in ioctl_fionbio()
365 int __user *argp) in ioctl_fioasync() argument
370 error = get_user(on, argp); in ioctl_fioasync()
[all …]
/linux/net/bluetooth/bnep/
H A Dsock.c53 static int do_bnep_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) in do_bnep_sock_ioctl() argument
63 BT_DBG("cmd %x arg %p", cmd, argp); in do_bnep_sock_ioctl()
70 if (copy_from_user(&ca, argp, sizeof(ca))) in do_bnep_sock_ioctl()
85 if (copy_to_user(argp, &ca, sizeof(ca))) in do_bnep_sock_ioctl()
96 if (copy_from_user(&cd, argp, sizeof(cd))) in do_bnep_sock_ioctl()
102 if (copy_from_user(&cl, argp, sizeof(cl))) in do_bnep_sock_ioctl()
109 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in do_bnep_sock_ioctl()
115 if (copy_from_user(&ci, argp, sizeof(ci))) in do_bnep_sock_ioctl()
119 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in do_bnep_sock_ioctl()
125 if (copy_to_user(argp, &supp_feat, sizeof(supp_feat))) in do_bnep_sock_ioctl()
[all …]
/linux/net/bluetooth/cmtp/
H A Dsock.c66 static int do_cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) in do_cmtp_sock_ioctl() argument
75 BT_DBG("cmd %x arg %p", cmd, argp); in do_cmtp_sock_ioctl()
82 if (copy_from_user(&ca, argp, sizeof(ca))) in do_cmtp_sock_ioctl()
96 if (copy_to_user(argp, &ca, sizeof(ca))) in do_cmtp_sock_ioctl()
107 if (copy_from_user(&cd, argp, sizeof(cd))) in do_cmtp_sock_ioctl()
113 if (copy_from_user(&cl, argp, sizeof(cl))) in do_cmtp_sock_ioctl()
120 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in do_cmtp_sock_ioctl()
126 if (copy_from_user(&ci, argp, sizeof(ci))) in do_cmtp_sock_ioctl()
130 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in do_cmtp_sock_ioctl()
147 void __user *argp = compat_ptr(arg); in cmtp_sock_compat_ioctl() local
[all …]
/linux/drivers/platform/x86/intel/speed_select_if/
H A Disst_tpmi_core.c597 static long isst_if_core_power_state(void __user *argp) in isst_if_core_power_state() argument
602 if (copy_from_user(&core_power, argp, sizeof(core_power))) in isst_if_core_power_state()
626 if (copy_to_user(argp, &core_power, sizeof(core_power))) in isst_if_core_power_state()
644 static long isst_if_clos_param(void __user *argp) in isst_if_clos_param() argument
649 if (copy_from_user(&clos_param, argp, sizeof(clos_param))) in isst_if_clos_param()
687 if (copy_to_user(argp, &clos_param, sizeof(clos_param))) in isst_if_clos_param()
698 static long isst_if_clos_assoc(void __user *argp) in isst_if_clos_assoc() argument
705 if (copy_from_user(&assoc_cmds, argp, sizeof(assoc_cmds))) in isst_if_clos_assoc()
711 ptr = argp + offsetof(struct isst_if_clos_assoc_cmds, assoc_info); in isst_if_clos_assoc()
846 static int isst_if_get_perf_level(void __user *argp) in isst_if_get_perf_level() argument
[all …]
/linux/drivers/misc/
H A Dntsync.c74 static int ntsync_sem_post(struct ntsync_obj *sem, void __user *argp) in ntsync_sem_post() argument
76 __u32 __user *user_args = argp; in ntsync_sem_post()
81 if (copy_from_user(&args, argp, sizeof(args))) in ntsync_sem_post()
114 void __user *argp = (void __user *)parm; in ntsync_obj_ioctl() local
118 return ntsync_sem_post(obj, argp); in ntsync_obj_ioctl()
166 static int ntsync_create_sem(struct ntsync_device *dev, void __user *argp) in ntsync_create_sem() argument
168 struct ntsync_sem_args __user *user_args = argp; in ntsync_create_sem()
173 if (copy_from_user(&args, argp, sizeof(args))) in ntsync_create_sem()
219 void __user *argp = (void __user *)parm; in ntsync_char_ioctl() local
223 return ntsync_create_sem(dev, argp); in ntsync_char_ioctl()
/linux/net/bluetooth/hidp/
H A Dsock.c50 static int do_hidp_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) in do_hidp_sock_ioctl() argument
60 BT_DBG("cmd %x arg %p", cmd, argp); in do_hidp_sock_ioctl()
67 if (copy_from_user(&ca, argp, sizeof(ca))) in do_hidp_sock_ioctl()
82 if (!err && copy_to_user(argp, &ca, sizeof(ca))) in do_hidp_sock_ioctl()
94 if (copy_from_user(&cd, argp, sizeof(cd))) in do_hidp_sock_ioctl()
100 if (copy_from_user(&cl, argp, sizeof(cl))) in do_hidp_sock_ioctl()
107 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in do_hidp_sock_ioctl()
113 if (copy_from_user(&ci, argp, sizeof(ci))) in do_hidp_sock_ioctl()
117 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in do_hidp_sock_ioctl()
150 void __user *argp = compat_ptr(arg); in hidp_sock_compat_ioctl() local
[all …]
/linux/drivers/mtd/
H A Dmtdchar.c594 mtdchar_write_ioctl(struct mtd_info *mtd, struct mtd_write_req __user *argp) in mtdchar_write_ioctl() argument
603 if (copy_from_user(&req, argp, sizeof(req))) in mtdchar_write_ioctl()
692 mtdchar_read_ioctl(struct mtd_info *mtd, struct mtd_read_req __user *argp) in mtdchar_read_ioctl() argument
702 if (copy_from_user(&req, argp, sizeof(req))) in mtdchar_read_ioctl()
813 if (copy_to_user(argp, &req, sizeof(req))) in mtdchar_read_ioctl()
827 void __user *argp = (void __user *)arg; in mtdchar_ioctl() local
879 if (copy_to_user(argp, &(mtd->numeraseregions), sizeof(int))) in mtdchar_ioctl()
887 struct region_info_user __user *ur = argp; in mtdchar_ioctl()
915 if (copy_to_user(argp, &info, sizeof(struct mtd_info_user))) in mtdchar_ioctl()
931 if (copy_from_user(&einfo64, argp, in mtdchar_ioctl()
[all …]
/linux/fs/nfs/
H A Dcallback.h101 extern __be32 nfs4_callback_sequence(void *argp, void *resp,
122 extern __be32 nfs4_callback_recallany(void *argp, void *resp,
128 extern __be32 nfs4_callback_recallslot(void *argp, void *resp,
145 extern __be32 nfs4_callback_layoutrecall(void *argp, void *resp,
160 extern __be32 nfs4_callback_devicenotify(void *argp, void *resp,
169 extern __be32 nfs4_callback_notify_lock(void *argp, void *resp,
185 extern __be32 nfs4_callback_getattr(void *argp, void *resp,
187 extern __be32 nfs4_callback_recall(void *argp, void *resp,
/linux/tools/testing/selftests/bpf/
H A Dbench.c275 extern struct argp bench_ringbufs_argp;
276 extern struct argp bench_bloom_map_argp;
277 extern struct argp bench_bpf_loop_argp;
278 extern struct argp bench_local_storage_argp;
279 extern struct argp bench_local_storage_rcu_tasks_trace_argp;
280 extern struct argp bench_strncmp_argp;
281 extern struct argp bench_hashmap_lookup_argp;
282 extern struct argp bench_local_storage_create_argp;
283 extern struct argp bench_htab_mem_argp;
284 extern struct argp bench_trigger_batch_argp;
[all …]
/linux/drivers/nvme/host/
H A Dioctl.c541 void __user *argp, bool open_for_write) in nvme_ctrl_ioctl() argument
545 return nvme_user_cmd(ctrl, NULL, argp, 0, open_for_write); in nvme_ctrl_ioctl()
547 return nvme_user_cmd64(ctrl, NULL, argp, 0, open_for_write); in nvme_ctrl_ioctl()
549 return sed_ioctl(ctrl->opal_dev, cmd, argp); in nvme_ctrl_ioctl()
572 void __user *argp, unsigned int flags, bool open_for_write) in nvme_ns_ioctl() argument
579 return nvme_user_cmd(ns->ctrl, ns, argp, flags, open_for_write); in nvme_ns_ioctl()
589 return nvme_submit_io(ns, argp); in nvme_ns_ioctl()
594 return nvme_user_cmd64(ns->ctrl, ns, argp, flags, in nvme_ns_ioctl()
606 void __user *argp = (void __user *)arg; in nvme_ioctl() local
613 return nvme_ctrl_ioctl(ns->ctrl, cmd, argp, open_for_write); in nvme_ioctl()
[all …]
/linux/drivers/crypto/ccp/
H A Dsev-dev.c1392 static int sev_ioctl_do_reset(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_reset() argument
1408 rc = sev_get_platform_state(&state, &argp->error); in sev_ioctl_do_reset()
1416 rc = __sev_platform_shutdown_locked(&argp->error); in sev_ioctl_do_reset()
1421 return __sev_do_cmd_locked(SEV_CMD_FACTORY_RESET, NULL, &argp->error); in sev_ioctl_do_reset()
1424 static int sev_ioctl_do_platform_status(struct sev_issue_cmd *argp) in sev_ioctl_do_platform_status() argument
1431 ret = __sev_do_cmd_locked(SEV_CMD_PLATFORM_STATUS, &data, &argp->error); in sev_ioctl_do_platform_status()
1435 if (copy_to_user((void __user *)argp->data, &data, sizeof(data))) in sev_ioctl_do_platform_status()
1441 static int sev_ioctl_do_pek_pdh_gen(int cmd, struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pek_pdh_gen() argument
1450 rc = __sev_platform_init_locked(&argp->error); in sev_ioctl_do_pek_pdh_gen()
1455 return __sev_do_cmd_locked(cmd, NULL, &argp->error); in sev_ioctl_do_pek_pdh_gen()
[all …]
/linux/tools/include/linux/
H A Dpanic.h11 va_list argp; in panic() local
13 va_start(argp, fmt); in panic()
14 vfprintf(stderr, fmt, argp); in panic()
15 va_end(argp); in panic()
/linux/drivers/char/
H A Dppdev.c364 void __user *argp = (void __user *)arg; in pp_do_ioctl() local
431 if (copy_from_user(&mode, argp, sizeof(mode))) in pp_do_ioctl()
453 if (copy_to_user(argp, &mode, sizeof(mode))) in pp_do_ioctl()
461 if (copy_from_user(&phase, argp, sizeof(phase))) in pp_do_ioctl()
480 if (copy_to_user(argp, &phase, sizeof(phase))) in pp_do_ioctl()
494 if (copy_to_user(argp, &modes, sizeof(modes))) in pp_do_ioctl()
502 if (copy_from_user(&uflags, argp, sizeof(uflags))) in pp_do_ioctl()
513 if (copy_to_user(argp, &uflags, sizeof(uflags))) in pp_do_ioctl()
530 if (copy_to_user(argp, &reg, sizeof(reg))) in pp_do_ioctl()
535 if (copy_to_user(argp, &reg, sizeof(reg))) in pp_do_ioctl()
[all …]
/linux/sound/core/
H A Dpcm_compat.c566 void __user *argp = compat_ptr(arg); in snd_pcm_ioctl_compat() local
601 return snd_pcm_common_ioctl(file, substream, cmd, argp); in snd_pcm_ioctl_compat()
605 return snd_pcm_ioctl_sync_ptr_x32(substream, argp); in snd_pcm_ioctl_compat()
607 return snd_pcm_ioctl_sync_ptr_buggy(substream, argp); in snd_pcm_ioctl_compat()
609 return snd_pcm_ioctl_hw_params_compat(substream, 1, argp); in snd_pcm_ioctl_compat()
611 return snd_pcm_ioctl_hw_params_compat(substream, 0, argp); in snd_pcm_ioctl_compat()
613 return snd_pcm_ioctl_sw_params_compat(substream, argp); in snd_pcm_ioctl_compat()
615 return snd_pcm_status_user32(substream, argp, false); in snd_pcm_ioctl_compat()
617 return snd_pcm_status_user32(substream, argp, true); in snd_pcm_ioctl_compat()
619 return snd_pcm_ioctl_channel_info_compat(substream, argp); in snd_pcm_ioctl_compat()
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_ioc32.c179 drm_client32_t __user *argp = (void __user *)arg; in compat_drm_getclient() local
183 if (copy_from_user(&c32, argp, sizeof(c32))) in compat_drm_getclient()
201 if (copy_to_user(argp, &c32, sizeof(c32))) in compat_drm_getclient()
217 drm_stats32_t __user *argp = (void __user *)arg; in compat_drm_getstats() local
220 if (clear_user(argp, sizeof(drm_stats32_t))) in compat_drm_getstats()
263 drm_wait_vblank32_t __user *argp = (void __user *)arg; in compat_drm_wait_vblank() local
268 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_wait_vblank()
282 if (copy_to_user(argp, &req32, sizeof(req32))) in compat_drm_wait_vblank()
304 struct drm_mode_fb_cmd232 __user *argp = (void __user *)arg; in compat_drm_mode_addfb2() local
310 if (copy_from_user(&req64, argp, in compat_drm_mode_addfb2()
[all …]

12345678910>>...14