Home
last modified time | relevance | path

Searched refs:cur_ts (Results 1 – 2 of 2) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/timens/
Dtimens.c90 struct timespec child_ts_new, parent_ts_old, cur_ts; in test_gettime() local
116 if (_gettime(clocks[clock_index].id, &cur_ts, raw_syscall)) in test_gettime()
119 if (difftime(cur_ts.tv_sec, child_ts_new.tv_sec) < precision) { in test_gettime()
123 child_ts_new.tv_sec, cur_ts.tv_sec); in test_gettime()
130 if (_gettime(clocks[clock_index].id, &cur_ts, raw_syscall)) in test_gettime()
133 if (difftime(cur_ts.tv_sec, parent_ts_old.tv_sec) > DAY_IN_SEC) { in test_gettime()
137 child_ts_new.tv_sec, cur_ts.tv_sec); in test_gettime()
139 clock_settime(clocks[clock_index].id, &cur_ts); in test_gettime()
/external/libusb/libusb/
Dio.c1370 struct timespec *cur_ts = &itransfer->timeout; in arm_timer_for_next_timeout() local
1374 if (!TIMESPEC_IS_SET(cur_ts)) in arm_timer_for_next_timeout()
1380 return usbi_arm_timer(&ctx->timer, cur_ts); in arm_timer_for_next_timeout()
1424 struct timespec *cur_ts = &cur->timeout; in add_to_flying_list() local
1426 if (!TIMESPEC_IS_SET(cur_ts) || TIMESPEC_CMP(cur_ts, timeout, >)) { in add_to_flying_list()
2069 struct timespec *cur_ts = &itransfer->timeout; in handle_timeouts_locked() local
2072 if (!TIMESPEC_IS_SET(cur_ts)) in handle_timeouts_locked()
2080 if (TIMESPEC_CMP(cur_ts, &systime, >)) in handle_timeouts_locked()