Home
last modified time | relevance | path

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

12

/fs/nfsd/
Dnfs3proc.c44 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd3_proc_getattr() local
48 SVCFH_fmt(&argp->fh)); in nfsd3_proc_getattr()
50 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr()
67 struct nfsd3_sattrargs *argp = rqstp->rq_argp; in nfsd3_proc_setattr() local
71 SVCFH_fmt(&argp->fh)); in nfsd3_proc_setattr()
73 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr()
74 resp->status = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr()
75 argp->check_guard, argp->guardtime); in nfsd3_proc_setattr()
85 struct nfsd3_diropargs *argp = rqstp->rq_argp; in nfsd3_proc_lookup() local
89 SVCFH_fmt(&argp->fh), in nfsd3_proc_lookup()
[all …]
Dnfsproc.c29 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd_proc_getattr() local
32 dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_getattr()
34 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr()
51 struct nfsd_sattrargs *argp = rqstp->rq_argp; in nfsd_proc_setattr() local
53 struct iattr *iap = &argp->attrs; in nfsd_proc_setattr()
57 SVCFH_fmt(&argp->fh), in nfsd_proc_setattr()
58 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr()
60 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr()
128 struct nfsd_diropargs *argp = rqstp->rq_argp; in nfsd_proc_lookup() local
132 SVCFH_fmt(&argp->fh), argp->len, argp->name); in nfsd_proc_lookup()
[all …]
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()
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.c119 if (!(x = (p==argp->tmp || p == argp->tmpp) ? \
120 savemem(argp, p, nbytes) : \
135 if (nbytes <= (u32)((char *)argp->end - (char *)argp->p)) { \
136 p = argp->p; \
137 argp->p += XDR_QUADLEN(nbytes); \
138 } else if (!(p = read_buf(argp, nbytes))) { \
145 static void next_decode_page(struct nfsd4_compoundargs *argp) in next_decode_page() argument
147 argp->p = page_address(argp->pagelist[0]); in next_decode_page()
148 argp->pagelist++; in next_decode_page()
149 if (argp->pagelen < PAGE_SIZE) { in next_decode_page()
[all …]
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()
106 error = set_posix_acl(inode, ACL_TYPE_ACCESS, argp->acl_access); in nfsd3_proc_setacl()
109 error = set_posix_acl(inode, ACL_TYPE_DEFAULT, argp->acl_default); in nfsd3_proc_setacl()
119 posix_acl_release(argp->acl_access); in nfsd3_proc_setacl()
120 posix_acl_release(argp->acl_default); in nfsd3_proc_setacl()
/fs/lockd/
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()
114 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_test() local
120 resp->cookie = argp->cookie; in __nlmsvc_proc_test()
123 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test()
127 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test()
134 nlmsvc_release_lockowner(&argp->lock); in __nlmsvc_proc_test()
149 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_lock() local
156 resp->cookie = argp->cookie; in __nlmsvc_proc_lock()
[all …]
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()
84 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_test() local
90 resp->cookie = argp->cookie; in __nlm4svc_proc_test()
93 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_test()
97 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in __nlm4svc_proc_test()
103 nlmsvc_release_lockowner(&argp->lock); in __nlm4svc_proc_test()
118 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_lock() local
125 resp->cookie = argp->cookie; in __nlm4svc_proc_lock()
[all …]
Dxdr.c186 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_decode_testargs() local
189 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_testargs()
193 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_testargs()
196 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_testargs()
214 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_decode_lockargs() local
217 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_lockargs()
219 argp->block = ntohl(*p++); in nlmsvc_decode_lockargs()
221 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_lockargs()
224 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_lockargs()
225 argp->reclaim = ntohl(*p++); in nlmsvc_decode_lockargs()
[all …]
Dxdr4.c183 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_decode_testargs() local
186 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_testargs()
190 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_testargs()
193 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_testargs()
211 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_decode_lockargs() local
214 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_lockargs()
216 argp->block = ntohl(*p++); in nlm4svc_decode_lockargs()
218 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_lockargs()
221 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_lockargs()
222 argp->reclaim = ntohl(*p++); in nlm4svc_decode_lockargs()
[all …]
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 …]
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()
Dclntproc.c128 struct nlm_args *argp = &req->a_args; in nlmclnt_setlockargs() local
129 struct nlm_lock *lock = &argp->lock; in nlmclnt_setlockargs()
132 nlmclnt_next_cookie(&argp->cookie); in nlmclnt_setlockargs()
265 struct nlm_args *argp = &req->a_args; in nlmclnt_call() local
268 .rpc_argp = argp, in nlmclnt_call()
278 if (host->h_reclaiming && !argp->reclaim) in nlmclnt_call()
308 if (argp->reclaim) { in nlmclnt_call()
314 if (!argp->reclaim) { in nlmclnt_call()
/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()
178 static int nilfs_ioctl_getversion(struct inode *inode, void __user *argp) in nilfs_ioctl_getversion() argument
180 return put_user(inode->i_generation, (int __user *)argp); in nilfs_ioctl_getversion()
203 unsigned int cmd, void __user *argp) in nilfs_ioctl_change_cpmode() argument
218 if (copy_from_user(&cpmode, argp, sizeof(cpmode))) in nilfs_ioctl_change_cpmode()
258 unsigned int cmd, void __user *argp) in nilfs_ioctl_delete_checkpoint() argument
273 if (copy_from_user(&cno, argp, sizeof(cno))) in nilfs_ioctl_delete_checkpoint()
[all …]
/fs/
Dioctl.c253 struct file_clone_range __user *argp) in ioctl_file_clone_range() argument
257 if (copy_from_user(&args, argp, sizeof(args))) in ioctl_file_clone_range()
473 static int ioctl_preallocate(struct file *filp, int mode, void __user *argp) in ioctl_preallocate() argument
478 if (copy_from_user(&sr, argp, sizeof(sr))) in ioctl_preallocate()
502 struct space_resv_32 __user *argp) in compat_ioctl_preallocate() argument
507 if (copy_from_user(&sr, argp, sizeof(sr))) in compat_ioctl_preallocate()
545 static int ioctl_fionbio(struct file *filp, int __user *argp) in ioctl_fionbio() argument
550 error = get_user(on, argp); in ioctl_fionbio()
569 int __user *argp) in ioctl_fioasync() argument
574 error = get_user(on, argp); in ioctl_fioasync()
[all …]
Dfcntl.c288 u64 __user *argp = (u64 __user *)arg; in fcntl_rw_hint() local
295 if (copy_to_user(argp, &h, sizeof(*argp))) in fcntl_rw_hint()
299 if (copy_from_user(&h, argp, sizeof(h))) in fcntl_rw_hint()
311 if (copy_to_user(argp, &h, sizeof(*argp))) in fcntl_rw_hint()
315 if (copy_from_user(&h, argp, sizeof(h))) in fcntl_rw_hint()
333 void __user *argp = (void __user *)arg; in do_fcntl() local
362 if (copy_from_user(&flock, argp, sizeof(flock))) in do_fcntl()
365 if (!err && copy_to_user(argp, &flock, sizeof(flock))) in do_fcntl()
376 if (copy_from_user(&flock, argp, sizeof(flock))) in do_fcntl()
483 void __user *argp = (void __user *)arg; in SYSCALL_DEFINE3() local
[all …]
Dnsfs.c193 uid_t __user *argp; in ns_ioctl() local
209 argp = (uid_t __user *) arg; in ns_ioctl()
211 return put_user(uid, argp); in ns_ioctl()
/fs/nfs/
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,
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()
73 __be32 nfs4_callback_recall(void *argp, void *resp, in nfs4_callback_recall() argument
76 struct cb_recallargs *args = argp; in nfs4_callback_recall()
331 __be32 nfs4_callback_layoutrecall(void *argp, void *resp, in nfs4_callback_layoutrecall() argument
334 struct cb_layoutrecallargs *args = argp; in nfs4_callback_layoutrecall()
353 __be32 nfs4_callback_devicenotify(void *argp, void *resp, in nfs4_callback_devicenotify() argument
356 struct cb_devicenotifyargs *args = argp; in nfs4_callback_devicenotify()
483 __be32 nfs4_callback_sequence(void *argp, void *resp, in nfs4_callback_sequence() argument
486 struct cb_sequenceargs *args = argp; in nfs4_callback_sequence()
[all …]
Dcallback_xdr.c178 struct xdr_stream *xdr, void *argp) in decode_getattr_args() argument
180 struct cb_getattrargs *args = argp; in decode_getattr_args()
190 struct xdr_stream *xdr, void *argp) in decode_recall_args() argument
192 struct cb_recallargs *args = argp; in decode_recall_args()
214 struct xdr_stream *xdr, void *argp) in decode_layoutrecall_args() argument
216 struct cb_layoutrecallargs *args = argp; in decode_layoutrecall_args()
259 void *argp) in decode_devicenotify_args() argument
261 struct cb_devicenotifyargs *args = argp; in decode_devicenotify_args()
398 void *argp) in decode_cb_sequence_args() argument
400 struct cb_sequenceargs *args = argp; in decode_cb_sequence_args()
[all …]
Dread.c262 struct nfs_pgio_args *argp = &hdr->args; in nfs_readpage_retry() local
271 nfs_set_pgio_error(hdr, -EIO, argp->offset); in nfs_readpage_retry()
283 argp->offset += resp->count; in nfs_readpage_retry()
284 argp->pgbase += resp->count; in nfs_readpage_retry()
285 argp->count -= resp->count; in nfs_readpage_retry()
Dwrite.c1497 struct nfs_pgio_args *argp = &hdr->args; in nfs_writeback_check_extend() local
1499 u64 size = argp->offset + resp->count; in nfs_writeback_check_extend()
1587 struct nfs_pgio_args *argp = &hdr->args; in nfs_writeback_result() local
1590 if (resp->count < argp->count) { in nfs_writeback_result()
1601 argp->count); in nfs_writeback_result()
1604 nfs_set_pgio_error(hdr, -EIO, argp->offset); in nfs_writeback_result()
1619 argp->offset += resp->count; in nfs_writeback_result()
1620 argp->pgbase += resp->count; in nfs_writeback_result()
1621 argp->count -= resp->count; in nfs_writeback_result()
1626 argp->stable = NFS_FILE_SYNC; in nfs_writeback_result()
/fs/btrfs/
Dioctl.c2315 void __user *argp) in btrfs_ioctl_tree_search() argument
2326 uargs = (struct btrfs_ioctl_search_args __user *)argp; in btrfs_ioctl_tree_search()
2349 void __user *argp) in btrfs_ioctl_tree_search_v2() argument
2362 uarg = (struct btrfs_ioctl_search_args_v2 __user *)argp; in btrfs_ioctl_tree_search_v2()
2642 void __user *argp) in btrfs_ioctl_ino_lookup() argument
2648 args = memdup_user(argp, sizeof(*args)); in btrfs_ioctl_ino_lookup()
2676 if (ret == 0 && copy_to_user(argp, args, sizeof(*args))) in btrfs_ioctl_ino_lookup()
2695 static int btrfs_ioctl_ino_lookup_user(struct file *file, void __user *argp) in btrfs_ioctl_ino_lookup_user() argument
2701 args = memdup_user(argp, sizeof(*args)); in btrfs_ioctl_ino_lookup_user()
2719 if (ret == 0 && copy_to_user(argp, args, sizeof(*args))) in btrfs_ioctl_ino_lookup_user()
[all …]
/fs/hfsplus/
Dioctl.c142 void __user *argp = (void __user *)arg; in hfsplus_ioctl() local
146 return hfsplus_ioctl_getflags(file, argp); in hfsplus_ioctl()
148 return hfsplus_ioctl_setflags(file, argp); in hfsplus_ioctl()
150 return hfsplus_ioctl_bless(file, argp); in hfsplus_ioctl()
/fs/ocfs2/
Dioctl.c849 void __user *argp = (void __user *)arg; in ocfs2_ioctl() local
906 if (copy_from_user(&args, argp, sizeof(args))) in ocfs2_ioctl()
914 if (copy_from_user(&info, argp, sizeof(struct ocfs2_info))) in ocfs2_ioctl()
931 if (copy_from_user(&range, argp, sizeof(range))) in ocfs2_ioctl()
940 if (copy_to_user(argp, &range, sizeof(range))) in ocfs2_ioctl()
946 return ocfs2_ioctl_move_extents(filp, argp); in ocfs2_ioctl()
959 void __user *argp = (void __user *)arg; in ocfs2_compat_ioctl() local
977 if (copy_from_user(&args, argp, sizeof(args))) in ocfs2_compat_ioctl()
984 if (copy_from_user(&info, argp, sizeof(struct ocfs2_info))) in ocfs2_compat_ioctl()
Dmove_extents.h12 int ocfs2_ioctl_move_extents(struct file *filp, void __user *argp);

12