Lines Matching refs:ubuf
68 SYSCALL_DEFINE5(ia32_pread64, unsigned int, fd, char __user *, ubuf, in SYSCALL_DEFINE5() argument
71 return ksys_pread64(fd, ubuf, count, in SYSCALL_DEFINE5()
75 SYSCALL_DEFINE5(ia32_pwrite64, unsigned int, fd, const char __user *, ubuf, in SYSCALL_DEFINE5() argument
78 return ksys_pwrite64(fd, ubuf, count, in SYSCALL_DEFINE5()
132 static int cp_stat64(struct stat64 __user *ubuf, struct kstat *stat) in cp_stat64() argument
134 typeof(ubuf->st_uid) uid = 0; in cp_stat64()
135 typeof(ubuf->st_gid) gid = 0; in cp_stat64()
138 if (!user_write_access_begin(ubuf, sizeof(struct stat64))) in cp_stat64()
140 unsafe_put_user(huge_encode_dev(stat->dev), &ubuf->st_dev, Efault); in cp_stat64()
141 unsafe_put_user(stat->ino, &ubuf->__st_ino, Efault); in cp_stat64()
142 unsafe_put_user(stat->ino, &ubuf->st_ino, Efault); in cp_stat64()
143 unsafe_put_user(stat->mode, &ubuf->st_mode, Efault); in cp_stat64()
144 unsafe_put_user(stat->nlink, &ubuf->st_nlink, Efault); in cp_stat64()
145 unsafe_put_user(uid, &ubuf->st_uid, Efault); in cp_stat64()
146 unsafe_put_user(gid, &ubuf->st_gid, Efault); in cp_stat64()
147 unsafe_put_user(huge_encode_dev(stat->rdev), &ubuf->st_rdev, Efault); in cp_stat64()
148 unsafe_put_user(stat->size, &ubuf->st_size, Efault); in cp_stat64()
149 unsafe_put_user(stat->atime.tv_sec, &ubuf->st_atime, Efault); in cp_stat64()
150 unsafe_put_user(stat->atime.tv_nsec, &ubuf->st_atime_nsec, Efault); in cp_stat64()
151 unsafe_put_user(stat->mtime.tv_sec, &ubuf->st_mtime, Efault); in cp_stat64()
152 unsafe_put_user(stat->mtime.tv_nsec, &ubuf->st_mtime_nsec, Efault); in cp_stat64()
153 unsafe_put_user(stat->ctime.tv_sec, &ubuf->st_ctime, Efault); in cp_stat64()
154 unsafe_put_user(stat->ctime.tv_nsec, &ubuf->st_ctime_nsec, Efault); in cp_stat64()
155 unsafe_put_user(stat->blksize, &ubuf->st_blksize, Efault); in cp_stat64()
156 unsafe_put_user(stat->blocks, &ubuf->st_blocks, Efault); in cp_stat64()