Home
last modified time | relevance | path

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

/fs/nfsd/
Dnfs3proc.c47 nfsd3_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfsd3_proc_null() argument
56 nfsd3_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, in nfsd3_proc_getattr() argument
63 SVCFH_fmt(&argp->fh)); in nfsd3_proc_getattr()
65 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr()
82 nfsd3_proc_setattr(struct svc_rqst *rqstp, struct nfsd3_sattrargs *argp, in nfsd3_proc_setattr() argument
88 SVCFH_fmt(&argp->fh)); in nfsd3_proc_setattr()
90 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr()
91 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr()
92 argp->check_guard, argp->guardtime); in nfsd3_proc_setattr()
100 nfsd3_proc_lookup(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, in nfsd3_proc_lookup() argument
[all …]
Dnfsproc.c35 nfsd_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfsd_proc_null() argument
61 nfsd_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, in nfsd_proc_getattr() argument
65 dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_getattr()
67 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr()
78 nfsd_proc_setattr(struct svc_rqst *rqstp, struct nfsd_sattrargs *argp, in nfsd_proc_setattr() argument
83 SVCFH_fmt(&argp->fh), in nfsd_proc_setattr()
84 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr()
86 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr()
87 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs,0, (time_t)0); in nfsd_proc_setattr()
98 nfsd_proc_lookup(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, in nfsd_proc_lookup() argument
[all …]
Dnfs2acl.c25 nfsacld_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfsacld_proc_null() argument
34 struct nfsd3_getaclargs *argp, struct nfsd3_getaclres *resp) in nfsacld_proc_getacl() argument
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()
47 if (argp->mask & ~(NFS_ACL|NFS_ACLCNT|NFS_DFACL|NFS_DFACLCNT)) in nfsacld_proc_getacl()
49 resp->mask = argp->mask; in nfsacld_proc_getacl()
102 struct nfsd3_setaclargs *argp, in nfsacld_proc_setacl() argument
108 dprintk("nfsd: SETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_setacl()
110 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_setacl()
115 fh, ACL_TYPE_ACCESS, argp->acl_access) ); in nfsacld_proc_setacl()
[all …]
Dnfs4xdr.c123 if (!(x = (p==argp->tmp || p == argp->tmpp) ? \
124 savemem(argp, p, nbytes) : \
139 if (nbytes <= (u32)((char *)argp->end - (char *)argp->p)) { \
140 p = argp->p; \
141 argp->p += XDR_QUADLEN(nbytes); \
142 } else if (!(p = read_buf(argp, nbytes))) { \
149 static __be32 *read_buf(struct nfsd4_compoundargs *argp, u32 nbytes) in read_buf() argument
154 unsigned int avail = (char *)argp->end - (char *)argp->p; in read_buf()
156 if (avail + argp->pagelen < nbytes) in read_buf()
161 if (nbytes <= sizeof(argp->tmp)) in read_buf()
[all …]
Dnfs3acl.c23 nfsd3_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfsd3_proc_null() argument
32 struct nfsd3_getaclargs *argp, struct nfsd3_getaclres *resp) in nfsd3_proc_getacl() argument
38 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getacl()
43 if (argp->mask & ~(NFS_ACL|NFS_ACLCNT|NFS_DFACL|NFS_DFACLCNT)) in nfsd3_proc_getacl()
45 resp->mask = argp->mask; in nfsd3_proc_getacl()
98 struct nfsd3_setaclargs *argp, in nfsd3_proc_setacl() argument
104 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setacl()
109 fh, ACL_TYPE_ACCESS, argp->acl_access) ); in nfsd3_proc_setacl()
113 fh, ACL_TYPE_DEFAULT, argp->acl_default) ); in nfsd3_proc_setacl()
118 posix_acl_release(argp->acl_access); in nfsd3_proc_setacl()
[all …]
Dnfs4proc.c805 nfsd4_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfsd4_proc_null() argument
/fs/lockd/
Dsvc4proc.c26 nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_retrieve_args() argument
31 struct nlm_lock *lock = &argp->lock; in nlm4svc_retrieve_args()
40 || (argp->monitor && nsm_monitor(host) < 0)) in nlm4svc_retrieve_args()
69 nlm4svc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nlm4svc_proc_null() argument
79 nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_test() argument
87 resp->cookie = argp->cookie; in nlm4svc_proc_test()
90 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_test()
94 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in nlm4svc_proc_test()
106 nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_lock() argument
115 resp->cookie = argp->cookie; in nlm4svc_proc_lock()
[all …]
Dsvcproc.c55 nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_retrieve_args() argument
60 struct nlm_lock *lock = &argp->lock; in nlmsvc_retrieve_args()
69 || (argp->monitor && nsm_monitor(host) < 0)) in nlmsvc_retrieve_args()
98 nlmsvc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nlmsvc_proc_null() argument
108 nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_test() argument
116 resp->cookie = argp->cookie; in nlmsvc_proc_test()
119 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_test()
123 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in nlmsvc_proc_test()
136 nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_lock() argument
145 resp->cookie = argp->cookie; in nlmsvc_proc_lock()
[all …]
Dxdr.c223 nlmsvc_decode_testargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlmsvc_decode_testargs() argument
227 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_testargs()
231 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_testargs()
234 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_testargs()
248 nlmsvc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlmsvc_decode_lockargs() argument
252 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_lockargs()
254 argp->block = ntohl(*p++); in nlmsvc_decode_lockargs()
256 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_lockargs()
259 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_lockargs()
260 argp->reclaim = ntohl(*p++); in nlmsvc_decode_lockargs()
[all …]
Dxdr4.c230 nlm4svc_decode_testargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlm4svc_decode_testargs() argument
234 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_testargs()
238 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_testargs()
241 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_testargs()
255 nlm4svc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlm4svc_decode_lockargs() argument
259 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_lockargs()
261 argp->block = ntohl(*p++); in nlm4svc_decode_lockargs()
263 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_lockargs()
266 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_lockargs()
267 argp->reclaim = ntohl(*p++); in nlm4svc_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.c448 static int encode_mon_name(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_mon_name() argument
450 return encode_nsm_string(xdr, argp->mon_name); in encode_mon_name()
459 static int encode_my_id(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_my_id() argument
470 *p++ = htonl(argp->prog); in encode_my_id()
471 *p++ = htonl(argp->vers); in encode_my_id()
472 *p++ = htonl(argp->proc); in encode_my_id()
480 static int encode_mon_id(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_mon_id() argument
484 status = encode_mon_name(xdr, argp); in encode_mon_id()
487 return encode_my_id(xdr, argp); in encode_mon_id()
495 static int encode_priv(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_priv() argument
[all …]
Dclntproc.c125 struct nlm_args *argp = &req->a_args; in nlmclnt_setlockargs() local
126 struct nlm_lock *lock = &argp->lock; in nlmclnt_setlockargs()
128 nlmclnt_next_cookie(&argp->cookie); in nlmclnt_setlockargs()
129 argp->state = nsm_local_state; in nlmclnt_setlockargs()
255 struct nlm_args *argp = &req->a_args; in nlmclnt_call() local
258 .rpc_argp = argp, in nlmclnt_call()
268 if (host->h_reclaiming && !argp->reclaim) in nlmclnt_call()
298 if (argp->reclaim) { in nlmclnt_call()
304 if (!argp->reclaim) { in nlmclnt_call()
/fs/ncpfs/
Dioctl.c272 void __user *argp = (void __user *)arg; in __ncp_ioctl() local
287 if (copy_from_user(&request32, argp, sizeof(request32))) in __ncp_ioctl()
294 if (copy_from_user(&request, argp, sizeof(request))) in __ncp_ioctl()
345 return ncp_get_fs_info(server, filp, argp); in __ncp_ioctl()
348 return ncp_get_fs_info_v2(server, filp, argp); in __ncp_ioctl()
352 return ncp_get_compat_fs_info_v2(server, filp, argp); in __ncp_ioctl()
367 if (put_user(uid, (u16 __user *)argp)) in __ncp_ioctl()
371 (u32 __user *)argp)) in __ncp_ioctl()
375 (u64 __user *)argp)) in __ncp_ioctl()
407 if (copy_to_user(argp, &sr, sizeof(sr))) in __ncp_ioctl()
[all …]
/fs/
Dioctl.c393 static int ioctl_fionbio(struct file *filp, int __user *argp) in ioctl_fionbio() argument
398 error = get_user(on, argp); in ioctl_fionbio()
415 int __user *argp) in ioctl_fioasync() argument
420 error = get_user(on, argp); in ioctl_fioasync()
490 int __user *argp = (int __user *)arg; in do_vfs_ioctl() local
504 error = ioctl_fionbio(filp, argp); in do_vfs_ioctl()
511 error = ioctl_fioasync(fd, filp, argp); in do_vfs_ioctl()
/fs/nfs/
Dcallback_xdr.c39 static __be32 nfs4_callback_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfs4_callback_null() argument
357 struct xdr_stream *xdr_in, void *argp, in process_op() argument
384 status = op->decode_args(rqstp, xdr_in, argp); in process_op()
386 status = op->process_op(argp, resp); in process_op()
402 static __be32 nfs4_callback_compound(struct svc_rqst *rqstp, void *argp, void *resp) in nfs4_callback_compound() argument
428 status = process_op(rqstp, &xdr_in, argp, &xdr_out, resp); in nfs4_callback_compound()
Dread.c350 struct nfs_readargs *argp = &data->args; in nfs_readpage_retry() local
353 if (resp->eof || resp->count == argp->count) in nfs_readpage_retry()
363 argp->offset += resp->count; in nfs_readpage_retry()
364 argp->pgbase += resp->count; in nfs_readpage_retry()
365 argp->count -= resp->count; in nfs_readpage_retry()
Dwrite.c1102 struct nfs_writeargs *argp = &data->args; in nfs_writeback_done() local
1122 if (resp->verf->committed < argp->stable && task->tk_status >= 0) { in nfs_writeback_done()
1137 resp->verf->committed, argp->stable); in nfs_writeback_done()
1143 if (task->tk_status >= 0 && resp->count < argp->count) { in nfs_writeback_done()
1153 argp->offset += resp->count; in nfs_writeback_done()
1154 argp->pgbase += resp->count; in nfs_writeback_done()
1155 argp->count -= resp->count; in nfs_writeback_done()
1160 argp->stable = NFS_FILE_SYNC; in nfs_writeback_done()
1168 argp->count); in nfs_writeback_done()
/fs/btrfs/
Dioctl.c1016 static long btrfs_ioctl_clone_range(struct file *file, void __user *argp) in btrfs_ioctl_clone_range() argument
1020 if (copy_from_user(&args, argp, sizeof(args))) in btrfs_ioctl_clone_range()
1100 void __user *argp = (void __user *)arg; in btrfs_ioctl() local
1104 return btrfs_ioctl_snap_create(file, argp, 0); in btrfs_ioctl()
1106 return btrfs_ioctl_snap_create(file, argp, 1); in btrfs_ioctl()
1110 return btrfs_ioctl_resize(root, argp); in btrfs_ioctl()
1112 return btrfs_ioctl_add_dev(root, argp); in btrfs_ioctl()
1114 return btrfs_ioctl_rm_dev(root, argp); in btrfs_ioctl()
1120 return btrfs_ioctl_clone_range(file, argp); in btrfs_ioctl()
/fs/autofs/
Droot.c551 void __user *argp = (void __user *)arg; in autofs_root_ioctl() local
571 return autofs_get_protover(argp); in autofs_root_ioctl()
573 return autofs_get_set_timeout(sbi, argp); in autofs_root_ioctl()
576 argp); in autofs_root_ioctl()