Home
last modified time | relevance | path

Searched refs:uts (Results 1 – 20 of 20) sorted by relevance

/linux-6.6.21/tools/power/cpupower/utils/
Dcpupower-info.c34 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()
Dcpupower-set.c38 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()
Dcpupower.c180 struct utsname uts; in main() local
217 ret = uname(&uts); in main()
219 if (!ret && !strcmp(uts.machine, "x86_64") && in main()
/linux-6.6.21/kernel/time/
Dtime.c872 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.6.21/include/linux/
Dtime.h12 const struct __kernel_timespec __user *uts);
14 struct __kernel_timespec __user *uts);
Dcompat.h718 struct old_timespec32 __user *uts, compat_size_t sigsetsize);
721 struct __kernel_timespec __user *uts, compat_size_t sigsetsize);
Dsyscalls.h640 const struct __kernel_timespec __user *uts,
644 const struct old_timespec32 __user *uts,
/linux-6.6.21/tools/perf/util/
Denv.c387 struct utsname uts; in perf_env__read_arch() local
392 if (!uname(&uts)) in perf_env__read_arch()
393 env->arch = strdup(uts.machine); in perf_env__read_arch()
460 static struct utsname uts = { .machine[0] = '\0', }; in perf_env__arch() local
461 if (uts.machine[0] == '\0' && uname(&uts) < 0) in perf_env__arch()
463 arch_name = uts.machine; in perf_env__arch()
Dcputopo.c225 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()
Dheader.c345 struct utsname uts; in write_hostname() local
348 ret = uname(&uts); in write_hostname()
352 return do_write_string(ff, uts.nodename); in write_hostname()
358 struct utsname uts; in write_osrelease() local
361 ret = uname(&uts); in write_osrelease()
365 return do_write_string(ff, uts.release); in write_osrelease()
371 struct utsname uts; in write_arch() local
374 ret = uname(&uts); in write_arch()
378 return do_write_string(ff, uts.machine); in write_arch()
Dsymbol.c2512 struct utsname uts; in vmlinux_path__init() local
2533 if (uname(&uts) < 0) in vmlinux_path__init()
2536 kernel_version = uts.release; in vmlinux_path__init()
/linux-6.6.21/drivers/tty/serial/
Dimx.c340 u32 ucr2, ubir, ubmr, uts; in imx_uart_soft_reset() local
355 uts = imx_uart_readl(sport, IMX21_UTS); in imx_uart_soft_reset()
366 imx_uart_writel(sport, uts, IMX21_UTS); in imx_uart_soft_reset()
373 unsigned int uts; in imx_uart_disable_loopback_rs485() local
376 uts = imx_uart_readl(sport, imx_uart_uts_reg(sport)); in imx_uart_disable_loopback_rs485()
377 uts &= ~UTS_LOOP; in imx_uart_disable_loopback_rs485()
378 imx_uart_writel(sport, uts, imx_uart_uts_reg(sport)); in imx_uart_disable_loopback_rs485()
475 u32 ucr1, ucr2, ucr4, uts; in imx_uart_stop_rx() local
495 uts = imx_uart_readl(sport, imx_uart_uts_reg(sport)); in imx_uart_stop_rx()
496 uts |= UTS_LOOP; in imx_uart_stop_rx()
[all …]
/linux-6.6.21/tools/testing/selftests/powerpc/
Dutils.c480 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.6.21/kernel/
Dsignal.c3665 const struct __kernel_timespec __user *, uts, in SYSCALL_DEFINE4() argument
3680 if (uts) { in SYSCALL_DEFINE4()
3681 if (get_timespec64(&ts, uts)) in SYSCALL_DEFINE4()
3685 ret = do_sigtimedwait(&these, &info, uts ? &ts : NULL); in SYSCALL_DEFINE4()
3698 const struct old_timespec32 __user *, uts, in SYSCALL_DEFINE4() argument
3712 if (uts) { in SYSCALL_DEFINE4()
3713 if (get_old_timespec32(&ts, uts)) in SYSCALL_DEFINE4()
3717 ret = do_sigtimedwait(&these, &info, uts ? &ts : NULL); in SYSCALL_DEFINE4()
3731 struct __kernel_timespec __user *, uts, compat_size_t, sigsetsize) in COMPAT_SYSCALL_DEFINE4() argument
3744 if (uts) { in COMPAT_SYSCALL_DEFINE4()
[all …]
/linux-6.6.21/kernel/power/
Dpower.h11 struct new_utsname uts; member
Dsnapshot.c2163 memcpy(&info->uts, init_utsname(), sizeof(struct new_utsname)); in init_header_complete()
2172 if (strcmp(info->uts.sysname,init_utsname()->sysname)) in check_image_kernel()
2174 if (strcmp(info->uts.release,init_utsname()->release)) in check_image_kernel()
2176 if (strcmp(info->uts.version,init_utsname()->version)) in check_image_kernel()
2178 if (strcmp(info->uts.machine,init_utsname()->machine)) in check_image_kernel()
/linux-6.6.21/tools/perf/
Dbuiltin-top.c171 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()
Dbuiltin-script.c3823 struct utsname uts; in cmd_script() local
4241 uname(&uts); in cmd_script()
4245 if (!strcmp(uts.machine, session->header.env.arch)) in cmd_script()
4247 else if (!strcmp(uts.machine, "x86_64") && in cmd_script()
/linux-6.6.21/io_uring/
Dio_uring.c2570 struct __kernel_timespec __user *uts) in io_cqring_wait() argument
2607 if (uts) { in io_cqring_wait()
2610 if (get_timespec64(&ts, uts)) in io_cqring_wait()
/linux-6.6.21/tools/lib/bpf/
Dlibbpf.c1974 struct utsname uts; in bpf_object__read_kconfig_file() local
1978 uname(&uts); in bpf_object__read_kconfig_file()
1979 len = snprintf(buf, PATH_MAX, "/boot/config-%s", uts.release); in bpf_object__read_kconfig_file()