Searched refs:NSEC_PER_MSEC (Results 1 – 22 of 22) sorted by relevance
/Zephyr-latest/tests/kernel/common/src/ |
D | boot_delay.c | 36 (NSEC_PER_MSEC * CONFIG_BOOT_DELAY), in ZTEST() 39 (NSEC_PER_MSEC * CONFIG_BOOT_DELAY)); in ZTEST()
|
/Zephyr-latest/lib/posix/options/ |
D | timespec_to_timeout.c | 24 if (secs < 0 || (secs == 0 && nsecs < NSEC_PER_MSEC)) { in timespec_to_timeoutms() 27 milli_secs = secs * MSEC_PER_SEC + nsecs / NSEC_PER_MSEC; in timespec_to_timeoutms()
|
D | clock.c | 221 (uint64_t)k_sleep(K_SECONDS(rqtp->tv_sec - 1)) * NSEC_PER_MSEC; in __z_clock_nanosleep()
|
D | timer.c | 219 nsecs = (int64_t)leftover * NSEC_PER_MSEC; in timer_gettime()
|
/Zephyr-latest/tests/lib/c_lib/thrd/src/ |
D | thrd.h | 25 ts->tv_nsec += ms * NSEC_PER_MSEC; in timespec_add_ms()
|
D | thrd.c | 31 duration = (struct timespec){.tv_nsec = delay_ms[i] * NSEC_PER_MSEC}; in ZTEST()
|
/Zephyr-latest/include/zephyr/posix/ |
D | time.h | 90 return (int32_t)(to->tv_sec * MSEC_PER_SEC) + (int32_t)(to->tv_nsec / NSEC_PER_MSEC); in _ts_to_ms()
|
/Zephyr-latest/tests/bsim/bluetooth/ll/conn/src/ |
D | test_connect1.c | 153 ((delta > (NSEC_PER_MSEC / 2U)) && in notify_func() 154 (delta < (NSEC_PER_MSEC + (NSEC_PER_MSEC / 2U))))) { in notify_func()
|
/Zephyr-latest/subsys/portability/cmsis_rtos_v2/ |
D | thread_flags.c | 160 time_delta_ms = (uint32_t)time_delta_ns / NSEC_PER_MSEC; in osThreadFlagsWait()
|
/Zephyr-latest/subsys/portability/cmsis_rtos_v1/ |
D | cmsis_signal.c | 146 time_delta_ms = (uint32_t)time_delta_ns/NSEC_PER_MSEC; in osSignalWait()
|
/Zephyr-latest/include/zephyr/ |
D | sys_clock.h | 86 #define NSEC_PER_MSEC 1000000U macro
|
/Zephyr-latest/samples/posix/philosophers/src/ |
D | main.c | 128 uptime = ts.tv_sec * MSEC_PER_SEC + (ts.tv_nsec / NSEC_PER_MSEC); in get_random_delay()
|
/Zephyr-latest/tests/posix/common/src/ |
D | timer.c | 141 value.it_value.tv_nsec = 100 * NSEC_PER_MSEC; in ZTEST()
|
D | mutex.c | 174 ts->tv_nsec += ms * NSEC_PER_MSEC; in timespec_add_ms()
|
D | pthread.c | 418 not_done.tv_nsec += sleep_duration_ms / 2 * NSEC_PER_MSEC; in ZTEST() 419 done.tv_nsec += sleep_duration_ms * 1.5 * NSEC_PER_MSEC; in ZTEST()
|
D | clock.c | 193 x_i = tp_diff(&now, &then) / NSEC_PER_MSEC; in ZTEST()
|
/Zephyr-latest/drivers/flash/ |
D | spi_nor.c | 1742 DIV_ROUND_UP(DT_INST_PROP(idx, t_enter_dpd), NSEC_PER_MSEC)),\ 1749 (.t_exit_dpd = DIV_ROUND_UP(DT_INST_PROP(idx, t_exit_dpd), NSEC_PER_MSEC)),\ 1760 DT_INST_PROP_BY_IDX(idx, dpd_wakeup_sequence, 0), NSEC_PER_MSEC),\ 1762 DT_INST_PROP_BY_IDX(idx, dpd_wakeup_sequence, 1), NSEC_PER_MSEC),\ 1764 DT_INST_PROP_BY_IDX(idx, dpd_wakeup_sequence, 2), NSEC_PER_MSEC)),\
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | msg.c | 322 msg->timestamp.host.nanosecond = (current % MSEC_PER_SEC) * NSEC_PER_MSEC; in ptp_msg_pre_send() 415 msg->timestamp.host.nanosecond = (current % MSEC_PER_SEC) * NSEC_PER_MSEC; in ptp_msg_post_recv()
|
D | port.c | 386 int64_t timestamp, timeout, current = k_uptime_get() * NSEC_PER_MSEC; in foreign_clock_cleanup() 441 int64_t timestamp, current = k_uptime_get() * NSEC_PER_MSEC; in port_delay_req_cleanup()
|
/Zephyr-latest/include/zephyr/net/ |
D | ieee802154_radio.h | 314 DIV_ROUND_UP(NSEC_PER_MSEC, symbol_period_ns)
|
/Zephyr-latest/samples/net/sockets/txtime/src/ |
D | main.c | 171 interval = CONFIG_NET_SAMPLE_PACKET_INTERVAL * NSEC_PER_MSEC; in tx()
|
/Zephyr-latest/subsys/logging/ |
D | log_core.c | 247 return ((uint64_t)tspec.tv_sec * MSEC_PER_SEC) + (tspec.tv_nsec / NSEC_PER_MSEC); in default_rt_get_timestamp()
|