Lines Matching refs:onoff
57 struct clock_onoff *onoff = in onoff_start_option() local
60 CONTAINER_OF_ITEM(onoff, onoff->idx, in onoff_start_option()
61 struct clock_config_generic, onoff); in onoff_start_option()
63 onoff->notify = notify; in onoff_start_option()
65 (void)atomic_or(&cfg->flags, BIT(onoff->idx)); in onoff_start_option()
72 struct clock_onoff *onoff = in onoff_stop_option() local
75 CONTAINER_OF_ITEM(onoff, onoff->idx, in onoff_stop_option()
76 struct clock_config_generic, onoff); in onoff_stop_option()
78 (void)atomic_and(&cfg->flags, ~BIT(onoff->idx)); in onoff_stop_option()
136 rc = onoff_manager_init(&cfg->onoff[i].mgr, &transitions); in clock_config_init()
141 cfg->onoff[i].idx = (uint8_t)i; in clock_config_init()
176 onoff_notify_fn notify = cfg->onoff[i].notify; in clock_config_update_end()
189 cfg->onoff[i].notify = NULL; in clock_config_update_end()
190 notify(&cfg->onoff[i].mgr, status); in clock_config_update_end()