Lines Matching full:alarm
55 /* Alarm-related data */
56 struct counter_ra_agt_alarm alarm; /* Counter alarm config struct */ member
59 uint32_t guard_period; /* Absolute counter alarm's guard period */
174 struct counter_ra_agt_alarm *const alarm = &data->alarm; in counter_ra_agt_set_alarm() local
183 LOG_ERR("%s: alarm ticks is larger than top value", __func__); in counter_ra_agt_set_alarm()
187 if (alarm->callback) { in counter_ra_agt_set_alarm()
191 alarm->callback = alarm_cfg->callback; in counter_ra_agt_set_alarm()
192 alarm->data = alarm_cfg->user_data; in counter_ra_agt_set_alarm()
203 /* Acceptable alarm value range, counting from current tick (now) */ in counter_ra_agt_set_alarm()
219 /* Recalculate alarm tick timestamp based on current tick (now) */ in counter_ra_agt_set_alarm()
235 /* Interrupt is triggered always for relative alarm and in counter_ra_agt_set_alarm()
243 alarm->callback = NULL; in counter_ra_agt_set_alarm()
244 alarm->data = NULL; in counter_ra_agt_set_alarm()
264 data->alarm.callback = NULL; in counter_ra_agt_cancel_alarm()
265 data->alarm.data = NULL; in counter_ra_agt_cancel_alarm()
321 struct counter_ra_agt_alarm *const alarm = &data->alarm; in counter_ra_agt_agtcmai_isr() local
325 const counter_alarm_callback_t cb = alarm->callback; in counter_ra_agt_agtcmai_isr()
326 void *cb_data = alarm->data; in counter_ra_agt_agtcmai_isr()
328 alarm->callback = NULL; in counter_ra_agt_agtcmai_isr()
329 alarm->data = NULL; in counter_ra_agt_agtcmai_isr()