Lines Matching refs:top_data
60 struct counter_gecko_top_data top_data; member
77 (((struct counter_gecko_data *const)(alarm_data->dev)->data)->top_data.ticks)); in alarm_callback()
88 struct counter_gecko_top_data *top_data = (struct counter_gecko_top_data *)data; in top_callback() local
90 if (top_data->callback != NULL) { in top_callback()
91 top_data->callback(top_data->dev, in top_callback()
92 ((struct counter_top_cfg *)(top_data->user_data))->user_data); in top_callback()
100 *ticks = ((sl_sleeptimer_get_tick_count()) % (dev_data->top_data.ticks)); in counter_gecko_get_value()
118 error_code = sl_sleeptimer_start_timer(&top_timer, dev_data->top_data.ticks, top_callback, in counter_gecko_start()
119 (void *)&dev_data->top_data, 0, 0); in counter_gecko_start()
158 dev_data->top_data.callback = cfg->callback; in counter_gecko_set_top_value()
159 dev_data->top_data.ticks = cfg->ticks; in counter_gecko_set_top_value()
160 dev_data->top_data.dev = (struct device *)dev; in counter_gecko_set_top_value()
161 dev_data->top_data.user_data = (struct counter_top_cfg *)cfg; in counter_gecko_set_top_value()
164 (void *)&dev_data->top_data, 0, cfg->flags); in counter_gecko_set_top_value()
173 return dev_data->top_data.ticks; in counter_gecko_get_top_value()
259 dev_data->top_data.ticks = STIMER_MAX_VALUE; in counter_gecko_init()