Home
last modified time | relevance | path

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

123

/linux-4.19.296/fs/nfsd/
Dnfs3proc.c46 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd3_proc_getattr() local
51 SVCFH_fmt(&argp->fh)); in nfsd3_proc_getattr()
53 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr()
70 struct nfsd3_sattrargs *argp = rqstp->rq_argp; in nfsd3_proc_setattr() local
75 SVCFH_fmt(&argp->fh)); in nfsd3_proc_setattr()
77 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr()
78 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr()
79 argp->check_guard, argp->guardtime); in nfsd3_proc_setattr()
89 struct nfsd3_diropargs *argp = rqstp->rq_argp; in nfsd3_proc_lookup() local
94 SVCFH_fmt(&argp->fh), in nfsd3_proc_lookup()
[all …]
Dnfsproc.c45 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd_proc_getattr() local
48 dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_getattr()
50 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr()
63 struct nfsd_sattrargs *argp = rqstp->rq_argp; in nfsd_proc_setattr() local
65 struct iattr *iap = &argp->attrs; in nfsd_proc_setattr()
70 SVCFH_fmt(&argp->fh), in nfsd_proc_setattr()
71 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr()
73 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr()
137 struct nfsd_diropargs *argp = rqstp->rq_argp; in nfsd_proc_lookup() local
142 SVCFH_fmt(&argp->fh), argp->len, argp->name); in nfsd_proc_lookup()
[all …]
Dnfs2acl.c33 struct nfsd3_getaclargs *argp = rqstp->rq_argp; in nfsacld_proc_getacl() local
40 dprintk("nfsd: GETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_getacl()
42 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getacl()
49 if (argp->mask & ~NFS_ACL_MASK) in nfsacld_proc_getacl()
51 resp->mask = argp->mask; in nfsacld_proc_getacl()
94 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()
116 error = set_posix_acl(inode, ACL_TYPE_ACCESS, argp->acl_access); in nfsacld_proc_setacl()
119 error = set_posix_acl(inode, ACL_TYPE_DEFAULT, argp->acl_default); in nfsacld_proc_setacl()
[all …]
Dnfs4xdr.c115 if (!(x = (p==argp->tmp || p == argp->tmpp) ? \
116 savemem(argp, p, nbytes) : \
131 if (nbytes <= (u32)((char *)argp->end - (char *)argp->p)) { \
132 p = argp->p; \
133 argp->p += XDR_QUADLEN(nbytes); \
134 } else if (!(p = read_buf(argp, nbytes))) { \
141 static void next_decode_page(struct nfsd4_compoundargs *argp) in next_decode_page() argument
143 argp->p = page_address(argp->pagelist[0]); in next_decode_page()
144 argp->pagelist++; in next_decode_page()
145 if (argp->pagelen < PAGE_SIZE) { in next_decode_page()
[all …]
Dnfs3acl.c32 struct nfsd3_getaclargs *argp = rqstp->rq_argp; in nfsd3_proc_getacl() local
39 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getacl()
46 if (argp->mask & ~NFS_ACL_MASK) in nfsd3_proc_getacl()
48 resp->mask = argp->mask; in nfsd3_proc_getacl()
87 struct nfsd3_setaclargs *argp = rqstp->rq_argp; in nfsd3_proc_setacl() local
94 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setacl()
107 error = set_posix_acl(inode, ACL_TYPE_ACCESS, argp->acl_access); in nfsd3_proc_setacl()
110 error = set_posix_acl(inode, ACL_TYPE_DEFAULT, argp->acl_default); in nfsd3_proc_setacl()
120 posix_acl_release(argp->acl_access); in nfsd3_proc_setacl()
121 posix_acl_release(argp->acl_default); in nfsd3_proc_setacl()
/linux-4.19.296/fs/lockd/
Dsvc4proc.c23 nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_retrieve_args() argument
28 struct nlm_lock *lock = &argp->lock; in nlm4svc_retrieve_args()
37 || (argp->monitor && nsm_monitor(host) < 0)) in nlm4svc_retrieve_args()
78 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_test() local
84 resp->cookie = argp->cookie; in __nlm4svc_proc_test()
87 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_test()
91 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in __nlm4svc_proc_test()
111 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_lock() local
118 resp->cookie = argp->cookie; in __nlm4svc_proc_lock()
121 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_lock()
[all …]
Dxdr4.c185 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_decode_testargs() local
188 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_testargs()
192 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_testargs()
195 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_testargs()
213 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_decode_lockargs() local
216 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_lockargs()
218 argp->block = ntohl(*p++); in nlm4svc_decode_lockargs()
220 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_lockargs()
223 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_lockargs()
224 argp->reclaim = ntohl(*p++); in nlm4svc_decode_lockargs()
[all …]
Dxdr.c188 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_decode_testargs() local
191 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_testargs()
195 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_testargs()
198 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_testargs()
216 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_decode_lockargs() local
219 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_lockargs()
221 argp->block = ntohl(*p++); in nlmsvc_decode_lockargs()
223 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_lockargs()
226 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_lockargs()
227 argp->reclaim = ntohl(*p++); in nlmsvc_decode_lockargs()
[all …]
Dsvcproc.c52 nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_retrieve_args() argument
57 struct nlm_lock *lock = &argp->lock; in nlmsvc_retrieve_args()
66 || (argp->monitor && nsm_monitor(host) < 0)) in nlmsvc_retrieve_args()
108 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_test() local
114 resp->cookie = argp->cookie; in __nlmsvc_proc_test()
117 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test()
121 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test()
142 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_lock() local
149 resp->cookie = argp->cookie; in __nlmsvc_proc_lock()
152 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_lock()
[all …]
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()
Dmon.c438 static void encode_mon_name(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_mon_name() argument
440 encode_nsm_string(xdr, argp->mon_name); in encode_mon_name()
449 static void encode_my_id(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_my_id() argument
453 encode_nsm_string(xdr, argp->nodename); in encode_my_id()
455 *p++ = cpu_to_be32(argp->prog); in encode_my_id()
456 *p++ = cpu_to_be32(argp->vers); in encode_my_id()
457 *p = cpu_to_be32(argp->proc); in encode_my_id()
464 static void encode_mon_id(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_mon_id() argument
466 encode_mon_name(xdr, argp); in encode_mon_id()
467 encode_my_id(xdr, argp); in encode_mon_id()
[all …]
/linux-4.19.296/fs/nilfs2/
Dioctl.c118 static int nilfs_ioctl_getflags(struct inode *inode, void __user *argp) in nilfs_ioctl_getflags() argument
122 return put_user(flags, (int __user *)argp); in nilfs_ioctl_getflags()
129 void __user *argp) in nilfs_ioctl_setflags() argument
138 if (get_user(flags, (int __user *)argp)) in nilfs_ioctl_setflags()
183 static int nilfs_ioctl_getversion(struct inode *inode, void __user *argp) in nilfs_ioctl_getversion() argument
185 return put_user(inode->i_generation, (int __user *)argp); in nilfs_ioctl_getversion()
208 unsigned int cmd, void __user *argp) in nilfs_ioctl_change_cpmode() argument
223 if (copy_from_user(&cpmode, argp, sizeof(cpmode))) in nilfs_ioctl_change_cpmode()
263 unsigned int cmd, void __user *argp) in nilfs_ioctl_delete_checkpoint() argument
278 if (copy_from_user(&cno, argp, sizeof(cno))) in nilfs_ioctl_delete_checkpoint()
[all …]
/linux-4.19.296/drivers/s390/block/
Ddasd_ioctl.c33 dasd_ioctl_api_version(void __user *argp) in dasd_ioctl_api_version() argument
36 return put_user(ver, (int __user *)argp); in dasd_ioctl_api_version()
263 dasd_ioctl_format(struct block_device *bdev, void __user *argp) in dasd_ioctl_format() argument
271 if (!argp) in dasd_ioctl_format()
281 if (copy_from_user(&fdata, argp, sizeof(struct format_data_t))) { in dasd_ioctl_format()
300 static int dasd_ioctl_check_format(struct block_device *bdev, void __user *argp) in dasd_ioctl_check_format() argument
306 if (!argp) in dasd_ioctl_check_format()
319 if (copy_from_user(&cdata, argp, sizeof(cdata))) { in dasd_ioctl_check_format()
328 if (copy_to_user(argp, &cdata, sizeof(cdata))) in dasd_ioctl_check_format()
350 static int dasd_ioctl_read_profile(struct dasd_block *block, void __user *argp) in dasd_ioctl_read_profile() argument
[all …]
/linux-4.19.296/drivers/misc/mic/scif/
Dscif_fd.c84 void __user *argp = (void __user *)arg; in scif_fdioctl() local
96 if (copy_from_user(&pn, argp, sizeof(pn))) in scif_fdioctl()
103 if (copy_to_user(argp, &pn, sizeof(pn))) in scif_fdioctl()
115 if (copy_from_user(&req, argp, sizeof(req))) in scif_fdioctl()
125 if (copy_to_user(argp, &req, sizeof(req))) in scif_fdioctl()
142 if (copy_from_user(&request, argp, sizeof(request))) in scif_fdioctl()
149 if (copy_to_user(argp, &request, sizeof(request))) { in scif_fdioctl()
176 if (copy_from_user(&newep, argp, sizeof(void *))) in scif_fdioctl()
220 if (copy_from_user(&request, argp, in scif_fdioctl()
230 ((struct scifioctl_msg __user *)argp)->out_len, in scif_fdioctl()
[all …]
/linux-4.19.296/fs/nfs/
Dcallback.h118 extern __be32 nfs4_callback_sequence(void *argp, void *resp,
137 extern __be32 nfs4_callback_recallany(void *argp, void *resp,
143 extern __be32 nfs4_callback_recallslot(void *argp, void *resp,
160 extern __be32 nfs4_callback_layoutrecall(void *argp, void *resp,
175 extern __be32 nfs4_callback_devicenotify(void *argp, void *resp,
184 extern __be32 nfs4_callback_notify_lock(void *argp, void *resp,
200 extern __be32 nfs4_callback_getattr(void *argp, void *resp,
202 extern __be32 nfs4_callback_recall(void *argp, void *resp,
Dcallback_proc.c23 __be32 nfs4_callback_getattr(void *argp, void *resp, in nfs4_callback_getattr() argument
26 struct cb_getattrargs *args = argp; in nfs4_callback_getattr()
75 __be32 nfs4_callback_recall(void *argp, void *resp, in nfs4_callback_recall() argument
78 struct cb_recallargs *args = argp; in nfs4_callback_recall()
341 __be32 nfs4_callback_layoutrecall(void *argp, void *resp, in nfs4_callback_layoutrecall() argument
344 struct cb_layoutrecallargs *args = argp; in nfs4_callback_layoutrecall()
363 __be32 nfs4_callback_devicenotify(void *argp, void *resp, in nfs4_callback_devicenotify() argument
366 struct cb_devicenotifyargs *args = argp; in nfs4_callback_devicenotify()
481 __be32 nfs4_callback_sequence(void *argp, void *resp, in nfs4_callback_sequence() argument
484 struct cb_sequenceargs *args = argp; in nfs4_callback_sequence()
[all …]
/linux-4.19.296/fs/
Dioctl.c239 static long ioctl_file_clone_range(struct file *file, void __user *argp) in ioctl_file_clone_range() argument
243 if (copy_from_user(&args, argp, sizeof(args))) in ioctl_file_clone_range()
461 int ioctl_preallocate(struct file *filp, void __user *argp) in ioctl_preallocate() argument
466 if (copy_from_user(&sr, argp, sizeof(sr))) in ioctl_preallocate()
504 static int ioctl_fionbio(struct file *filp, int __user *argp) in ioctl_fionbio() argument
509 error = get_user(on, argp); in ioctl_fionbio()
528 int __user *argp) in ioctl_fioasync() argument
533 error = get_user(on, argp); in ioctl_fioasync()
581 struct file_dedupe_range __user *argp = arg; in ioctl_file_dedupe_range() local
587 if (get_user(count, &argp->dest_count)) { in ioctl_file_dedupe_range()
[all …]
/linux-4.19.296/drivers/char/
Dppdev.c361 void __user *argp = (void __user *)arg; in pp_do_ioctl() local
423 if (copy_from_user(&mode, argp, sizeof(mode))) in pp_do_ioctl()
445 if (copy_to_user(argp, &mode, sizeof(mode))) in pp_do_ioctl()
453 if (copy_from_user(&phase, argp, sizeof(phase))) in pp_do_ioctl()
472 if (copy_to_user(argp, &phase, sizeof(phase))) in pp_do_ioctl()
486 if (copy_to_user(argp, &modes, sizeof(modes))) in pp_do_ioctl()
494 if (copy_from_user(&uflags, argp, sizeof(uflags))) in pp_do_ioctl()
505 if (copy_to_user(argp, &uflags, sizeof(uflags))) in pp_do_ioctl()
531 if (copy_to_user(argp, &reg, sizeof(reg))) in pp_do_ioctl()
536 if (copy_to_user(argp, &reg, sizeof(reg))) in pp_do_ioctl()
[all …]
/linux-4.19.296/block/
Dioctl.c459 struct hd_geometry __user *argp) in blkdev_getgeo() argument
465 if (!argp) in blkdev_getgeo()
479 if (copy_to_user(argp, &geo, sizeof(geo))) in blkdev_getgeo()
486 int __user *argp) in blkdev_bszset() argument
492 if (!argp) in blkdev_bszset()
494 if (get_user(n, argp)) in blkdev_bszset()
515 void __user *argp = (void __user *)arg; in blkdev_ioctl() local
536 return blkdev_getgeo(bdev, argp); in blkdev_ioctl()
571 return blkdev_bszset(bdev, mode, argp); in blkdev_ioctl()
573 return blkpg_ioctl(bdev, argp); in blkdev_ioctl()
[all …]
Dblk-zoned.c306 void __user *argp = (void __user *)arg; in blkdev_report_zones_ioctl() local
312 if (!argp) in blkdev_report_zones_ioctl()
322 if (copy_from_user(&rep, argp, sizeof(struct blk_zone_report))) in blkdev_report_zones_ioctl()
342 if (copy_to_user(argp, &rep, sizeof(struct blk_zone_report))) { in blkdev_report_zones_ioctl()
348 if (copy_to_user(argp + sizeof(struct blk_zone_report), zones, in blkdev_report_zones_ioctl()
366 void __user *argp = (void __user *)arg; in blkdev_reset_zones_ioctl() local
370 if (!argp) in blkdev_reset_zones_ioctl()
383 if (copy_from_user(&zrange, argp, sizeof(struct blk_zone_range))) in blkdev_reset_zones_ioctl()
/linux-4.19.296/drivers/s390/char/
Dsclp_ctl.c96 void __user *argp; in sclp_ctl_ioctl() local
99 argp = compat_ptr(arg); in sclp_ctl_ioctl()
101 argp = (void __user *) arg; in sclp_ctl_ioctl()
104 return sclp_ctl_ioctl_sccb(argp); in sclp_ctl_ioctl()
Dvmcp.c202 int __user *argp; in vmcp_ioctl() local
206 argp = compat_ptr(arg); in vmcp_ioctl()
208 argp = (int __user *)arg; in vmcp_ioctl()
213 ret = put_user(session->resp_code, argp); in vmcp_ioctl()
217 ret = get_user(session->bufsize, argp); in vmcp_ioctl()
226 ret = put_user(session->resp_size, argp); in vmcp_ioctl()
/linux-4.19.296/drivers/fsi/
Dfsi-scom.c454 static int scom_raw_read(struct scom_device *scom, void __user *argp) in scom_raw_read() argument
460 if (copy_from_user(&acc, argp, sizeof(struct scom_access))) in scom_raw_read()
467 if (copy_to_user(argp, &acc, sizeof(struct scom_access))) in scom_raw_read()
472 static int scom_raw_write(struct scom_device *scom, void __user *argp) in scom_raw_write() argument
479 if (copy_from_user(&acc, argp, sizeof(struct scom_access))) in scom_raw_write()
498 if (copy_to_user(argp, &acc, sizeof(struct scom_access))) in scom_raw_write()
503 static int scom_reset(struct scom_device *scom, void __user *argp) in scom_reset() argument
508 if (get_user(flags, (__u32 __user *)argp)) in scom_reset()
519 static int scom_check(struct scom_device *scom, void __user *argp) in scom_check() argument
522 return put_user(SCOM_CHECK_SUPPORTED, (__u32 __user *)argp); in scom_check()
[all …]
/linux-4.19.296/fs/hfsplus/
Dioctl.c139 void __user *argp = (void __user *)arg; in hfsplus_ioctl() local
143 return hfsplus_ioctl_getflags(file, argp); in hfsplus_ioctl()
145 return hfsplus_ioctl_setflags(file, argp); in hfsplus_ioctl()
147 return hfsplus_ioctl_bless(file, argp); in hfsplus_ioctl()
/linux-4.19.296/fs/btrfs/
Dioctl.c2246 void __user *argp) in btrfs_ioctl_tree_search() argument
2257 uargs = (struct btrfs_ioctl_search_args __user *)argp; in btrfs_ioctl_tree_search()
2280 void __user *argp) in btrfs_ioctl_tree_search_v2() argument
2293 uarg = (struct btrfs_ioctl_search_args_v2 __user *)argp; in btrfs_ioctl_tree_search_v2()
2568 void __user *argp) in btrfs_ioctl_ino_lookup() argument
2574 args = memdup_user(argp, sizeof(*args)); in btrfs_ioctl_ino_lookup()
2602 if (ret == 0 && copy_to_user(argp, args, sizeof(*args))) in btrfs_ioctl_ino_lookup()
2621 static int btrfs_ioctl_ino_lookup_user(struct file *file, void __user *argp) in btrfs_ioctl_ino_lookup_user() argument
2627 args = memdup_user(argp, sizeof(*args)); in btrfs_ioctl_ino_lookup_user()
2645 if (ret == 0 && copy_to_user(argp, args, sizeof(*args))) in btrfs_ioctl_ino_lookup_user()
[all …]

123