Lines Matching refs:alarm
59 struct counter_gecko_alarm_data alarm[STIMER_ALARM_NUM]; member
203 dev_data->alarm[chan_id].ticks = top_val + (alarm_cfg->ticks - now_ticks); in counter_gecko_set_alarm()
205 dev_data->alarm[chan_id].ticks = in counter_gecko_set_alarm()
211 dev_data->alarm[chan_id].ticks = alarm_cfg->ticks; in counter_gecko_set_alarm()
214 dev_data->alarm[chan_id].callback = alarm_cfg->callback; in counter_gecko_set_alarm()
215 dev_data->alarm[chan_id].chan_id = chan_id; in counter_gecko_set_alarm()
216 dev_data->alarm[chan_id].dev = (struct device *)dev; in counter_gecko_set_alarm()
217 dev_data->alarm[chan_id].user_data = (struct counter_alarm_cfg *)alarm_cfg; in counter_gecko_set_alarm()
220 sl_sleeptimer_start_timer(&alarm_timer[chan_id], dev_data->alarm[chan_id].ticks, in counter_gecko_set_alarm()
221 alarm_callback, (void *)&dev_data->alarm[chan_id], 0, 0); in counter_gecko_set_alarm()
237 dev_data->alarm[chan_id].callback = NULL; in counter_gecko_cancel_alarm()
238 dev_data->alarm[chan_id].user_data = NULL; in counter_gecko_cancel_alarm()