Home
last modified time | relevance | path

Searched refs:NSEC_PER_USEC (Results 1 – 25 of 28) sorted by relevance

12

/Zephyr-latest/subsys/testsuite/include/zephyr/
Dtimestamp.h108 (NSEC_PER_USEC * USEC_PER_MSEC))) { in high_timer_overflow()
/Zephyr-latest/modules/canopennode/
Dcanopen_sync.c44 elapsed = (uint32_t)k_cyc_to_ns_floor64(delta) / NSEC_PER_USEC; in canopen_sync_thread()
/Zephyr-latest/subsys/net/l2/ieee802154/
Dieee802154_radio_csma_ca.c39 NSEC_PER_USEC; in unslotted_csma_ca_channel_access()
Dieee802154_utils.h497 NSEC_PER_USEC; in ieee802154_get_a_base_superframe_duration()
/Zephyr-latest/tests/subsys/portability/cmsis_rtos_v1/src/
Dkernel_apis.c64 start_time) / NSEC_PER_USEC; in ZTEST()
/Zephyr-latest/include/zephyr/net/
Dsocket_select.h54 .tv_nsec = (long)((timeout == NULL) ? 0 : timeout->tv_usec * NSEC_PER_USEC)}; in zsock_select()
/Zephyr-latest/include/zephyr/
Dsys_clock.h83 #define NSEC_PER_USEC 1000U macro
113 #define NSEC_PER_SEC ((NSEC_PER_USEC) * (USEC_PER_MSEC) * (MSEC_PER_SEC))
/Zephyr-latest/drivers/flash/
Djesd216.c273 value *= NSEC_PER_USEC; in jesd216_bfp_decode_dw14()
276 value *= 8 * NSEC_PER_USEC; in jesd216_bfp_decode_dw14()
279 value *= 64 * NSEC_PER_USEC; in jesd216_bfp_decode_dw14()
Dspi_flash_at45.c719 NSEC_PER_USEC), \
722 NSEC_PER_USEC), \
Dnrf_qspi_nor.c1220 DIV_ROUND_UP(t_enter_dpd, NSEC_PER_USEC); in enter_dpd()
1265 DIV_ROUND_UP(t_exit_dpd, NSEC_PER_USEC); in exit_dpd()
/Zephyr-latest/arch/arm/core/cortex_m/
Dtiming.c116 return (cycles) * (NSEC_PER_USEC) / arch_timing_freq_get_mhz(); in arch_timing_cycles_to_ns()
/Zephyr-latest/samples/subsys/zbus/benchmark/src/
Dbenchmark.c16 #define GET_ARCH_TIME_NS() (native_rtc_gettime_us(RTC_CLOCK_PSEUDOHOSTREALTIME) * NSEC_PER_USEC)
/Zephyr-latest/drivers/ieee802154/
Dieee802154_nrf5.c205 net_pkt_set_timestamp_ns(pkt, rx_frame->time * NSEC_PER_USEC); in nrf5_rx_thread()
450 net_pkt_set_timestamp_ns(ack_pkt, nrf5_radio->ack_frame.time * NSEC_PER_USEC); in handle_ack()
567 net_pkt_timestamp_ns(pkt) / NSEC_PER_USEC); in nrf5_tx_at()
680 return (net_time_t)nrf_802154_time_get() * NSEC_PER_USEC; in nrf5_get_time()
1009 NSEC_PER_USEC)); in nrf5_configure()
1021 nrf_802154_receive_at(config->rx_slot.start / NSEC_PER_USEC, in nrf5_configure()
1022 config->rx_slot.duration / NSEC_PER_USEC, in nrf5_configure()
1058 config->expected_tx_time / NSEC_PER_USEC)); in nrf5_configure()
/Zephyr-latest/lib/posix/options/
Dclock.c242 us = DIV_ROUND_UP(ns, NSEC_PER_USEC); in __z_clock_nanosleep()
283 tv->tv_usec = ts.tv_nsec / NSEC_PER_USEC; in gettimeofday()
Ddevice_io.c126 .tv_nsec = (long)((timeout == NULL) ? 0 : timeout->tv_usec * NSEC_PER_USEC)}; in select()
/Zephyr-latest/samples/boards/bbc/microbit/sound/src/
Dmain.c74 printk("Period is %u us (%u Hz)\n", period / NSEC_PER_USEC, in button_pressed()
/Zephyr-latest/tests/posix/common/src/
Dnanosleep.c187 exp_ns = DIV_ROUND_UP(exp_ns, NSEC_PER_USEC) * NSEC_PER_USEC; in common_lower_bound_check()
Dclock.c39 ts->tv_nsec = tv->tv_usec * NSEC_PER_USEC; in tv_to_ts()
/Zephyr-latest/tests/subsys/openthread/
Dradio_test.c290 get_time_mock_fake.return_val = (int64_t)UINT32_MAX * NSEC_PER_USEC + 1000; in ZTEST()
296 NSEC_PER_USEC; in ZTEST()
918 zassert_equal((sample_time - phr_duration) * NSEC_PER_USEC, in ZTEST()
949 zassert_equal(start * NSEC_PER_USEC, custom_configure_rx_slot_mock_config.rx_slot.start); in ZTEST()
950 zassert_equal(duration * NSEC_PER_USEC, in ZTEST()
/Zephyr-latest/modules/openthread/platform/
Dradio.c203 ack_frame.mInfo.mRxInfo.mTimestamp = net_pkt_timestamp_ns(pkt) / NSEC_PER_USEC; in ieee802154_handle_ack()
325 __ASSERT_NO_MSG(result <= INT64_MAX / NSEC_PER_USEC); in convert_32bit_us_wrapped_to_64bit_ns()
326 return (net_time_t)result * NSEC_PER_USEC; in convert_32bit_us_wrapped_to_64bit_ns()
516 recv_frame.mInfo.mRxInfo.mTimestamp = net_pkt_timestamp_ns(pkt) / NSEC_PER_USEC; in openthread_handle_received_frame()
817 .rx_slot.duration = (net_time_t)aDuration * NSEC_PER_USEC, in otPlatRadioReceiveAt()
1251 return radio_api->get_time(radio_dev) / NSEC_PER_USEC; in otPlatTimeGet()
/Zephyr-latest/subsys/net/lib/shell/
Dgptp.c375 (NSEC_PER_USEC * USEC_PER_MSEC)); in gptp_print_port_info()
379 (NSEC_PER_USEC * USEC_PER_MSEC)); in gptp_print_port_info()
/Zephyr-latest/lib/os/zvfs/
Dzvfs_select.c144 K_USEC(timeout->tv_sec * USEC_PER_SEC + timeout->tv_nsec / NSEC_PER_USEC); in z_impl_zvfs_select()
/Zephyr-latest/drivers/spi/
Dspi_nxp_s32.c202 current_delay = NSEC_PER_USEC * prescaler_arr[prescaler] in spi_nxp_s32_getbestdelay()
237 current_delay = NSEC_PER_USEC * prescaler_arr[prescaler] in spi_nxp_s32_getbestdelay()
/Zephyr-latest/tests/kernel/fifo/fifo_timeout/src/
Dmain.c107 start_time) / NSEC_PER_USEC; in is_timeout_in_range()
/Zephyr-latest/samples/net/sockets/txtime/src/
Dmain.c172 delay = CONFIG_NET_SAMPLE_PACKET_TXTIME * NSEC_PER_USEC; in tx()

12