Home
last modified time | relevance | path

Searched refs:new_value (Results 1 – 9 of 9) sorted by relevance

/tools/testing/selftests/timens/
Dtimer.c20 struct itimerspec new_value; in run_test() local
32 new_value.it_value.tv_sec = 3600; in run_test()
33 new_value.it_value.tv_nsec = 0; in run_test()
34 new_value.it_interval.tv_sec = 1; in run_test()
35 new_value.it_interval.tv_nsec = 0; in run_test()
38 new_value.it_value.tv_sec += now.tv_sec; in run_test()
39 new_value.it_value.tv_nsec += now.tv_nsec; in run_test()
52 if (timer_settime(fd, flags, &new_value, NULL) == -1) in run_test()
55 if (timer_gettime(fd, &new_value) == -1) in run_test()
58 elapsed = new_value.it_value.tv_sec; in run_test()
Dtimerfd.c27 struct itimerspec new_value; in run_test() local
40 new_value.it_value.tv_sec = 3600; in run_test()
41 new_value.it_value.tv_nsec = 0; in run_test()
42 new_value.it_interval.tv_sec = 1; in run_test()
43 new_value.it_interval.tv_nsec = 0; in run_test()
46 new_value.it_value.tv_sec += now.tv_sec; in run_test()
47 new_value.it_value.tv_nsec += now.tv_nsec; in run_test()
57 if (timerfd_settime(fd, flags, &new_value, NULL)) in run_test()
60 if (timerfd_gettime(fd, &new_value)) in run_test()
63 elapsed = new_value.it_value.tv_sec; in run_test()
/tools/build/feature/
Dtest-timerfd.c9 struct itimerspec new_value; in main() local
15 if (timerfd_settime(fd, 0, &new_value, NULL) != 0) in main()
/tools/usb/usbip/libsrc/
Dsysfs_utils.c10 int write_sysfs_attribute(const char *attr_path, const char *new_value, in write_sysfs_attribute() argument
22 length = write(fd, new_value, len); in write_sysfs_attribute()
Dsysfs_utils.h6 int write_sysfs_attribute(const char *attr_path, const char *new_value,
/tools/testing/selftests/mqueue/
Dmq_perf_tests.c249 int new_value; in set() local
254 new_value = get(stream); in set()
255 if (new_value != value) in set()
262 int new_value; in try_set() local
266 new_value = get(stream); in try_set()
267 return new_value == value; in try_set()
Dmq_open_tests.c129 int new_value; in set() local
135 new_value = get(stream); in set()
136 if (new_value != value) in set()
/tools/perf/
Dbuiltin-kvm.c852 struct itimerspec new_value; in perf_kvm__timerfd_create() local
861 new_value.it_value.tv_sec = kvm->display_time; in perf_kvm__timerfd_create()
862 new_value.it_value.tv_nsec = 0; in perf_kvm__timerfd_create()
863 new_value.it_interval.tv_sec = kvm->display_time; in perf_kvm__timerfd_create()
864 new_value.it_interval.tv_nsec = 0; in perf_kvm__timerfd_create()
866 if (timerfd_settime(kvm->timerfd, 0, &new_value, NULL) != 0) { in perf_kvm__timerfd_create()
/tools/power/cpupower/lib/
Dcpufreq.c170 const char *new_value, size_t len) in sysfs_cpufreq_write_one_value() argument
176 new_value, len) != len) in sysfs_cpufreq_write_one_value()