| /linux-6.15/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 | 38 struct utsname uts; in cmd_set() local 53 ret = uname(&uts); in cmd_set() 54 if (!ret && (!strcmp(uts.machine, "ppc64le") || in cmd_set() 55 !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-6.15/kernel/time/ |
| H A D | time.c | 872 const struct __kernel_timespec __user *uts) in get_timespec64() argument 877 ret = copy_from_user(&kts, uts, sizeof(kts)); in get_timespec64() 903 struct __kernel_timespec __user *uts) in put_timespec64() argument 910 return copy_to_user(uts, &kts, sizeof(kts)) ? -EFAULT : 0; in put_timespec64() 949 int get_old_timespec32(struct timespec64 *ts, const void __user *uts) in get_old_timespec32() argument 952 return copy_from_user(ts, uts, sizeof(*ts)) ? -EFAULT : 0; in get_old_timespec32() 954 return __get_old_timespec32(ts, uts); in get_old_timespec32() 968 int put_old_timespec32(const struct timespec64 *ts, void __user *uts) in put_old_timespec32() argument 971 return copy_to_user(uts, ts, sizeof(*ts)) ? -EFAULT : 0; in put_old_timespec32() 973 return __put_old_timespec32(ts, uts); in put_old_timespec32()
|
| /linux-6.15/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 | 671 const struct __kernel_timespec __user *uts, 675 const struct old_timespec32 __user *uts,
|
| /linux-6.15/tools/perf/util/ |
| H A D | env.c | 400 struct utsname uts; in perf_env__read_arch() local 405 if (!uname(&uts)) in perf_env__read_arch() 406 env->arch = strdup(uts.machine); in perf_env__read_arch() 473 static struct utsname uts = { .machine[0] = '\0', }; in perf_env__arch() local 474 if (uts.machine[0] == '\0' && uname(&uts) < 0) in perf_env__arch() 476 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 | 2324 struct utsname uts; in vmlinux_path__init() local 2345 if (uname(&uts) < 0) in vmlinux_path__init() 2348 kernel_version = uts.release; in vmlinux_path__init()
|
| /linux-6.15/drivers/tty/serial/ |
| H A D | imx.c | 344 u32 ucr2, ubir, ubmr, uts; in imx_uart_soft_reset() local 378 unsigned int uts; in imx_uart_disable_loopback_rs485() local 382 uts &= ~UTS_LOOP; in imx_uart_disable_loopback_rs485() 480 u32 ucr1, ucr2, ucr4, uts; in imx_uart_stop_rx_with_loopback_ctrl() local 501 uts |= UTS_LOOP; in imx_uart_stop_rx_with_loopback_ctrl() 1104 u32 ucr3, uts; in imx_uart_set_mctrl() local 1135 uts |= UTS_LOOP; in imx_uart_set_mctrl() 1586 u32 ucr1, ucr2, ucr4, uts; in imx_uart_shutdown() local 1638 uts |= UTS_LOOP; in imx_uart_shutdown() 2408 u32 ucr1, ucr2, uts; in imx_uart_probe() local [all …]
|
| /linux-6.15/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-6.15/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() 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() 3885 if (uts) { in COMPAT_SYSCALL_DEFINE4() 3886 if (get_timespec64(&t, uts)) in COMPAT_SYSCALL_DEFINE4() 3890 ret = do_sigtimedwait(&s, &info, uts ? &t : NULL); in COMPAT_SYSCALL_DEFINE4() 3916 if (uts) { in COMPAT_SYSCALL_DEFINE4() [all …]
|
| /linux-6.15/kernel/power/ |
| H A D | power.h | 12 struct new_utsname uts; member
|
| H A D | snapshot.c | 2157 memcpy(&info->uts, init_utsname(), sizeof(struct new_utsname)); in init_header_complete() 2166 if (strcmp(info->uts.sysname,init_utsname()->sysname)) in check_image_kernel() 2168 if (strcmp(info->uts.release,init_utsname()->release)) in check_image_kernel() 2170 if (strcmp(info->uts.version,init_utsname()->version)) in check_image_kernel() 2172 if (strcmp(info->uts.machine,init_utsname()->machine)) in check_image_kernel()
|
| /linux-6.15/tools/perf/ |
| H A D | builtin-top.c | 171 struct utsname uts; in ui__warn_map_erange() local 172 int err = uname(&uts); in ui__warn_map_erange() 189 err ? "[unknown]" : uts.machine, in ui__warn_map_erange() 190 err ? "[unknown]" : uts.release, perf_version_string); in ui__warn_map_erange()
|
| H A D | builtin-script.c | 3698 struct utsname uts; in cmd_script() local 4114 uname(&uts); in cmd_script() 4118 if (!strcmp(uts.machine, session->header.env.arch)) in cmd_script() 4120 else if (!strcmp(uts.machine, "x86_64") && in cmd_script()
|
| /linux-6.15/tools/lib/bpf/ |
| H A D | libbpf.c | 2285 struct utsname uts; in bpf_object__read_kconfig_file() local 2289 uname(&uts); in bpf_object__read_kconfig_file() 2290 len = snprintf(buf, PATH_MAX, "/boot/config-%s", uts.release); in bpf_object__read_kconfig_file()
|