Home
last modified time | relevance | path

Searched refs:NSEC_PER_MSEC (Results 1 – 22 of 22) sorted by relevance

/Zephyr-latest/tests/kernel/common/src/
Dboot_delay.c36 (NSEC_PER_MSEC * CONFIG_BOOT_DELAY), in ZTEST()
39 (NSEC_PER_MSEC * CONFIG_BOOT_DELAY)); in ZTEST()
/Zephyr-latest/lib/posix/options/
Dtimespec_to_timeout.c24 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()
Dclock.c221 (uint64_t)k_sleep(K_SECONDS(rqtp->tv_sec - 1)) * NSEC_PER_MSEC; in __z_clock_nanosleep()
Dtimer.c219 nsecs = (int64_t)leftover * NSEC_PER_MSEC; in timer_gettime()
/Zephyr-latest/tests/lib/c_lib/thrd/src/
Dthrd.h25 ts->tv_nsec += ms * NSEC_PER_MSEC; in timespec_add_ms()
Dthrd.c31 duration = (struct timespec){.tv_nsec = delay_ms[i] * NSEC_PER_MSEC}; in ZTEST()
/Zephyr-latest/include/zephyr/posix/
Dtime.h90 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/
Dtest_connect1.c153 ((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/
Dthread_flags.c160 time_delta_ms = (uint32_t)time_delta_ns / NSEC_PER_MSEC; in osThreadFlagsWait()
/Zephyr-latest/subsys/portability/cmsis_rtos_v1/
Dcmsis_signal.c146 time_delta_ms = (uint32_t)time_delta_ns/NSEC_PER_MSEC; in osSignalWait()
/Zephyr-latest/include/zephyr/
Dsys_clock.h86 #define NSEC_PER_MSEC 1000000U macro
/Zephyr-latest/samples/posix/philosophers/src/
Dmain.c128 uptime = ts.tv_sec * MSEC_PER_SEC + (ts.tv_nsec / NSEC_PER_MSEC); in get_random_delay()
/Zephyr-latest/tests/posix/common/src/
Dtimer.c141 value.it_value.tv_nsec = 100 * NSEC_PER_MSEC; in ZTEST()
Dmutex.c174 ts->tv_nsec += ms * NSEC_PER_MSEC; in timespec_add_ms()
Dpthread.c418 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()
Dclock.c193 x_i = tp_diff(&now, &then) / NSEC_PER_MSEC; in ZTEST()
/Zephyr-latest/drivers/flash/
Dspi_nor.c1742 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/
Dmsg.c322 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()
Dport.c386 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/
Dieee802154_radio.h314 DIV_ROUND_UP(NSEC_PER_MSEC, symbol_period_ns)
/Zephyr-latest/samples/net/sockets/txtime/src/
Dmain.c171 interval = CONFIG_NET_SAMPLE_PACKET_INTERVAL * NSEC_PER_MSEC; in tx()
/Zephyr-latest/subsys/logging/
Dlog_core.c247 return ((uint64_t)tspec.tv_sec * MSEC_PER_SEC) + (tspec.tv_nsec / NSEC_PER_MSEC); in default_rt_get_timestamp()