Lines Matching refs:uint64_t
44 ((uint64_t)sys_clock_hw_cycles_per_sec() / (uint64_t)CONFIG_SYS_CLOCK_TICKS_PER_SEC)
46 #define COUNTER_SPAN (GRTC_SYSCOUNTERL_VALUE_Msk | ((uint64_t)GRTC_SYSCOUNTERH_VALUE_Msk << 32))
58 static void sys_clock_timeout_handler(int32_t id, uint64_t cc_val, void *p_context);
61 static uint64_t last_count; /* Time (SYSCOUNTER value) @last sys_clock_announce() */
74 static inline uint64_t counter_sub(uint64_t a, uint64_t b) in counter_sub()
79 static inline uint64_t counter(void) in counter()
81 uint64_t now; in counter()
86 static inline int get_comparator(uint32_t chan, uint64_t *cc) in get_comparator()
103 static void system_timeout_set_relative(uint64_t value) in system_timeout_set_relative()
117 static void system_timeout_set_abs(uint64_t value) in system_timeout_set_abs()
140 static void sys_clock_timeout_handler(int32_t id, uint64_t cc_val, void *p_context) in sys_clock_timeout_handler()
144 uint64_t dticks; in sys_clock_timeout_handler()
145 uint64_t now = counter(); in sys_clock_timeout_handler()
215 uint64_t z_nrf_grtc_timer_read(void) in z_nrf_grtc_timer_read()
234 int z_nrf_grtc_timer_compare_read(int32_t chan, uint64_t *val) in z_nrf_grtc_timer_compare_read()
241 static int compare_set_nolocks(int32_t chan, uint64_t target_time, in compare_set_nolocks()
259 static int compare_set(int32_t chan, uint64_t target_time, in compare_set()
270 int z_nrf_grtc_timer_set(int32_t chan, uint64_t target_time, in z_nrf_grtc_timer_set()
287 uint64_t z_nrf_grtc_timer_get_ticks(k_timeout_t t) in z_nrf_grtc_timer_get_ticks()
289 uint64_t curr_time; in z_nrf_grtc_timer_get_ticks()
340 int z_nrf_grtc_timer_capture_read(int32_t chan, uint64_t *captured_time) in z_nrf_grtc_timer_capture_read()
346 uint64_t capt_time; in z_nrf_grtc_timer_capture_read()
371 int z_nrf_grtc_wakeup_prepare(uint64_t wake_time_us) in z_nrf_grtc_wakeup_prepare()
375 uint64_t now = counter(); in z_nrf_grtc_wakeup_prepare()
450 uint64_t sys_clock_cycle_get_64(void) in sys_clock_cycle_get_64()
453 uint64_t ret = counter(); in sys_clock_cycle_get_64()
534 uint64_t delta_time = ticks * CYC_PER_TICK; in sys_clock_set_timeout()
536 uint64_t target_time = counter() + delta_time; in sys_clock_set_timeout()