| /linux/tools/power/cpupower/utils/ |
| H A D | cpupower-info.c | 34 struct utsname uts; in cmd_info() local 44 ret = uname(&uts); in cmd_info() 45 if (!ret && (!strcmp(uts.machine, "ppc64le") || in cmd_info() 46 !strcmp(uts.machine, "ppc64"))) { in cmd_info()
|
| H A D | cpupower-set.c | 39 struct utsname uts; in cmd_set() local 54 ret = uname(&uts); in cmd_set() 55 if (!ret && (!strcmp(uts.machine, "ppc64le") || in cmd_set() 56 !strcmp(uts.machine, "ppc64"))) { in cmd_set()
|
| H A D | cpupower.c | 180 struct utsname uts; in main() local 217 ret = uname(&uts); in main() 219 if (!ret && !strcmp(uts.machine, "x86_64") && in main()
|
| /linux/kernel/time/ |
| H A D | time.c | 868 const struct __kernel_timespec __user *uts) in get_timespec64() argument 873 ret = copy_from_user(&kts, uts, sizeof(kts)); in get_timespec64() 899 struct __kernel_timespec __user *uts) in put_timespec64() argument 906 return copy_to_user(uts, &kts, sizeof(kts)) ? -EFAULT : 0; in put_timespec64() 945 int get_old_timespec32(struct timespec64 *ts, const void __user *uts) in get_old_timespec32() argument 948 return copy_from_user(ts, uts, sizeof(*ts)) ? -EFAULT : 0; in get_old_timespec32() 950 return __get_old_timespec32(ts, uts); in get_old_timespec32() 964 int put_old_timespec32(const struct timespec64 *ts, void __user *uts) in put_old_timespec32() argument 967 return copy_to_user(uts, ts, sizeof(*ts)) ? -EFAULT : 0; in put_old_timespec32() 969 return __put_old_timespec32(ts, uts); in put_old_timespec32()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | unpriv_helpers.c | 18 struct utsname uts; in open_config() local 22 if (uname(&uts)) { in open_config() 27 snprintf(buf, sizeof(buf), "/boot/config-%s", uts.release); in open_config()
|
| /linux/drivers/tty/serial/ |
| H A D | imx.c | 345 u32 ucr2, ubir, ubmr, uts; in imx_uart_soft_reset() local 360 uts = imx_uart_readl(sport, IMX21_UTS); in imx_uart_soft_reset() 371 imx_uart_writel(sport, uts, IMX21_UTS); in imx_uart_soft_reset() 379 unsigned int uts; in imx_uart_disable_loopback_rs485() local 382 uts = imx_uart_readl(sport, imx_uart_uts_reg(sport)); in imx_uart_disable_loopback_rs485() 383 uts &= ~UTS_LOOP; in imx_uart_disable_loopback_rs485() 384 imx_uart_writel(sport, uts, imx_uart_uts_reg(sport)); in imx_uart_disable_loopback_rs485() 481 u32 ucr1, ucr2, ucr4, uts; in imx_uart_stop_rx_with_loopback_ctrl() local 501 uts = imx_uart_readl(sport, imx_uart_uts_reg(sport)); in imx_uart_stop_rx_with_loopback_ctrl() 502 uts |= UTS_LOOP; in imx_uart_stop_rx_with_loopback_ctrl() [all …]
|
| /linux/include/linux/ |
| H A D | time.h | 12 const struct __kernel_timespec __user *uts); 14 struct __kernel_timespec __user *uts);
|
| H A D | compat.h | 717 struct old_timespec32 __user *uts, compat_size_t sigsetsize); 720 struct __kernel_timespec __user *uts, compat_size_t sigsetsize);
|
| H A D | syscalls.h | 681 const struct __kernel_timespec __user *uts, 685 const struct old_timespec32 __user *uts,
|
| /linux/tools/perf/util/ |
| H A D | cputopo.c | 225 struct utsname uts; in has_die_topology() local 227 if (uname(&uts) < 0) in has_die_topology() 230 if (strncmp(uts.machine, "x86_64", 6) && in has_die_topology() 231 strncmp(uts.machine, "s390x", 5)) in has_die_topology()
|
| H A D | env.c | 445 struct utsname uts; in perf_env__read_arch() local 450 if (!uname(&uts)) in perf_env__read_arch() 451 env->arch = strdup(uts.machine); in perf_env__read_arch() 628 static struct utsname uts = { .machine[0] = '\0', }; in perf_env__arch() local 629 if (uts.machine[0] == '\0' && uname(&uts) < 0) in perf_env__arch() 631 arch_name = uts.machine; in perf_env__arch()
|
| H A D | header.c | 346 struct utsname uts; in write_hostname() local 349 ret = uname(&uts); in write_hostname() 353 return do_write_string(ff, uts.nodename); in write_hostname() 359 struct utsname uts; in write_osrelease() local 362 ret = uname(&uts); in write_osrelease() 366 return do_write_string(ff, uts.release); in write_osrelease() 372 struct utsname uts; in write_arch() local 375 ret = uname(&uts); in write_arch() 379 return do_write_string(ff, uts.machine); in write_arch()
|
| H A D | symbol.c | 2209 struct utsname uts; in vmlinux_path__init() local 2230 if (uname(&uts) < 0) in vmlinux_path__init() 2233 kernel_version = uts.release; in vmlinux_path__init()
|
| /linux/tools/testing/selftests/powerpc/ |
| H A D | utils.c | 480 struct utsname uts; in is_ppc64le() local 484 rc = uname(&uts); in is_ppc64le() 490 return strcmp(uts.machine, "ppc64le") == 0; in is_ppc64le()
|
| /linux/kernel/ |
| H A D | signal.c | 3799 * @uts: upper bound on process time suspension 3804 const struct __kernel_timespec __user *, uts, in SYSCALL_DEFINE4() argument 3819 if (uts) { in SYSCALL_DEFINE4() 3820 if (get_timespec64(&ts, uts)) in SYSCALL_DEFINE4() 3824 ret = do_sigtimedwait(&these, &info, uts ? &ts : NULL); in SYSCALL_DEFINE4() 3837 const struct old_timespec32 __user *, uts, in SYSCALL_DEFINE4() argument 3851 if (uts) { in SYSCALL_DEFINE4() 3852 if (get_old_timespec32(&ts, uts)) in SYSCALL_DEFINE4() 3856 ret = do_sigtimedwait(&these, &info, uts ? &ts : NULL); in SYSCALL_DEFINE4() 3870 struct __kernel_timespec __user *, uts, compat_size_ in COMPAT_SYSCALL_DEFINE4() argument 3901 COMPAT_SYSCALL_DEFINE4(rt_sigtimedwait_time32,compat_sigset_t __user *,uthese,struct compat_siginfo __user *,uinfo,struct old_timespec32 __user *,uts,compat_size_t,sigsetsize) COMPAT_SYSCALL_DEFINE4() argument [all...] |
| /linux/kernel/power/ |
| H A D | power.h | 12 struct new_utsname uts; member
|
| H A D | snapshot.c | 2154 memcpy(&info->uts, init_utsname(), sizeof(struct new_utsname)); in init_header_complete() 2163 if (strcmp(info->uts.sysname, init_utsname()->sysname)) in check_image_kernel() 2165 if (strcmp(info->uts.release, init_utsname()->release)) in check_image_kernel() 2167 if (strcmp(info->uts.version, init_utsname()->version)) in check_image_kernel() 2169 if (strcmp(info->uts.machine, init_utsname()->machine)) in check_image_kernel()
|
| /linux/tools/perf/ |
| H A D | builtin-top.c | 172 struct utsname uts; in ui__warn_map_erange() local 173 int err = uname(&uts); in ui__warn_map_erange() 190 err ? "[unknown]" : uts.machine, in ui__warn_map_erange() 191 err ? "[unknown]" : uts.release, perf_version_string); in ui__warn_map_erange()
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf.c | 2309 struct utsname uts; in bpf_object__read_kconfig_file() local 2313 uname(&uts); in bpf_object__read_kconfig_file() 2314 len = snprintf(buf, PATH_MAX, "/boot/config-%s", uts.release); in bpf_object__read_kconfig_file()
|