Lines Matching refs:counter_id

30 uint64_t systimer_hal_get_counter_value(systimer_hal_context_t *hal, uint32_t counter_id)  in systimer_hal_get_counter_value()  argument
34 systimer_ll_counter_snapshot(hal->dev, counter_id); in systimer_hal_get_counter_value()
35 while (!systimer_ll_is_counter_value_valid(hal->dev, counter_id)); in systimer_hal_get_counter_value()
41 lo_start = systimer_ll_get_counter_value_low(hal->dev, counter_id); in systimer_hal_get_counter_value()
44 hi = systimer_ll_get_counter_value_high(hal->dev, counter_id); in systimer_hal_get_counter_value()
45 lo_start = systimer_ll_get_counter_value_low(hal->dev, counter_id); in systimer_hal_get_counter_value()
56 uint64_t systimer_hal_get_time(systimer_hal_context_t *hal, uint32_t counter_id) in systimer_hal_get_time() argument
58 return systimer_hal_get_counter_value(hal, counter_id) / SYSTIMER_LL_TICKS_PER_US; in systimer_hal_get_time()
112 void systimer_hal_counter_value_advance(systimer_hal_context_t *hal, uint32_t counter_id, int64_t t… in systimer_hal_counter_value_advance() argument
114 …systimer_counter_value_t new_count = { .val = systimer_hal_get_counter_value(hal, counter_id) + ti… in systimer_hal_counter_value_advance()
115 systimer_ll_set_counter_value(hal->dev, counter_id, new_count.val); in systimer_hal_counter_value_advance()
116 systimer_ll_apply_counter_value(hal->dev, counter_id); in systimer_hal_counter_value_advance()
119 void systimer_hal_enable_counter(systimer_hal_context_t *hal, uint32_t counter_id) in systimer_hal_enable_counter() argument
121 systimer_ll_enable_counter(hal->dev, counter_id, true); in systimer_hal_enable_counter()
138 …imer_hal_connect_alarm_counter(systimer_hal_context_t *hal, uint32_t alarm_id, uint32_t counter_id) in systimer_hal_connect_alarm_counter() argument
140 systimer_ll_connect_alarm_counter(hal->dev, alarm_id, counter_id); in systimer_hal_connect_alarm_counter()
143 void systimer_hal_counter_can_stall_by_cpu(systimer_hal_context_t *hal, uint32_t counter_id, uint32… in systimer_hal_counter_can_stall_by_cpu() argument
145 systimer_ll_counter_can_stall_by_cpu(hal->dev, counter_id, cpu_id, can); in systimer_hal_counter_can_stall_by_cpu()