/Zephyr-latest/include/zephyr/posix/ |
D | time.h | 32 struct timespec { struct 38 struct timespec it_interval; /* Timer interval */ argument 39 struct timespec it_value; /* Timer expiration */ 88 static inline int32_t _ts_to_ms(const struct timespec *to) in _ts_to_ms() 93 int clock_gettime(clockid_t clock_id, struct timespec *ts); 94 int clock_getres(clockid_t clock_id, struct timespec *ts); 95 int clock_settime(clockid_t clock_id, const struct timespec *ts); 105 int nanosleep(const struct timespec *rqtp, struct timespec *rmtp); 107 const struct timespec *rqtp, struct timespec *rmtp);
|
D | mqueue.h | 41 unsigned int *msg_prio, const struct timespec *abstime); 43 unsigned int msg_prio, const struct timespec *abstime);
|
D | pthread.h | 108 const struct timespec *abstime); 217 const struct timespec *abstime); 432 int pthread_timedjoin_np(pthread_t thread, void **status, const struct timespec *abstime); 452 const struct timespec *abstime); 454 const struct timespec *abstime);
|
D | sched.h | 57 int sched_rr_get_interval(pid_t pid, struct timespec *interval);
|
D | semaphore.h | 22 int sem_timedwait(sem_t *ZRESTRICT semaphore, struct timespec *ZRESTRICT abstime);
|
/Zephyr-latest/tests/posix/common/src/ |
D | clock.c | 20 static const struct timespec ref_ts = {1514821501, NSEC_PER_SEC / 2U}; 31 static inline int64_t ts_to_ns(const struct timespec *ts) in ts_to_ns() 36 static inline void tv_to_ts(const struct timeval *tv, struct timespec *ts) in tv_to_ts() 45 static inline _type _name(const struct timespec *_a, const struct timespec *_b) \ 58 static inline bool tp_diff_in_range_ns(const struct timespec *a, const struct timespec *b, in tp_diff_in_range_ns() 68 struct timespec ts; in ZTEST() 85 ts = (struct timespec){-1, -1}; in ZTEST() 95 struct timespec ts; in ZTEST() 96 struct timespec rts; in ZTEST() 120 struct timespec ts = {0}; in ZTEST() [all …]
|
D | nanosleep.c | 18 const struct timespec *rqtp, struct timespec *rmtp) in select_nanosleep() 37 struct timespec rem = {}; in common_errors() 38 struct timespec req = {}; in common_errors() 56 req = (struct timespec){.tv_sec = -1, .tv_nsec = 0}; in common_errors() 61 req = (struct timespec){.tv_sec = 0, .tv_nsec = -1}; in common_errors() 66 req = (struct timespec){.tv_sec = -1, .tv_nsec = -1}; in common_errors() 72 req = (struct timespec){.tv_sec = 0, .tv_nsec = 1000000000}; in common_errors() 82 req = (struct timespec){.tv_sec = 1, .tv_nsec = 1}; in common_errors() 100 req = (struct timespec){.tv_sec = 0, .tv_nsec = 1}; in common_errors() 114 struct timespec rem = {}; in ZTEST() [all …]
|
/Zephyr-latest/lib/posix/options/ |
D | clock.c | 25 static struct timespec rt_clock_base; 33 int z_impl___posix_clock_get_base(clockid_t clock_id, struct timespec *base) in z_impl___posix_clock_get_base() 56 int z_vrfy___posix_clock_get_base(clockid_t clock_id, struct timespec *ts) in z_vrfy___posix_clock_get_base() 64 int clock_gettime(clockid_t clock_id, struct timespec *ts) in clock_gettime() 66 struct timespec base; in clock_gettime() 101 int clock_getres(clockid_t clock_id, struct timespec *res) in clock_getres() 114 *res = (struct timespec){ in clock_getres() 131 int clock_settime(clockid_t clock_id, const struct timespec *tp) in clock_settime() 133 struct timespec base; in clock_settime() 195 static int __z_clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, in __z_clock_nanosleep() [all …]
|
D | timespec_to_timeout.c | 11 int64_t timespec_to_timeoutms(const struct timespec *abstime) in timespec_to_timeoutms() 14 struct timespec curtime; in timespec_to_timeoutms()
|
D | posix_clock.h | 15 __syscall int __posix_clock_get_base(clockid_t clock_id, struct timespec *ts);
|
/Zephyr-latest/include/zephyr/posix/sys/ |
D | stat.h | 75 struct timespec st_atim; 76 struct timespec st_mtim; 77 struct timespec st_ctim; 86 struct timespec st_atim; 87 struct timespec st_mtim; 88 struct timespec st_ctim; 98 struct timespec st_atim; 99 struct timespec st_mtim; 100 struct timespec st_ctim; 216 int utimensat(int __fd, const char *__path, const struct timespec __times[2], int __flag); [all …]
|
D | select.h | 23 const struct timespec *timeout, const void *sigmask);
|
/Zephyr-latest/lib/libc/arcmwdt/include/sys/ |
D | timespec.h | 13 struct timespec it_interval; /* Timer interval */ 14 struct timespec it_value; /* Timer expiration */
|
/Zephyr-latest/lib/libc/armstdc/include/sys/ |
D | timespec.h | 15 struct timespec it_interval; /* Timer interval */ 16 struct timespec it_value; /* Timer expiration */
|
D | _timespec.h | 12 struct timespec { struct
|
/Zephyr-latest/lib/libc/minimal/include/sys/ |
D | timespec.h | 13 struct timespec it_interval; /* Timer interval */ 14 struct timespec it_value; /* Timer expiration */
|
D | _timespec.h | 22 struct timespec { struct
|
/Zephyr-latest/lib/libc/common/include/ |
D | threads.h | 37 int thrd_sleep(const struct timespec *duration, struct timespec *remaining); 55 int mtx_timedlock(mtx_t *ZRESTRICT mutex, const struct timespec *ZRESTRICT time_point); 61 int cnd_timedwait(cnd_t *ZRESTRICT cond, mtx_t *ZRESTRICT mtx, const struct timespec *ZRESTRICT ts);
|
/Zephyr-latest/samples/drivers/counter/maxim_ds3231/src/ |
D | main.c | 67 void timespec_subtract(struct timespec *amb, in timespec_subtract() 68 const struct timespec *a, in timespec_subtract() 69 const struct timespec *b) in timespec_subtract() 85 void timespec_add(struct timespec *apb, in timespec_add() 86 const struct timespec *a, in timespec_add() 87 const struct timespec *b) in timespec_add() 124 struct timespec adj; in min_alarm_handler() 134 struct timespec *ts = &sp.rtc; in min_alarm_handler()
|
/Zephyr-latest/lib/libc/common/source/thrd/ |
D | thrd.c | 45 int thrd_sleep(const struct timespec *duration, struct timespec *remaining) in thrd_sleep()
|
/Zephyr-latest/boards/native/native_posix/ |
D | timer_model.c | 132 static inline void host_clock_gettime(struct timespec *tv) in host_clock_gettime() 143 struct timespec tv; in get_host_us_time() 161 struct timespec tv; in hwtimer_init() 209 struct timespec requested_time; in hwtimer_tick_timer_reached() 210 struct timespec remaining; in hwtimer_tick_timer_reached() 396 struct timespec tv; in hwtimer_get_pseudohost_rtc_time()
|
/Zephyr-latest/scripts/native_simulator/native/src/ |
D | timer_model.c | 120 static inline void host_clock_gettime(struct timespec *tv) in host_clock_gettime() 136 struct timespec tv; in get_host_us_time() 154 struct timespec tv; in hwtimer_init() 199 struct timespec requested_time; in hwtimer_tick_timer_reached() 200 struct timespec remaining; in hwtimer_tick_timer_reached() 388 struct timespec tv; in hwtimer_get_pseudohost_rtc_time()
|
/Zephyr-latest/tests/lib/c_lib/thrd/src/ |
D | thrd.c | 22 struct timespec duration = {0}; in ZTEST() 23 struct timespec remaining; in ZTEST() 31 duration = (struct timespec){.tv_nsec = delay_ms[i] * NSEC_PER_MSEC}; in ZTEST() 32 remaining = (struct timespec){.tv_sec = 4242, .tv_nsec = 4242}; in ZTEST()
|
D | thrd.h | 21 static inline void timespec_add_ms(struct timespec *ts, uint32_t ms) in timespec_add_ms()
|
/Zephyr-latest/lib/libc/common/source/time/ |
D | time.c | 14 struct timespec ts; in time()
|