Home
last modified time | relevance | path

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

12

/fs/nfsd/
Dnfs3proc.c34 nfsd3_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfsd3_proc_null() argument
43 nfsd3_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, in nfsd3_proc_getattr() argument
49 SVCFH_fmt(&argp->fh)); in nfsd3_proc_getattr()
51 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr()
66 nfsd3_proc_setattr(struct svc_rqst *rqstp, struct nfsd3_sattrargs *argp, in nfsd3_proc_setattr() argument
72 SVCFH_fmt(&argp->fh)); in nfsd3_proc_setattr()
74 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr()
75 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr()
76 argp->check_guard, argp->guardtime); in nfsd3_proc_setattr()
84 nfsd3_proc_lookup(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, in nfsd3_proc_lookup() argument
[all …]
Dnfsproc.c20 nfsd_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfsd_proc_null() argument
42 nfsd_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, in nfsd_proc_getattr() argument
46 dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_getattr()
48 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr()
59 nfsd_proc_setattr(struct svc_rqst *rqstp, struct nfsd_sattrargs *argp, in nfsd_proc_setattr() argument
62 struct iattr *iap = &argp->attrs; in nfsd_proc_setattr()
67 SVCFH_fmt(&argp->fh), in nfsd_proc_setattr()
68 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr()
70 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr()
127 nfsd_proc_lookup(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, in nfsd_proc_lookup() argument
[all …]
Dnfs2acl.c22 nfsacld_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfsacld_proc_null() argument
31 struct nfsd3_getaclargs *argp, struct nfsd3_getaclres *resp) in nfsacld_proc_getacl() argument
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()
49 resp->mask = argp->mask; in nfsacld_proc_getacl()
91 struct nfsd3_setaclargs *argp, in nfsacld_proc_setacl() argument
99 dprintk("nfsd: SETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_setacl()
101 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_setacl()
114 error = set_posix_acl(inode, ACL_TYPE_ACCESS, argp->acl_access); in nfsacld_proc_setacl()
[all …]
Dnfs4xdr.c101 if (!(x = (p==argp->tmp || p == argp->tmpp) ? \
102 savemem(argp, p, nbytes) : \
117 if (nbytes <= (u32)((char *)argp->end - (char *)argp->p)) { \
118 p = argp->p; \
119 argp->p += XDR_QUADLEN(nbytes); \
120 } else if (!(p = read_buf(argp, nbytes))) { \
127 static void next_decode_page(struct nfsd4_compoundargs *argp) in next_decode_page() argument
129 argp->p = page_address(argp->pagelist[0]); in next_decode_page()
130 argp->pagelist++; in next_decode_page()
131 if (argp->pagelen < PAGE_SIZE) { in next_decode_page()
[all …]
Dnfs3acl.c21 nfsd3_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfsd3_proc_null() argument
30 struct nfsd3_getaclargs *argp, struct nfsd3_getaclres *resp) in nfsd3_proc_getacl() argument
37 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getacl()
44 if (argp->mask & ~NFS_ACL_MASK) in nfsd3_proc_getacl()
46 resp->mask = argp->mask; in nfsd3_proc_getacl()
84 struct nfsd3_setaclargs *argp, in nfsd3_proc_setacl() argument
92 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setacl()
105 error = set_posix_acl(inode, ACL_TYPE_ACCESS, argp->acl_access); in nfsd3_proc_setacl()
108 error = set_posix_acl(inode, ACL_TYPE_DEFAULT, argp->acl_default); in nfsd3_proc_setacl()
118 posix_acl_release(argp->acl_access); in nfsd3_proc_setacl()
[all …]
/fs/lockd/
Dsvc4proc.c22 nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_retrieve_args() argument
27 struct nlm_lock *lock = &argp->lock; in nlm4svc_retrieve_args()
36 || (argp->monitor && nsm_monitor(host) < 0)) in nlm4svc_retrieve_args()
65 nlm4svc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nlm4svc_proc_null() argument
75 nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_test() argument
83 resp->cookie = argp->cookie; in nlm4svc_proc_test()
86 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_test()
90 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in nlm4svc_proc_test()
102 nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_lock() argument
111 resp->cookie = argp->cookie; in nlm4svc_proc_lock()
[all …]
Dsvcproc.c51 nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_retrieve_args() argument
56 struct nlm_lock *lock = &argp->lock; in nlmsvc_retrieve_args()
65 || (argp->monitor && nsm_monitor(host) < 0)) in nlmsvc_retrieve_args()
95 nlmsvc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nlmsvc_proc_null() argument
105 nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_test() argument
113 resp->cookie = argp->cookie; in nlmsvc_proc_test()
116 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_test()
120 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in nlmsvc_proc_test()
133 nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_lock() argument
142 resp->cookie = argp->cookie; in nlmsvc_proc_lock()
[all …]
Dxdr4.c182 nlm4svc_decode_testargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlm4svc_decode_testargs() argument
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()
207 nlm4svc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlm4svc_decode_lockargs() argument
211 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_lockargs()
213 argp->block = ntohl(*p++); in nlm4svc_decode_lockargs()
215 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_lockargs()
218 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_lockargs()
219 argp->reclaim = ntohl(*p++); in nlm4svc_decode_lockargs()
[all …]
Dxdr.c185 nlmsvc_decode_testargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlmsvc_decode_testargs() argument
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()
210 nlmsvc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlmsvc_decode_lockargs() argument
214 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_lockargs()
216 argp->block = ntohl(*p++); in nlmsvc_decode_lockargs()
218 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_lockargs()
221 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_lockargs()
222 argp->reclaim = ntohl(*p++); in nlmsvc_decode_lockargs()
[all …]
Dsvcshare.c28 struct nlm_args *argp) in nlmsvc_share_file() argument
31 struct xdr_netobj *oh = &argp->lock.oh; in nlmsvc_share_file()
37 if ((argp->fsm_access & share->s_mode) in nlmsvc_share_file()
38 || (argp->fsm_mode & share->s_access )) in nlmsvc_share_file()
59 share->s_access = argp->fsm_access; in nlmsvc_share_file()
60 share->s_mode = argp->fsm_mode; in nlmsvc_share_file()
69 struct nlm_args *argp) in nlmsvc_unshare_file() argument
72 struct xdr_netobj *oh = &argp->lock.oh; in nlmsvc_unshare_file()
Dmon.c433 static void encode_mon_name(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_mon_name() argument
435 encode_nsm_string(xdr, argp->mon_name); in encode_mon_name()
444 static void encode_my_id(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_my_id() argument
448 encode_nsm_string(xdr, argp->nodename); in encode_my_id()
450 *p++ = cpu_to_be32(argp->prog); in encode_my_id()
451 *p++ = cpu_to_be32(argp->vers); in encode_my_id()
452 *p = cpu_to_be32(argp->proc); in encode_my_id()
459 static void encode_mon_id(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_mon_id() argument
461 encode_mon_name(xdr, argp); in encode_mon_id()
462 encode_my_id(xdr, argp); in encode_mon_id()
[all …]
Dclntproc.c126 struct nlm_args *argp = &req->a_args; in nlmclnt_setlockargs() local
127 struct nlm_lock *lock = &argp->lock; in nlmclnt_setlockargs()
130 nlmclnt_next_cookie(&argp->cookie); in nlmclnt_setlockargs()
253 struct nlm_args *argp = &req->a_args; in nlmclnt_call() local
256 .rpc_argp = argp, in nlmclnt_call()
266 if (host->h_reclaiming && !argp->reclaim) in nlmclnt_call()
296 if (argp->reclaim) { in nlmclnt_call()
302 if (!argp->reclaim) { in nlmclnt_call()
/fs/nilfs2/
Dioctl.c132 static int nilfs_ioctl_getflags(struct inode *inode, void __user *argp) in nilfs_ioctl_getflags() argument
136 return put_user(flags, (int __user *)argp); in nilfs_ioctl_getflags()
143 void __user *argp) in nilfs_ioctl_setflags() argument
152 if (get_user(flags, (int __user *)argp)) in nilfs_ioctl_setflags()
197 static int nilfs_ioctl_getversion(struct inode *inode, void __user *argp) in nilfs_ioctl_getversion() argument
199 return put_user(inode->i_generation, (int __user *)argp); in nilfs_ioctl_getversion()
222 unsigned int cmd, void __user *argp) in nilfs_ioctl_change_cpmode() argument
237 if (copy_from_user(&cpmode, argp, sizeof(cpmode))) in nilfs_ioctl_change_cpmode()
277 unsigned int cmd, void __user *argp) in nilfs_ioctl_delete_checkpoint() argument
292 if (copy_from_user(&cno, argp, sizeof(cno))) in nilfs_ioctl_delete_checkpoint()
[all …]
/fs/ncpfs/
Dioctl.c263 void __user *argp = (void __user *)arg; in __ncp_ioctl() local
273 if (copy_from_user(&request32, argp, sizeof(request32))) in __ncp_ioctl()
280 if (copy_from_user(&request, argp, sizeof(request))) in __ncp_ioctl()
334 return ncp_get_fs_info(server, inode, argp); in __ncp_ioctl()
337 return ncp_get_fs_info_v2(server, inode, argp); in __ncp_ioctl()
341 return ncp_get_compat_fs_info_v2(server, inode, argp); in __ncp_ioctl()
351 if (put_user(uid, (u16 __user *)argp)) in __ncp_ioctl()
358 if (put_user(uid, (u32 __user *)argp)) in __ncp_ioctl()
365 if (put_user(uid, (u64 __user *)argp)) in __ncp_ioctl()
397 if (!result && copy_to_user(argp, &sr, sizeof(sr))) in __ncp_ioctl()
[all …]
/fs/
Dioctl.c430 int ioctl_preallocate(struct file *filp, void __user *argp) in ioctl_preallocate() argument
435 if (copy_from_user(&sr, argp, sizeof(sr))) in ioctl_preallocate()
473 static int ioctl_fionbio(struct file *filp, int __user *argp) in ioctl_fionbio() argument
478 error = get_user(on, argp); in ioctl_fionbio()
497 int __user *argp) in ioctl_fioasync() argument
502 error = get_user(on, argp); in ioctl_fioasync()
559 int __user *argp = (int __user *)arg; in do_vfs_ioctl() local
572 error = ioctl_fionbio(filp, argp); in do_vfs_ioctl()
576 error = ioctl_fioasync(fd, filp, argp); in do_vfs_ioctl()
583 error = copy_to_user(argp, &res, sizeof(res)) ? in do_vfs_ioctl()
[all …]
Dcompat_ioctl.c119 compat_ulong_t __user *argp) in w_long() argument
128 if (!err && put_user(val, argp)) in w_long()
515 static int mt_ioctl_trans(unsigned int fd, unsigned int cmd, void __user *argp) in mt_ioctl_trans() argument
543 upos32 = argp; in mt_ioctl_trans()
547 umget32 = argp; in mt_ioctl_trans()
745 static int rtc_ioctl(unsigned fd, unsigned cmd, void __user *argp) in rtc_ioctl() argument
763 return put_user(val32, (unsigned int __user *)argp); in rtc_ioctl()
765 return sys_ioctl(fd, RTC_IRQP_SET, (unsigned long)argp); in rtc_ioctl()
767 return sys_ioctl(fd, RTC_EPOCH_SET, (unsigned long)argp); in rtc_ioctl()
1439 void __user *argp = compat_ptr(arg); in do_ioctl_trans() local
[all …]
/fs/btrfs/
Dioctl.c2159 void __user *argp) in btrfs_ioctl_tree_search() argument
2170 uargs = (struct btrfs_ioctl_search_args __user *)argp; in btrfs_ioctl_tree_search()
2193 void __user *argp) in btrfs_ioctl_tree_search_v2() argument
2206 uarg = (struct btrfs_ioctl_search_args_v2 __user *)argp; in btrfs_ioctl_tree_search_v2()
2322 void __user *argp) in btrfs_ioctl_ino_lookup() argument
2328 args = memdup_user(argp, sizeof(*args)); in btrfs_ioctl_ino_lookup()
2356 if (ret == 0 && copy_to_user(argp, args, sizeof(*args))) in btrfs_ioctl_ino_lookup()
2600 static int btrfs_ioctl_defrag(struct file *file, void __user *argp) in btrfs_ioctl_defrag() argument
2639 if (argp) { in btrfs_ioctl_defrag()
2640 if (copy_from_user(range, argp, in btrfs_ioctl_defrag()
[all …]
/fs/hfsplus/
Dioctl.c138 void __user *argp = (void __user *)arg; in hfsplus_ioctl() local
142 return hfsplus_ioctl_getflags(file, argp); in hfsplus_ioctl()
144 return hfsplus_ioctl_setflags(file, argp); in hfsplus_ioctl()
146 return hfsplus_ioctl_bless(file, argp); in hfsplus_ioctl()
/fs/ocfs2/
Dioctl.c857 void __user *argp = (void __user *)arg; in ocfs2_ioctl() local
914 if (copy_from_user(&args, argp, sizeof(args))) in ocfs2_ioctl()
922 if (copy_from_user(&info, argp, sizeof(struct ocfs2_info))) in ocfs2_ioctl()
939 if (copy_from_user(&range, argp, sizeof(range))) in ocfs2_ioctl()
948 if (copy_to_user(argp, &range, sizeof(range))) in ocfs2_ioctl()
954 return ocfs2_ioctl_move_extents(filp, argp); in ocfs2_ioctl()
967 void __user *argp = (void __user *)arg; in ocfs2_compat_ioctl() local
985 if (copy_from_user(&args, argp, sizeof(args))) in ocfs2_compat_ioctl()
992 if (copy_from_user(&info, argp, sizeof(struct ocfs2_info))) in ocfs2_compat_ioctl()
Dmove_extents.h20 int ocfs2_ioctl_move_extents(struct file *filp, void __user *argp);
Dmove_extents.c999 int ocfs2_ioctl_move_extents(struct file *filp, void __user *argp) in ocfs2_ioctl_move_extents() argument
1007 if (!argp) in ocfs2_ioctl_move_extents()
1034 if (copy_from_user(&range, argp, sizeof(range))) { in ocfs2_ioctl_move_extents()
1086 if (copy_to_user(argp, &range, sizeof(range))) in ocfs2_ioctl_move_extents()
/fs/nfs/
Dread.c239 struct nfs_pgio_args *argp = &hdr->args; in nfs_readpage_retry() local
246 nfs_set_pgio_error(hdr, -EIO, argp->offset); in nfs_readpage_retry()
258 argp->offset += resp->count; in nfs_readpage_retry()
259 argp->pgbase += resp->count; in nfs_readpage_retry()
260 argp->count -= resp->count; in nfs_readpage_retry()
Dnfs4file.c302 static long nfs42_ioctl_clone_range(struct file *dst_file, void __user *argp) in nfs42_ioctl_clone_range() argument
306 if (copy_from_user(&args, argp, sizeof(args))) in nfs42_ioctl_clone_range()
315 void __user *argp = (void __user *)arg; in nfs4_ioctl() local
321 return nfs42_ioctl_clone_range(file, argp); in nfs4_ioctl()
Dwrite.c1405 struct nfs_pgio_args *argp = &hdr->args; in nfs_writeback_check_extend() local
1407 u64 size = argp->offset + resp->count; in nfs_writeback_check_extend()
1490 struct nfs_pgio_args *argp = &hdr->args; in nfs_writeback_result() local
1493 if (resp->count < argp->count) { in nfs_writeback_result()
1504 argp->count); in nfs_writeback_result()
1507 nfs_set_pgio_error(hdr, -EIO, argp->offset); in nfs_writeback_result()
1522 argp->offset += resp->count; in nfs_writeback_result()
1523 argp->pgbase += resp->count; in nfs_writeback_result()
1524 argp->count -= resp->count; in nfs_writeback_result()
1529 argp->stable = NFS_FILE_SYNC; in nfs_writeback_result()
Dcallback_xdr.c60 static __be32 nfs4_callback_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfs4_callback_null() argument
824 struct xdr_stream *xdr_in, void *argp, in process_op() argument
868 status = op->decode_args(rqstp, xdr_in, argp); in process_op()
870 status = op->process_op(argp, resp, cps); in process_op()
887 static __be32 nfs4_callback_compound(struct svc_rqst *rqstp, void *argp, void *resp) in nfs4_callback_compound() argument
931 argp, &xdr_out, resp, &cps); in nfs4_callback_compound()

12