Home
last modified time | relevance | path

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

12

/fs/nfsd/
Dnfs3proc.c46 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd3_proc_getattr() local
50 SVCFH_fmt(&argp->fh)); in nfsd3_proc_getattr()
52 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr()
69 struct nfsd3_sattrargs *argp = rqstp->rq_argp; in nfsd3_proc_setattr() local
72 .na_iattr = &argp->attrs, in nfsd3_proc_setattr()
76 SVCFH_fmt(&argp->fh)); in nfsd3_proc_setattr()
78 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr()
80 argp->check_guard, argp->guardtime); in nfsd3_proc_setattr()
90 struct nfsd3_diropargs *argp = rqstp->rq_argp; in nfsd3_proc_lookup() local
94 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()
60 SVCFH_fmt(&argp->fh), in nfsd_proc_setattr()
61 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr()
63 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr()
131 struct nfsd_diropargs *argp = rqstp->rq_argp; in nfsd_proc_lookup() local
135 SVCFH_fmt(&argp->fh), argp->len, argp->name); in nfsd_proc_lookup()
[all …]
Dnfs4xdr.c121 svcxdr_tmpalloc(struct nfsd4_compoundargs *argp, u32 len) in svcxdr_tmpalloc() argument
128 tb->next = argp->to_free; in svcxdr_tmpalloc()
129 argp->to_free = tb; in svcxdr_tmpalloc()
141 svcxdr_dupstr(struct nfsd4_compoundargs *argp, void *buf, u32 len) in svcxdr_dupstr() argument
143 char *p = svcxdr_tmpalloc(argp, len + 1); in svcxdr_dupstr()
153 svcxdr_savemem(struct nfsd4_compoundargs *argp, __be32 *p, u32 len) in svcxdr_savemem() argument
161 if (p != argp->xdr->scratch.iov_base) in svcxdr_savemem()
164 tmp = svcxdr_tmpalloc(argp, len); in svcxdr_savemem()
180 nfsd4_decode_ignored_string(struct nfsd4_compoundargs *argp, u32 maxlen) in nfsd4_decode_ignored_string() argument
184 if (xdr_stream_decode_u32(argp->xdr, &len) < 0) in nfsd4_decode_ignored_string()
[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()
117 argp->acl_access); in nfsacld_proc_setacl()
121 argp->acl_default); in nfsacld_proc_setacl()
[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()
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 …]
/fs/lockd/
Dxdr4.c152 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_decode_testargs() local
155 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_testargs()
159 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlm4svc_decode_testargs()
162 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_testargs()
170 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_decode_lockargs() local
173 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_lockargs()
175 if (xdr_stream_decode_bool(xdr, &argp->block) < 0) in nlm4svc_decode_lockargs()
179 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlm4svc_decode_lockargs()
182 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_lockargs()
183 if (xdr_stream_decode_bool(xdr, &argp->reclaim) < 0) in nlm4svc_decode_lockargs()
[all …]
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.fl_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.fl_type = F_WRLCK; in nlmsvc_decode_lockargs()
188 if (xdr_stream_decode_bool(xdr, &argp->reclaim) < 0) in nlmsvc_decode_lockargs()
[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()
41 || (argp->monitor && nsm_monitor(host) < 0)) in nlm4svc_retrieve_args()
96 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_test() local
103 resp->cookie = argp->cookie; in __nlm4svc_proc_test()
106 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_test()
109 test_owner = argp->lock.fl.fl_owner; in __nlm4svc_proc_test()
111 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in __nlm4svc_proc_test()
132 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_lock() local
139 resp->cookie = argp->cookie; in __nlm4svc_proc_lock()
[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()
67 || (argp->monitor && nsm_monitor(host) < 0)) in nlmsvc_retrieve_args()
117 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_test() local
124 resp->cookie = argp->cookie; in __nlmsvc_proc_test()
127 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test()
130 test_owner = argp->lock.fl.fl_owner; in __nlmsvc_proc_test()
133 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test()
155 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_lock() local
162 resp->cookie = argp->cookie; in __nlmsvc_proc_lock()
[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.c131 struct nlm_args *argp = &req->a_args; in nlmclnt_setlockargs() local
132 struct nlm_lock *lock = &argp->lock; in nlmclnt_setlockargs()
135 nlmclnt_next_cookie(&argp->cookie); in nlmclnt_setlockargs()
268 struct nlm_args *argp = &req->a_args; in nlmclnt_call() local
271 .rpc_argp = argp, in nlmclnt_call()
281 if (host->h_reclaiming && !argp->reclaim) in nlmclnt_call()
311 if (argp->reclaim) { in nlmclnt_call()
317 if (!argp->reclaim) { in nlmclnt_call()
/fs/nilfs2/
Dioctl.c163 static int nilfs_ioctl_getversion(struct inode *inode, void __user *argp) in nilfs_ioctl_getversion() argument
165 return put_user(inode->i_generation, (int __user *)argp); in nilfs_ioctl_getversion()
188 unsigned int cmd, void __user *argp) in nilfs_ioctl_change_cpmode() argument
203 if (copy_from_user(&cpmode, argp, sizeof(cpmode))) in nilfs_ioctl_change_cpmode()
243 unsigned int cmd, void __user *argp) in nilfs_ioctl_delete_checkpoint() argument
258 if (copy_from_user(&cno, argp, sizeof(cno))) in nilfs_ioctl_delete_checkpoint()
322 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_cpstat() argument
334 if (copy_to_user(argp, &cpstat, sizeof(cpstat))) in nilfs_ioctl_get_cpstat()
389 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_sustat() argument
401 if (copy_to_user(argp, &sustat, sizeof(sustat))) in nilfs_ioctl_get_sustat()
[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()
270 static int ioctl_preallocate(struct file *filp, int mode, void __user *argp) in ioctl_preallocate() argument
275 if (copy_from_user(&sr, argp, sizeof(sr))) in ioctl_preallocate()
299 struct space_resv_32 __user *argp) in compat_ioctl_preallocate() argument
304 if (copy_from_user(&sr, argp, sizeof(sr))) in compat_ioctl_preallocate()
342 static int ioctl_fionbio(struct file *filp, int __user *argp) in ioctl_fionbio() argument
347 error = get_user(on, argp); in ioctl_fionbio()
366 int __user *argp) in ioctl_fioasync() argument
371 error = get_user(on, argp); in ioctl_fioasync()
[all …]
Dfcntl.c298 u64 __user *argp = (u64 __user *)arg; in fcntl_get_rw_hint() local
301 if (copy_to_user(argp, &hint, sizeof(*argp))) in fcntl_get_rw_hint()
310 u64 __user *argp = (u64 __user *)arg; in fcntl_set_rw_hint() local
313 if (copy_from_user(&hint, argp, sizeof(hint))) in fcntl_set_rw_hint()
333 void __user *argp = (void __user *)arg; in do_fcntl() local
363 if (copy_from_user(&flock, argp, sizeof(flock))) in do_fcntl()
366 if (!err && copy_to_user(argp, &flock, sizeof(flock))) in do_fcntl()
377 if (copy_from_user(&flock, argp, sizeof(flock))) in do_fcntl()
484 void __user *argp = (void __user *)arg; in SYSCALL_DEFINE3() local
505 if (copy_from_user(&flock, argp, sizeof(flock))) in SYSCALL_DEFINE3()
[all …]
Dnsfs.c194 uid_t __user *argp; in ns_ioctl() local
210 argp = (uid_t __user *) arg; in ns_ioctl()
212 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.c28 __be32 nfs4_callback_getattr(void *argp, void *resp, in nfs4_callback_getattr() argument
31 struct cb_getattrargs *args = argp; in nfs4_callback_getattr()
78 __be32 nfs4_callback_recall(void *argp, void *resp, in nfs4_callback_recall() argument
81 struct cb_recallargs *args = argp; in nfs4_callback_recall()
336 __be32 nfs4_callback_layoutrecall(void *argp, void *resp, in nfs4_callback_layoutrecall() argument
339 struct cb_layoutrecallargs *args = argp; in nfs4_callback_layoutrecall()
358 __be32 nfs4_callback_devicenotify(void *argp, void *resp, in nfs4_callback_devicenotify() argument
361 struct cb_devicenotifyargs *args = argp; in nfs4_callback_devicenotify()
488 __be32 nfs4_callback_sequence(void *argp, void *resp, in nfs4_callback_sequence() argument
491 struct cb_sequenceargs *args = argp; in nfs4_callback_sequence()
[all …]
Dcallback_xdr.c177 struct xdr_stream *xdr, void *argp) in decode_getattr_args() argument
179 struct cb_getattrargs *args = argp; in decode_getattr_args()
189 struct xdr_stream *xdr, void *argp) in decode_recall_args() argument
191 struct cb_recallargs *args = argp; in decode_recall_args()
213 struct xdr_stream *xdr, void *argp) in decode_layoutrecall_args() argument
215 struct cb_layoutrecallargs *args = argp; in decode_layoutrecall_args()
258 void *argp) in decode_devicenotify_args() argument
260 struct cb_devicenotifyargs *args = argp; in decode_devicenotify_args()
397 void *argp) in decode_cb_sequence_args() argument
399 struct cb_sequenceargs *args = argp; in decode_cb_sequence_args()
[all …]
Dread.c242 struct nfs_pgio_args *argp = &hdr->args; in nfs_readpage_retry() local
251 nfs_set_pgio_error(hdr, -EIO, argp->offset); in nfs_readpage_retry()
263 argp->offset += resp->count; in nfs_readpage_retry()
264 argp->pgbase += resp->count; in nfs_readpage_retry()
265 argp->count -= resp->count; in nfs_readpage_retry()
Dwrite.c1509 struct nfs_pgio_args *argp = &hdr->args; in nfs_writeback_check_extend() local
1511 u64 size = argp->offset + resp->count; in nfs_writeback_check_extend()
1611 struct nfs_pgio_args *argp = &hdr->args; in nfs_writeback_result() local
1614 if (resp->count < argp->count) { in nfs_writeback_result()
1625 argp->count); in nfs_writeback_result()
1628 nfs_set_pgio_error(hdr, -EIO, argp->offset); in nfs_writeback_result()
1643 argp->offset += resp->count; in nfs_writeback_result()
1644 argp->pgbase += resp->count; in nfs_writeback_result()
1645 argp->count -= resp->count; in nfs_writeback_result()
1650 argp->stable = NFS_FILE_SYNC; in nfs_writeback_result()
/fs/btrfs/
Dioctl.c1762 void __user *argp) in btrfs_ioctl_tree_search() argument
1764 struct btrfs_ioctl_search_args __user *uargs = argp; in btrfs_ioctl_tree_search()
1792 void __user *argp) in btrfs_ioctl_tree_search_v2() argument
1794 struct btrfs_ioctl_search_args_v2 __user *uarg = argp; in btrfs_ioctl_tree_search_v2()
2070 void __user *argp) in btrfs_ioctl_ino_lookup() argument
2075 args = memdup_user(argp, sizeof(*args)); in btrfs_ioctl_ino_lookup()
2101 if (ret == 0 && copy_to_user(argp, args, sizeof(*args))) in btrfs_ioctl_ino_lookup()
2120 static int btrfs_ioctl_ino_lookup_user(struct file *file, void __user *argp) in btrfs_ioctl_ino_lookup_user() argument
2126 args = memdup_user(argp, sizeof(*args)); in btrfs_ioctl_ino_lookup_user()
2144 if (ret == 0 && copy_to_user(argp, args, sizeof(*args))) in btrfs_ioctl_ino_lookup_user()
[all …]
/fs/ocfs2/
Dioctl.c843 void __user *argp = (void __user *)arg; in ocfs2_ioctl() local
901 if (copy_from_user(&args, argp, sizeof(args))) in ocfs2_ioctl()
913 if (copy_from_user(&info, argp, sizeof(struct ocfs2_info))) in ocfs2_ioctl()
930 if (copy_from_user(&range, argp, sizeof(range))) in ocfs2_ioctl()
939 if (copy_to_user(argp, &range, sizeof(range))) in ocfs2_ioctl()
945 return ocfs2_ioctl_move_extents(filp, argp); in ocfs2_ioctl()
958 void __user *argp = (void __user *)arg; in ocfs2_compat_ioctl() local
970 if (copy_from_user(&args, argp, sizeof(args))) in ocfs2_compat_ioctl()
977 if (copy_from_user(&info, argp, sizeof(struct ocfs2_info))) in ocfs2_compat_ioctl()
Dmove_extents.h10 int ocfs2_ioctl_move_extents(struct file *filp, void __user *argp);
/fs/hfsplus/
Dioctl.c62 void __user *argp = (void __user *)arg; in hfsplus_ioctl() local
66 return hfsplus_ioctl_bless(file, argp); in hfsplus_ioctl()

12