Searched refs:new_value (Results 1 – 9 of 9) sorted by relevance
/tools/testing/selftests/timens/ |
D | timer.c | 20 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()
|
D | timerfd.c | 27 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/ |
D | test-timerfd.c | 9 struct itimerspec new_value; in main() local 15 if (timerfd_settime(fd, 0, &new_value, NULL) != 0) in main()
|
/tools/usb/usbip/libsrc/ |
D | sysfs_utils.c | 10 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()
|
D | sysfs_utils.h | 6 int write_sysfs_attribute(const char *attr_path, const char *new_value,
|
/tools/testing/selftests/mqueue/ |
D | mq_perf_tests.c | 249 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()
|
D | mq_open_tests.c | 129 int new_value; in set() local 135 new_value = get(stream); in set() 136 if (new_value != value) in set()
|
/tools/perf/ |
D | builtin-kvm.c | 852 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/ |
D | cpufreq.c | 170 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()
|