Lines Matching refs:lp_time

180 	uint32_t lp_time;  in z_clock_lptim_getcounter()  local
187 lp_time = LL_LPTIM_GetCounter(LPTIM); in z_clock_lptim_getcounter()
189 lp_time_prev_read = lp_time; in z_clock_lptim_getcounter()
190 lp_time = LL_LPTIM_GetCounter(LPTIM); in z_clock_lptim_getcounter()
191 } while (lp_time != lp_time_prev_read); in z_clock_lptim_getcounter()
192 return lp_time; in z_clock_lptim_getcounter()
288 uint32_t lp_time = z_clock_lptim_getcounter(); in sys_clock_set_timeout() local
293 || ((autoreload - lp_time) < LPTIM_GUARD_VALUE)) { in sys_clock_set_timeout()
305 next_arr = (((lp_time * CONFIG_SYS_CLOCK_TICKS_PER_SEC) in sys_clock_set_timeout()
320 else if (next_arr < (lp_time + LPTIM_GUARD_VALUE)) { in sys_clock_set_timeout()
321 next_arr = lp_time + LPTIM_GUARD_VALUE; in sys_clock_set_timeout()
334 uint32_t lp_time; in sys_clock_lp_time_get() local
341 lp_time = LL_LPTIM_GetAutoReload(LPTIM) + 1; in sys_clock_lp_time_get()
342 lp_time += z_clock_lptim_getcounter(); in sys_clock_lp_time_get()
346 lp_time = z_clock_lptim_getcounter(); in sys_clock_lp_time_get()
351 return lp_time; in sys_clock_lp_time_get()
363 uint32_t lp_time = sys_clock_lp_time_get(); in sys_clock_elapsed() local
370 uint64_t ret = ((uint64_t)lp_time * CONFIG_SYS_CLOCK_TICKS_PER_SEC) / lptim_clock_freq; in sys_clock_elapsed()
381 uint32_t lp_time = sys_clock_lp_time_get(); in sys_clock_cycle_get_32() local
383 lp_time += accumulated_lptim_cnt; in sys_clock_cycle_get_32()
386 uint64_t ret = ((uint64_t)lp_time * sys_clock_hw_cycles_per_sec()) / lptim_clock_freq; in sys_clock_cycle_get_32()