/fs/nfsd/ |
D | nfs3proc.c | 34 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 50 SVCFH_fmt(&argp->fh)); in nfsd3_proc_getattr() 52 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr() 69 nfsd3_proc_setattr(struct svc_rqst *rqstp, struct nfsd3_sattrargs *argp, in nfsd3_proc_setattr() argument 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() 87 nfsd3_proc_lookup(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, in nfsd3_proc_lookup() argument [all …]
|
D | nfsproc.c | 20 nfsd_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfsd_proc_null() argument 46 nfsd_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, in nfsd_proc_getattr() argument 50 dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_getattr() 52 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr() 63 nfsd_proc_setattr(struct svc_rqst *rqstp, struct nfsd_sattrargs *argp, in nfsd_proc_setattr() argument 68 SVCFH_fmt(&argp->fh), in nfsd_proc_setattr() 69 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr() 71 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr() 72 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs,0, (time_t)0); in nfsd_proc_setattr() 83 nfsd_proc_lookup(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, in nfsd_proc_lookup() argument [all …]
|
D | nfs2acl.c | 22 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 37 dprintk("nfsd: GETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_getacl() 39 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getacl() 44 if (argp->mask & ~(NFS_ACL|NFS_ACLCNT|NFS_DFACL|NFS_DFACLCNT)) in nfsacld_proc_getacl() 46 resp->mask = argp->mask; in nfsacld_proc_getacl() 99 struct nfsd3_setaclargs *argp, in nfsacld_proc_setacl() argument 105 dprintk("nfsd: SETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_setacl() 107 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_setacl() 112 fh, ACL_TYPE_ACCESS, argp->acl_access) ); in nfsacld_proc_setacl() [all …]
|
D | nfs4xdr.c | 110 if (!(x = (p==argp->tmp || p == argp->tmpp) ? \ 111 savemem(argp, p, nbytes) : \ 126 if (nbytes <= (u32)((char *)argp->end - (char *)argp->p)) { \ 127 p = argp->p; \ 128 argp->p += XDR_QUADLEN(nbytes); \ 129 } else if (!(p = read_buf(argp, nbytes))) { \ 136 static __be32 *read_buf(struct nfsd4_compoundargs *argp, u32 nbytes) in read_buf() argument 141 unsigned int avail = (char *)argp->end - (char *)argp->p; in read_buf() 143 if (avail + argp->pagelen < nbytes) in read_buf() 148 if (nbytes <= sizeof(argp->tmp)) in read_buf() [all …]
|
D | nfs3acl.c | 21 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 36 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getacl() 41 if (argp->mask & ~(NFS_ACL|NFS_ACLCNT|NFS_DFACL|NFS_DFACLCNT)) in nfsd3_proc_getacl() 43 resp->mask = argp->mask; in nfsd3_proc_getacl() 96 struct nfsd3_setaclargs *argp, in nfsd3_proc_setacl() argument 102 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setacl() 107 fh, ACL_TYPE_ACCESS, argp->acl_access) ); in nfsd3_proc_setacl() 111 fh, ACL_TYPE_DEFAULT, argp->acl_default) ); in nfsd3_proc_setacl() 116 posix_acl_release(argp->acl_access); in nfsd3_proc_setacl() [all …]
|
/fs/lockd/ |
D | svc4proc.c | 21 nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_retrieve_args() argument 26 struct nlm_lock *lock = &argp->lock; in nlm4svc_retrieve_args() 35 || (argp->monitor && nsm_monitor(host) < 0)) in nlm4svc_retrieve_args() 64 nlm4svc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nlm4svc_proc_null() argument 74 nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_test() argument 82 resp->cookie = argp->cookie; in nlm4svc_proc_test() 85 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_test() 89 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in nlm4svc_proc_test() 101 nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_lock() argument 110 resp->cookie = argp->cookie; in nlm4svc_proc_lock() [all …]
|
D | svcproc.c | 50 nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_retrieve_args() argument 55 struct nlm_lock *lock = &argp->lock; in nlmsvc_retrieve_args() 64 || (argp->monitor && nsm_monitor(host) < 0)) in nlmsvc_retrieve_args() 94 nlmsvc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nlmsvc_proc_null() argument 104 nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_test() argument 112 resp->cookie = argp->cookie; in nlmsvc_proc_test() 115 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_test() 119 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in nlmsvc_proc_test() 132 nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_lock() argument 141 resp->cookie = argp->cookie; in nlmsvc_proc_lock() [all …]
|
D | xdr4.c | 182 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 …]
|
D | xdr.c | 191 nlmsvc_decode_testargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlmsvc_decode_testargs() argument 195 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_testargs() 199 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_testargs() 202 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_testargs() 216 nlmsvc_decode_lockargs(struct svc_rqst *rqstp, __be32 *p, nlm_args *argp) in nlmsvc_decode_lockargs() argument 220 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_lockargs() 222 argp->block = ntohl(*p++); in nlmsvc_decode_lockargs() 224 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_lockargs() 227 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_lockargs() 228 argp->reclaim = ntohl(*p++); in nlmsvc_decode_lockargs() [all …]
|
D | svcshare.c | 28 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()
|
D | mon.c | 420 static void encode_mon_name(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_mon_name() argument 422 encode_nsm_string(xdr, argp->mon_name); in encode_mon_name() 431 static void encode_my_id(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_my_id() argument 435 encode_nsm_string(xdr, argp->nodename); in encode_my_id() 437 *p++ = cpu_to_be32(argp->prog); in encode_my_id() 438 *p++ = cpu_to_be32(argp->vers); in encode_my_id() 439 *p = cpu_to_be32(argp->proc); in encode_my_id() 446 static void encode_mon_id(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_mon_id() argument 448 encode_mon_name(xdr, argp); in encode_mon_id() 449 encode_my_id(xdr, argp); in encode_mon_id() [all …]
|
D | clntproc.c | 126 struct nlm_args *argp = &req->a_args; in nlmclnt_setlockargs() local 127 struct nlm_lock *lock = &argp->lock; in nlmclnt_setlockargs() 129 nlmclnt_next_cookie(&argp->cookie); in nlmclnt_setlockargs() 252 struct nlm_args *argp = &req->a_args; in nlmclnt_call() local 255 .rpc_argp = argp, in nlmclnt_call() 265 if (host->h_reclaiming && !argp->reclaim) in nlmclnt_call() 295 if (argp->reclaim) { in nlmclnt_call() 301 if (!argp->reclaim) { in nlmclnt_call()
|
/fs/nilfs2/ |
D | ioctl.c | 102 static int nilfs_ioctl_getflags(struct inode *inode, void __user *argp) in nilfs_ioctl_getflags() argument 106 return put_user(flags, (int __user *)argp); in nilfs_ioctl_getflags() 110 void __user *argp) in nilfs_ioctl_setflags() argument 119 if (get_user(flags, (int __user *)argp)) in nilfs_ioctl_setflags() 161 static int nilfs_ioctl_getversion(struct inode *inode, void __user *argp) in nilfs_ioctl_getversion() argument 163 return put_user(inode->i_generation, (int __user *)argp); in nilfs_ioctl_getversion() 167 unsigned int cmd, void __user *argp) in nilfs_ioctl_change_cpmode() argument 182 if (copy_from_user(&cpmode, argp, sizeof(cpmode))) in nilfs_ioctl_change_cpmode() 203 unsigned int cmd, void __user *argp) in nilfs_ioctl_delete_checkpoint() argument 218 if (copy_from_user(&cno, argp, sizeof(cno))) in nilfs_ioctl_delete_checkpoint() [all …]
|
/fs/ncpfs/ |
D | ioctl.c | 263 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() 335 return ncp_get_fs_info(server, inode, argp); in __ncp_ioctl() 338 return ncp_get_fs_info_v2(server, inode, argp); in __ncp_ioctl() 342 return ncp_get_compat_fs_info_v2(server, inode, argp); in __ncp_ioctl() 352 if (put_user(uid, (u16 __user *)argp)) in __ncp_ioctl() 358 (u32 __user *)argp)) in __ncp_ioctl() 363 (u64 __user *)argp)) in __ncp_ioctl() 395 if (!result && copy_to_user(argp, &sr, sizeof(sr))) in __ncp_ioctl() [all …]
|
/fs/ |
D | ioctl.c | 425 int ioctl_preallocate(struct file *filp, void __user *argp) in ioctl_preallocate() argument 430 if (copy_from_user(&sr, argp, sizeof(sr))) in ioctl_preallocate() 468 static int ioctl_fionbio(struct file *filp, int __user *argp) in ioctl_fionbio() argument 473 error = get_user(on, argp); in ioctl_fionbio() 492 int __user *argp) in ioctl_fioasync() argument 497 error = get_user(on, argp); in ioctl_fioasync() 550 int __user *argp = (int __user *)arg; in do_vfs_ioctl() local 563 error = ioctl_fionbio(filp, argp); in do_vfs_ioctl() 567 error = ioctl_fioasync(fd, filp, argp); in do_vfs_ioctl() 574 error = copy_to_user(argp, &res, sizeof(res)) ? in do_vfs_ioctl() [all …]
|
D | compat_ioctl.c | 120 compat_ulong_t __user *argp) in w_long() argument 129 if (!err && put_user(val, argp)) in w_long() 516 static int mt_ioctl_trans(unsigned int fd, unsigned int cmd, void __user *argp) in mt_ioctl_trans() argument 544 upos32 = argp; in mt_ioctl_trans() 548 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() 1431 void __user *argp = compat_ptr(arg); in do_ioctl_trans() local [all …]
|
/fs/btrfs/ |
D | ioctl.c | 1774 void __user *argp) in btrfs_ioctl_tree_search() argument 1783 args = memdup_user(argp, sizeof(*args)); in btrfs_ioctl_tree_search() 1789 if (ret == 0 && copy_to_user(argp, args, sizeof(*args))) in btrfs_ioctl_tree_search() 1884 void __user *argp) in btrfs_ioctl_ino_lookup() argument 1893 args = memdup_user(argp, sizeof(*args)); in btrfs_ioctl_ino_lookup() 1906 if (ret == 0 && copy_to_user(argp, args, sizeof(*args))) in btrfs_ioctl_ino_lookup() 2071 static int btrfs_ioctl_defrag(struct file *file, void __user *argp) in btrfs_ioctl_defrag() argument 2108 if (argp) { in btrfs_ioctl_defrag() 2109 if (copy_from_user(range, argp, in btrfs_ioctl_defrag() 2666 static long btrfs_ioctl_clone_range(struct file *file, void __user *argp) in btrfs_ioctl_clone_range() argument [all …]
|
/fs/hfsplus/ |
D | ioctl.c | 141 void __user *argp = (void __user *)arg; in hfsplus_ioctl() local 145 return hfsplus_ioctl_getflags(file, argp); in hfsplus_ioctl() 147 return hfsplus_ioctl_setflags(file, argp); in hfsplus_ioctl() 149 return hfsplus_ioctl_bless(file, argp); in hfsplus_ioctl()
|
/fs/nfs/ |
D | read.c | 412 struct nfs_readargs *argp = &data->args; in nfs_readpage_retry() local 415 if (resp->eof || resp->count == argp->count) in nfs_readpage_retry() 426 argp->offset += resp->count; in nfs_readpage_retry() 427 argp->pgbase += resp->count; in nfs_readpage_retry() 428 argp->count -= resp->count; in nfs_readpage_retry()
|
D | write.c | 1256 struct nfs_writeargs *argp = &data->args; in nfs_writeback_done() local 1276 if (resp->verf->committed < argp->stable && task->tk_status >= 0) { in nfs_writeback_done() 1292 resp->verf->committed, argp->stable); in nfs_writeback_done() 1298 if (task->tk_status >= 0 && resp->count < argp->count) { in nfs_writeback_done() 1309 argp->offset += resp->count; in nfs_writeback_done() 1310 argp->pgbase += resp->count; in nfs_writeback_done() 1311 argp->count -= resp->count; in nfs_writeback_done() 1316 argp->stable = NFS_FILE_SYNC; in nfs_writeback_done() 1324 argp->count); in nfs_writeback_done()
|
D | callback_xdr.c | 57 static __be32 nfs4_callback_null(struct svc_rqst *rqstp, void *argp, void *resp) in nfs4_callback_null() argument 805 struct xdr_stream *xdr_in, void *argp, in process_op() argument 837 status = op->decode_args(rqstp, xdr_in, argp); in process_op() 839 status = op->process_op(argp, resp, cps); in process_op() 856 static __be32 nfs4_callback_compound(struct svc_rqst *rqstp, void *argp, void *resp) in nfs4_callback_compound() argument 894 &xdr_in, argp, &xdr_out, resp, &cps); in nfs4_callback_compound()
|
/fs/ocfs2/ |
D | move_extents.h | 20 int ocfs2_ioctl_move_extents(struct file *filp, void __user *argp);
|
D | move_extents.c | 1054 int ocfs2_ioctl_move_extents(struct file *filp, void __user *argp) in ocfs2_ioctl_move_extents() argument 1084 if (argp) { in ocfs2_ioctl_move_extents() 1085 if (copy_from_user(&range, (struct ocfs2_move_extents *)argp, in ocfs2_ioctl_move_extents() 1140 if (argp) { in ocfs2_ioctl_move_extents() 1141 if (copy_to_user((struct ocfs2_move_extents *)argp, &range, in ocfs2_ioctl_move_extents()
|
/fs/gfs2/ |
D | rgrp.h | 69 extern int gfs2_fitrim(struct file *filp, void __user *argp);
|
D | rgrp.c | 900 int gfs2_fitrim(struct file *filp, void __user *argp) in gfs2_fitrim() argument 921 if (argp == NULL) { in gfs2_fitrim() 925 } else if (copy_from_user(&r, argp, sizeof(r))) in gfs2_fitrim() 973 if (argp && copy_to_user(argp, &r, sizeof(r))) in gfs2_fitrim()
|