Lines Matching full:channels
40 /* array of all task watchdog channels */
41 static struct task_wdt_channel channels[CONFIG_TASK_WDT_CHANNELS]; variable
68 /* find minimum timeout of all channels */ in schedule_next_timeout()
69 for (int id = 0; id < ARRAY_SIZE(channels); id++) { in schedule_next_timeout()
70 if (channels[id].reload_period != 0 && in schedule_next_timeout()
71 channels[id].timeout_abs_ticks < next_timeout) { in schedule_next_timeout()
73 next_timeout = channels[id].timeout_abs_ticks; in schedule_next_timeout()
113 if (bg_channel || channels[channel_id].reload_period == 0) { in task_wdt_trigger()
118 if (channels[channel_id].callback) { in task_wdt_trigger()
119 channels[channel_id].callback(channel_id, in task_wdt_trigger()
120 channels[channel_id].user_data); in task_wdt_trigger()
171 for (int id = 0; id < ARRAY_SIZE(channels); id++) { in task_wdt_add()
172 if (channels[id].reload_period == 0) { in task_wdt_add()
173 channels[id].reload_period = reload_period; in task_wdt_add()
174 channels[id].user_data = user_data; in task_wdt_add()
175 channels[id].timeout_abs_ticks = K_TICKS_FOREVER; in task_wdt_add()
176 channels[id].callback = callback; in task_wdt_add()
204 if (channel_id < 0 || channel_id >= ARRAY_SIZE(channels)) { in task_wdt_delete()
210 channels[channel_id].reload_period = 0; in task_wdt_delete()
221 if (channel_id < 0 || channel_id >= ARRAY_SIZE(channels)) { in task_wdt_feed()
227 * channels array in order to prevent priority inversion. Otherwise, in task_wdt_feed()
236 channels[channel_id].timeout_abs_ticks = current_ticks + in task_wdt_feed()
237 k_ms_to_ticks_ceil64(channels[channel_id].reload_period); in task_wdt_feed()