Lines Matching refs:channels
41 static struct task_wdt_channel channels[CONFIG_TASK_WDT_CHANNELS]; variable
68 for (int id = 0; id < ARRAY_SIZE(channels); id++) { in schedule_next_timeout()
69 if (channels[id].reload_period != 0 && in schedule_next_timeout()
70 channels[id].timeout_abs_ticks < next_timeout) { in schedule_next_timeout()
72 next_timeout = channels[id].timeout_abs_ticks; in schedule_next_timeout()
112 if (bg_channel || channels[channel_id].reload_period == 0) { in task_wdt_trigger()
117 if (channels[channel_id].callback) { in task_wdt_trigger()
118 channels[channel_id].callback(channel_id, in task_wdt_trigger()
119 channels[channel_id].user_data); in task_wdt_trigger()
157 for (int id = 0; id < ARRAY_SIZE(channels); id++) { in task_wdt_add()
158 if (channels[id].reload_period == 0) { in task_wdt_add()
159 channels[id].reload_period = reload_period; in task_wdt_add()
160 channels[id].user_data = user_data; in task_wdt_add()
161 channels[id].timeout_abs_ticks = K_TICKS_FOREVER; in task_wdt_add()
162 channels[id].callback = callback; in task_wdt_add()
184 if (channel_id < 0 || channel_id >= ARRAY_SIZE(channels)) { in task_wdt_delete()
188 channels[channel_id].reload_period = 0; in task_wdt_delete()
197 if (channel_id < 0 || channel_id >= ARRAY_SIZE(channels)) { in task_wdt_feed()
212 channels[channel_id].timeout_abs_ticks = current_ticks + in task_wdt_feed()
213 k_ms_to_ticks_ceil64(channels[channel_id].reload_period); in task_wdt_feed()