| /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/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/kernel/time/ |
| H A D | time.c | 873 const struct __kernel_timespec __user *uts) in get_timespec64() argument 878 ret = copy_from_user(&kts, uts, sizeof(kts)); in get_timespec64() 904 struct __kernel_timespec __user *uts) in put_timespec64() argument 911 return copy_to_user(uts, &kts, sizeof(kts)) ? -EFAULT : 0; in put_timespec64() 950 int get_old_timespec32(struct timespec64 *ts, const void __user *uts) in get_old_timespec32() argument 953 return copy_from_user(ts, uts, sizeof(*ts)) ? -EFAULT : 0; in get_old_timespec32() 955 return __get_old_timespec32(ts, uts); in get_old_timespec32() 969 int put_old_timespec32(const struct timespec64 *ts, void __user *uts) in put_old_timespec32() argument 972 return copy_to_user(uts, ts, sizeof(*ts)) ? -EFAULT : 0; in put_old_timespec32() 974 return __put_old_timespec32(ts, uts); in put_old_timespec32()
|
| /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 | 678 const struct __kernel_timespec __user *uts, 682 const struct old_timespec32 __user *uts,
|
| /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/tools/perf/util/ |
| H A D | env.c | 416 struct utsname uts; in perf_env__read_arch() local 421 if (!uname(&uts)) in perf_env__read_arch() 422 env->arch = strdup(uts.machine); in perf_env__read_arch() 599 static struct utsname uts = { .machine[0] = '\0', }; in perf_env__arch() local 600 if (uts.machine[0] == '\0' && uname(&uts) < 0) in perf_env__arch() 602 arch_name = uts.machine; in perf_env__arch()
|
| 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 | 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 | 2212 struct utsname uts; in vmlinux_path__init() local 2233 if (uname(&uts) < 0) in vmlinux_path__init() 2236 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 | 3806 const struct __kernel_timespec __user *, uts, in SYSCALL_DEFINE4() argument 3821 if (uts) { in SYSCALL_DEFINE4() 3822 if (get_timespec64(&ts, uts)) in SYSCALL_DEFINE4() 3826 ret = do_sigtimedwait(&these, &info, uts ? &ts : NULL); in SYSCALL_DEFINE4() 3839 const struct old_timespec32 __user *, uts, in SYSCALL_DEFINE4() argument 3853 if (uts) { in SYSCALL_DEFINE4() 3854 if (get_old_timespec32(&ts, uts)) in SYSCALL_DEFINE4() 3858 ret = do_sigtimedwait(&these, &info, uts ? &ts : NULL); in SYSCALL_DEFINE4() 3872 struct __kernel_timespec __user *, uts, compat_size_t, sigsetsize) in COMPAT_SYSCALL_DEFINE4() argument 3885 if (uts) { in COMPAT_SYSCALL_DEFINE4() [all …]
|
| /linux/kernel/power/ |
| H A D | power.h | 12 struct new_utsname uts; member
|
| H A D | snapshot.c | 2155 memcpy(&info->uts, init_utsname(), sizeof(struct new_utsname)); in init_header_complete() 2164 if (strcmp(info->uts.sysname, init_utsname()->sysname)) in check_image_kernel() 2166 if (strcmp(info->uts.release, init_utsname()->release)) in check_image_kernel() 2168 if (strcmp(info->uts.version, init_utsname()->version)) in check_image_kernel() 2170 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()
|
| H A D | builtin-script.c | 3736 struct utsname uts; in cmd_script() local 4154 uname(&uts); in cmd_script() 4158 if (!strcmp(uts.machine, env->arch)) in cmd_script() 4160 else if (!strcmp(uts.machine, "x86_64") && in cmd_script()
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf.c | 2276 struct utsname uts; in bpf_object__read_kconfig_file() local 2280 uname(&uts); in bpf_object__read_kconfig_file() 2281 len = snprintf(buf, PATH_MAX, "/boot/config-%s", uts.release); in bpf_object__read_kconfig_file()
|