Home
last modified time | relevance | path

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

12345678910>>...14

/linux/fs/nfsd/
A Dnfs3proc.c75 argp->check_guard, argp->guardtime); in nfsd3_proc_setattr()
97 argp->name, argp->len, in nfsd3_proc_lookup()
303 argp->flen, argp->fname, in nfsd3_proc_symlink()
304 argp->tlen, argp->tname); in nfsd3_proc_symlink()
309 argp->flen, argp->tname, &resp->fh); in nfsd3_proc_symlink()
335 rdev = MKDEV(argp->major, argp->minor); in nfsd3_proc_mknod()
371 argp->name, argp->len); in nfsd3_proc_remove()
392 argp->name, argp->len); in nfsd3_proc_rmdir()
415 &resp->tfh, argp->tname, argp->tlen); in nfsd3_proc_rename()
478 argp->count, (u32) argp->cookie); in nfsd3_proc_readdir()
[all …]
A Dnfsproc.c132 SVCFH_fmt(&argp->fh), argp->len, argp->name); in nfsd_proc_lookup()
182 argp->count, argp->offset); in nfsd_proc_read()
235 argp->len, argp->offset); in nfsd_proc_write()
428 argp->len, argp->name); in nfsd_proc_remove()
432 argp->name, argp->len); in nfsd_proc_remove()
444 SVCFH_fmt(&argp->ffh), argp->flen, argp->fname); in nfsd_proc_rename()
446 SVCFH_fmt(&argp->tfh), argp->tlen, argp->tname); in nfsd_proc_rename()
449 &argp->tfh, argp->tname, argp->tlen); in nfsd_proc_rename()
496 SVCFH_fmt(&argp->ffh), argp->flen, argp->fname, in nfsd_proc_symlink()
497 argp->tlen, argp->tname); in nfsd_proc_symlink()
[all …]
A Dnfs4xdr.c127 argp->to_free = tb; in svcxdr_tmpalloc()
2334 if (xdr_stream_decode_u32(argp->xdr, &argp->taglen) < 0) in nfsd4_decode_compound()
2337 argp->tag = NULL; in nfsd4_decode_compound()
2341 p = xdr_inline_decode(argp->xdr, argp->taglen); in nfsd4_decode_compound()
2344 argp->tag = svcxdr_savemem(argp, p, argp->taglen); in nfsd4_decode_compound()
2345 if (!argp->tag) in nfsd4_decode_compound()
2350 if (xdr_stream_decode_u32(argp->xdr, &argp->minorversion) < 0) in nfsd4_decode_compound()
2352 if (xdr_stream_decode_u32(argp->xdr, &argp->opcnt) < 0) in nfsd4_decode_compound()
2363 if (argp->opcnt > ARRAY_SIZE(argp->iops)) { in nfsd4_decode_compound()
2364 argp->ops = kzalloc(argp->opcnt * sizeof(*argp->ops), GFP_KERNEL); in nfsd4_decode_compound()
[all …]
A Dnfs2acl.c40 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()
117 argp->acl_access); in nfsacld_proc_setacl()
121 argp->acl_default); in nfsacld_proc_setacl()
156 fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getattr()
174 SVCFH_fmt(&argp->fh), in nfsacld_proc_access()
175 argp->access); in nfsacld_proc_access()
177 fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_access()
178 resp->access = argp->access; in nfsacld_proc_access()
[all …]
A Dnfs3acl.c36 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()
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()
152 if (argp->mask & ~NFS_ACL_MASK) in nfs3svc_decode_setaclargs()
155 &argp->acl_access : NULL)) in nfs3svc_decode_setaclargs()
[all …]
/linux/block/
A Dioctl.c195 return put_user(val, argp); in put_ushort()
200 return put_user(val, argp); in put_int()
205 return put_user(val, argp); in put_uint()
210 return put_user(val, argp); in put_long()
381 if (!argp) in blkdev_getgeo()
441 int __user *argp) in blkdev_bszset() argument
447 if (!argp) in blkdev_bszset()
449 if (get_user(n, argp)) in blkdev_bszset()
579 if (!argp) in blkdev_ioctl()
581 return put_long(argp, in blkdev_ioctl()
[all …]
/linux/fs/lockd/
A Dxdr.c157 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_decode_testargs() local
167 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_testargs()
175 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_decode_lockargs() local
187 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_lockargs()
212 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_cancargs()
226 argp->lock.fl.fl_type = F_UNLCK; in nlmsvc_decode_unlockargs()
258 argp->len = len; in nlmsvc_decode_reboot()
259 argp->mon = (char *)p; in nlmsvc_decode_reboot()
265 memcpy(&argp->priv.data, p, sizeof(argp->priv.data)); in nlmsvc_decode_reboot()
274 struct nlm_lock *lock = &argp->lock; in nlmsvc_decode_shareargs()
[all …]
A Dxdr4.c156 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_decode_testargs() local
166 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_testargs()
174 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_decode_lockargs() local
186 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_lockargs()
211 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_cancargs()
225 argp->lock.fl.fl_type = F_UNLCK; in nlm4svc_decode_unlockargs()
257 argp->len = len; in nlm4svc_decode_reboot()
258 argp->mon = (char *)p; in nlm4svc_decode_reboot()
264 memcpy(&argp->priv.data, p, sizeof(argp->priv.data)); in nlm4svc_decode_reboot()
273 struct nlm_lock *lock = &argp->lock; in nlm4svc_decode_shareargs()
[all …]
A Dsvc4proc.c93 resp->cookie = argp->cookie; in __nlm4svc_proc_test()
128 resp->cookie = argp->cookie; in __nlm4svc_proc_lock()
148 argp->block, &argp->cookie, in __nlm4svc_proc_lock()
149 argp->reclaim); in __nlm4svc_proc_lock()
176 resp->cookie = argp->cookie; in __nlm4svc_proc_cancel()
216 resp->cookie = argp->cookie; in __nlm4svc_proc_unlock()
253 resp->cookie = argp->cookie; in __nlm4svc_proc_granted()
298 argp->lock.caller, in nlm4svc_callback()
299 argp->lock.len); in nlm4svc_callback()
363 resp->cookie = argp->cookie; in nlm4svc_proc_share()
[all …]
A Dsvcproc.c122 resp->cookie = argp->cookie; in __nlmsvc_proc_test()
158 resp->cookie = argp->cookie; in __nlmsvc_proc_lock()
178 argp->block, &argp->cookie, in __nlmsvc_proc_lock()
179 argp->reclaim)); in __nlmsvc_proc_lock()
207 resp->cookie = argp->cookie; in __nlmsvc_proc_cancel()
248 resp->cookie = argp->cookie; in __nlmsvc_proc_unlock()
285 resp->cookie = argp->cookie; in __nlmsvc_proc_granted()
338 argp->lock.caller, in nlmsvc_callback()
339 argp->lock.len); in nlmsvc_callback()
405 resp->cookie = argp->cookie; in nlmsvc_proc_share()
[all …]
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()
A Dmon.c438 encode_nsm_string(xdr, argp->mon_name); in encode_mon_name()
453 *p++ = cpu_to_be32(argp->prog); in encode_my_id()
454 *p++ = cpu_to_be32(argp->vers); in encode_my_id()
455 *p = cpu_to_be32(argp->proc); in encode_my_id()
464 encode_mon_name(xdr, argp); in encode_mon_id()
465 encode_my_id(xdr, argp); in encode_mon_id()
482 const void *argp) in nsm_xdr_enc_mon() argument
484 encode_mon_id(xdr, argp); in nsm_xdr_enc_mon()
485 encode_priv(xdr, argp); in nsm_xdr_enc_mon()
489 const void *argp) in nsm_xdr_enc_unmon() argument
[all …]
/linux/drivers/sbus/char/
A Dopenprom.c138 return copyout(argp, op, sizeof(int)); in opromgetprop()
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()
297 void __user *argp = (void __user *)arg; in openprom_sunos_ioctl() local
300 bufsize = getstrings(argp, &opp); in openprom_sunos_ioctl()
302 bufsize = copyin(argp, &opp); in openprom_sunos_ioctl()
537 err = opiocget(argp, data); in openprom_bsd_ioctl()
541 err = opiocnextprop(argp, data); in openprom_bsd_ioctl()
545 err = opiocset(argp, data); in openprom_bsd_ioctl()
[all …]
/linux/drivers/gpu/drm/
A Ddrm_ioc32.c198 if (copy_to_user(argp, &m32, sizeof(m32))) in compat_drm_getmap()
232 if (copy_to_user(argp, &m32, sizeof(m32))) in compat_drm_addmap()
245 if (get_user(handle, &argp->handle)) in compat_drm_rmmap()
287 if (copy_to_user(argp, &c32, sizeof(c32))) in compat_drm_getclient()
414 if (put_user(req32.count, &argp->count)) in compat_drm_infobufs()
477 if (put_user(req32.count, &argp->count) in compat_drm_mapbufs()
633 if (get_user(mode.mode, &argp->mode)) in compat_drm_agp_enable()
777 if (get_user(request.size, &argp->size)) in compat_drm_sg_alloc()
799 if (get_user(x, &argp->handle)) in compat_drm_sg_free()
891 if (copy_from_user(&req64, argp, in compat_drm_mode_addfb2()
[all …]
/linux/drivers/s390/block/
A Ddasd_ioctl.c34 dasd_ioctl_api_version(void __user *argp) in dasd_ioctl_api_version() argument
37 return put_user(ver, (int __user *)argp); in dasd_ioctl_api_version()
263 if (!argp) in dasd_ioctl_format()
298 if (!argp) in dasd_ioctl_check_format()
351 if (!argp) in dasd_ioctl_release_space()
553 struct cmbdata __user *argp) in dasd_ioctl_readall_cmb() argument
560 if (!ret && copy_to_user(argp, &data, min(size, sizeof(*argp)))) in dasd_ioctl_readall_cmb()
570 void __user *argp; in dasd_ioctl() local
574 argp = compat_ptr(arg); in dasd_ioctl()
576 argp = (void __user *)arg; in dasd_ioctl()
[all …]
/linux/fs/nilfs2/
A Dioctl.c188 unsigned int cmd, void __user *argp) in nilfs_ioctl_change_cpmode() argument
243 unsigned int cmd, void __user *argp) in nilfs_ioctl_delete_checkpoint() argument
322 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_cpstat() argument
389 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_sustat() argument
498 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_bdescs() argument
998 if (argp != NULL) { in nilfs_ioctl_sync()
1017 void __user *argp) in nilfs_ioctl_resize() argument
1149 unsigned int cmd, void __user *argp, in nilfs_ioctl_get_info() argument
1200 unsigned int cmd, void __user *argp) in nilfs_ioctl_set_suinfo() argument
1267 void __user *argp = (void __user *)arg; in nilfs_ioctl() local
[all …]
/linux/fs/
A Dioctl.c350 error = get_user(on, argp); in ioctl_fionbio()
369 int __user *argp) in ioctl_fioasync() argument
374 error = get_user(on, argp); in ioctl_fioasync()
439 same = memdup_user(argp, size); in ioctl_file_dedupe_range()
715 err = put_user(fa.flags, argp); in ioctl_getflags()
727 err = get_user(flags, argp); in ioctl_setflags()
792 return ioctl_fionbio(filp, argp); in do_vfs_ioctl()
814 return ioctl_fiemap(filp, argp); in do_vfs_ioctl()
837 (int __user *)argp); in do_vfs_ioctl()
840 return ioctl_getflags(filp, argp); in do_vfs_ioctl()
[all …]
/linux/net/bluetooth/bnep/
A Dsock.c62 BT_DBG("cmd %x arg %p", cmd, argp); in do_bnep_sock_ioctl()
69 if (copy_from_user(&ca, argp, sizeof(ca))) in do_bnep_sock_ioctl()
84 if (copy_to_user(argp, &ca, sizeof(ca))) in do_bnep_sock_ioctl()
95 if (copy_from_user(&cd, argp, sizeof(cd))) in do_bnep_sock_ioctl()
101 if (copy_from_user(&cl, argp, sizeof(cl))) in do_bnep_sock_ioctl()
108 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in do_bnep_sock_ioctl()
114 if (copy_from_user(&ci, argp, sizeof(ci))) in do_bnep_sock_ioctl()
118 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in do_bnep_sock_ioctl()
144 void __user *argp = compat_ptr(arg); in bnep_sock_compat_ioctl() local
147 unsigned __user *p = argp; in bnep_sock_compat_ioctl()
[all …]
/linux/net/bluetooth/cmtp/
A Dsock.c75 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
150 u32 __user *p = argp; in cmtp_sock_compat_ioctl()
[all …]
/linux/drivers/crypto/ccp/
A Dsev-dev.c356 rc = sev_get_platform_state(&state, &argp->error); in sev_ioctl_do_reset()
364 rc = __sev_platform_shutdown_locked(&argp->error); in sev_ioctl_do_reset()
396 rc = __sev_platform_init_locked(&argp->error); in sev_ioctl_do_pek_pdh_gen()
401 return __sev_do_cmd_locked(cmd, NULL, &argp->error); in sev_ioctl_do_pek_pdh_gen()
439 ret = __sev_platform_init_locked(&argp->error); in sev_ioctl_do_pek_csr()
622 ret = __sev_platform_init_locked(&argp->error); in sev_ioctl_do_pek_import()
636 static int sev_ioctl_do_get_id2(struct sev_issue_cmd *argp) in sev_ioctl_do_get_id2() argument
691 static int sev_ioctl_do_get_id(struct sev_issue_cmd *argp) in sev_ioctl_do_get_id() argument
746 ret = __sev_platform_init_locked(&argp->error); in sev_ioctl_do_pdh_export()
824 void __user *argp = (void __user *)arg; in sev_ioctl() local
[all …]
/linux/drivers/mtd/
A Dmtdchar.c577 struct mtd_write_req __user *argp) in mtdchar_write_ioctl() argument
585 if (copy_from_user(&req, argp, sizeof(req))) in mtdchar_write_ioctl()
629 void __user *argp = (void __user *)arg; in mtdchar_ioctl() local
688 struct region_info_user __user *ur = argp; in mtdchar_ioctl()
732 if (copy_from_user(&einfo64, argp, in mtdchar_ioctl()
742 if (copy_from_user(&einfo32, argp, in mtdchar_ioctl()
760 struct mtd_oob_buf __user *buf_user = argp; in mtdchar_ioctl()
774 struct mtd_oob_buf __user *buf_user = argp; in mtdchar_ioctl()
925 ret = copy_to_user(argp, buf, retlen); in mtdchar_ioctl()
971 if (copy_to_user(argp, &mtd->ecc_stats, in mtdchar_ioctl()
[all …]
/linux/drivers/nvme/host/
A Dioctl.c293 void __user *argp) in nvme_ctrl_ioctl() argument
297 return nvme_user_cmd(ctrl, NULL, argp); in nvme_ctrl_ioctl()
324 void __user *argp) in nvme_ns_ioctl() argument
341 return nvme_submit_io(ns, argp); in nvme_ns_ioctl()
392 void __user *argp = (void __user *)arg; in nvme_ns_head_ioctl() local
409 ret = nvme_ns_ioctl(ns, cmd, argp); in nvme_ns_head_ioctl()
421 void __user *argp = (void __user *)arg; in nvme_ns_head_chr_ioctl() local
433 ret = nvme_ns_ioctl(ns, cmd, argp); in nvme_ns_head_chr_ioctl()
464 ret = nvme_user_cmd(ctrl, ns, argp); in nvme_dev_user_cmd()
477 void __user *argp = (void __user *)arg; in nvme_dev_ioctl() local
[all …]
/linux/net/bluetooth/hidp/
A Dsock.c59 BT_DBG("cmd %x arg %p", cmd, argp); in do_hidp_sock_ioctl()
66 if (copy_from_user(&ca, argp, sizeof(ca))) in do_hidp_sock_ioctl()
81 if (!err && copy_to_user(argp, &ca, sizeof(ca))) in do_hidp_sock_ioctl()
93 if (copy_from_user(&cd, argp, sizeof(cd))) in do_hidp_sock_ioctl()
99 if (copy_from_user(&cl, argp, sizeof(cl))) in do_hidp_sock_ioctl()
106 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in do_hidp_sock_ioctl()
112 if (copy_from_user(&ci, argp, sizeof(ci))) in do_hidp_sock_ioctl()
116 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in do_hidp_sock_ioctl()
149 void __user *argp = compat_ptr(arg); in hidp_sock_compat_ioctl() local
154 u32 __user *p = argp; in hidp_sock_compat_ioctl()
[all …]
/linux/fs/nfs/
A Dcallback.h118 extern __be32 nfs4_callback_sequence(void *argp, void *resp,
139 extern __be32 nfs4_callback_recallany(void *argp, void *resp,
145 extern __be32 nfs4_callback_recallslot(void *argp, void *resp,
162 extern __be32 nfs4_callback_layoutrecall(void *argp, void *resp,
177 extern __be32 nfs4_callback_devicenotify(void *argp, void *resp,
186 extern __be32 nfs4_callback_notify_lock(void *argp, void *resp,
202 extern __be32 nfs4_callback_getattr(void *argp, void *resp,
204 extern __be32 nfs4_callback_recall(void *argp, void *resp,
/linux/drivers/char/
A Dppdev.c357 void __user *argp = (void __user *)arg; in pp_do_ioctl() local
424 if (copy_from_user(&mode, argp, sizeof(mode))) in pp_do_ioctl()
446 if (copy_to_user(argp, &mode, sizeof(mode))) in pp_do_ioctl()
523 if (copy_to_user(argp, &reg, sizeof(reg))) in pp_do_ioctl()
528 if (copy_to_user(argp, &reg, sizeof(reg))) in pp_do_ioctl()
533 if (copy_to_user(argp, &reg, sizeof(reg))) in pp_do_ioctl()
552 if (copy_from_user(&reg, argp, sizeof(reg))) in pp_do_ioctl()
558 if (copy_from_user(&reg, argp, sizeof(reg))) in pp_do_ioctl()
564 if (copy_from_user(&mask, argp, in pp_do_ioctl()
598 if (copy_from_user(&reg, argp, sizeof(reg))) in pp_do_ioctl()
[all …]

Completed in 85 milliseconds

12345678910>>...14