Lines Matching +full:high +full:- +full:bit

1 // SPDX-License-Identifier: GPL-2.0
9 * Conversion between 31bit and 64bit native syscalls.
11 * Heavily inspired by the 32-bit Sparc compat code which is
65 return -EINVAL; in COMPAT_SYSCALL_DEFINE5()
70 COMPAT_SYSCALL_DEFINE3(s390_truncate64, const char __user *, path, u32, high, u32, low) in COMPAT_SYSCALL_DEFINE3() argument
72 return ksys_truncate(path, (unsigned long)high << 32 | low); in COMPAT_SYSCALL_DEFINE3()
75 COMPAT_SYSCALL_DEFINE3(s390_ftruncate64, unsigned int, fd, u32, high, u32, low) in COMPAT_SYSCALL_DEFINE3() argument
77 return ksys_ftruncate(fd, (unsigned long)high << 32 | low); in COMPAT_SYSCALL_DEFINE3()
81 compat_size_t, count, u32, high, u32, low) in COMPAT_SYSCALL_DEFINE5() argument
84 return -EINVAL; in COMPAT_SYSCALL_DEFINE5()
85 return ksys_pread64(fd, ubuf, count, (unsigned long)high << 32 | low); in COMPAT_SYSCALL_DEFINE5()
89 compat_size_t, count, u32, high, u32, low) in COMPAT_SYSCALL_DEFINE5() argument
92 return -EINVAL; in COMPAT_SYSCALL_DEFINE5()
93 return ksys_pwrite64(fd, ubuf, count, (unsigned long)high << 32 | low); in COMPAT_SYSCALL_DEFINE5()
96 COMPAT_SYSCALL_DEFINE4(s390_readahead, int, fd, u32, high, u32, low, s32, count) in COMPAT_SYSCALL_DEFINE4() argument
98 return ksys_readahead(fd, (unsigned long)high << 32 | low, count); in COMPAT_SYSCALL_DEFINE4()
115 u32 __pad5; /* future possible st_blocks high bits */
116 u32 st_blocks; /* Number 512-byte blocks allocated. */
122 u32 __pad8; /* will be high 32 bits of ctime someday */
132 tmp.st_dev = huge_encode_dev(stat->dev); in cp_stat64()
133 tmp.st_ino = stat->ino; in cp_stat64()
134 tmp.__st_ino = (u32)stat->ino; in cp_stat64()
135 tmp.st_mode = stat->mode; in cp_stat64()
136 tmp.st_nlink = (unsigned int)stat->nlink; in cp_stat64()
137 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_stat64()
138 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_stat64()
139 tmp.st_rdev = huge_encode_dev(stat->rdev); in cp_stat64()
140 tmp.st_size = stat->size; in cp_stat64()
141 tmp.st_blksize = (u32)stat->blksize; in cp_stat64()
142 tmp.st_blocks = (u32)stat->blocks; in cp_stat64()
143 tmp.st_atime = (u32)stat->atime.tv_sec; in cp_stat64()
144 tmp.st_mtime = (u32)stat->mtime.tv_sec; in cp_stat64()
145 tmp.st_ctime = (u32)stat->ctime.tv_sec; in cp_stat64()
147 return copy_to_user(ubuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_stat64()
209 return -EFAULT; in COMPAT_SYSCALL_DEFINE1()
211 return -EINVAL; in COMPAT_SYSCALL_DEFINE1()
221 return -EFAULT; in COMPAT_SYSCALL_DEFINE1()
228 return -EINVAL; in COMPAT_SYSCALL_DEFINE3()
236 return -EINVAL; in COMPAT_SYSCALL_DEFINE3()
242 * 31 bit emulation wrapper functions for sys_fadvise64/fadvise64_64.
244 * because the 31 bit values differ from the 64 bit values.
247 COMPAT_SYSCALL_DEFINE5(s390_fadvise64, int, fd, u32, high, u32, low, compat_size_t, len, int, advis… in COMPAT_SYSCALL_DEFINE5() argument
253 return ksys_fadvise64_64(fd, (unsigned long)high << 32 | low, len, in COMPAT_SYSCALL_DEFINE5()
269 return -EFAULT; in COMPAT_SYSCALL_DEFINE1()