Home
last modified time | relevance | path

Searched refs:onoff_manager (Results 1 – 25 of 33) sorted by relevance

12

/Zephyr-latest/include/zephyr/sys/
Donoff.h84 struct onoff_manager;
101 typedef void (*onoff_notify_fn)(struct onoff_manager *mgr,
129 typedef void (*onoff_transition_fn)(struct onoff_manager *mgr,
154 struct onoff_manager { struct
221 int onoff_manager_init(struct onoff_manager *mgr,
252 typedef void (*onoff_client_callback)(struct onoff_manager *mgr,
315 static inline bool onoff_has_error(const struct onoff_manager *mgr) in onoff_has_error()
347 int onoff_request(struct onoff_manager *mgr,
368 int onoff_release(struct onoff_manager *mgr);
401 int onoff_cancel(struct onoff_manager *mgr,
[all …]
/Zephyr-latest/tests/drivers/clock_control/onoff/src/
Dtest_clock_control_onoff.c13 static struct onoff_manager *get_mgr(void) in get_mgr()
30 struct onoff_manager *mgr = get_mgr(); in clock_off()
41 struct onoff_manager *mgr = get_mgr(); in ZTEST()
64 struct onoff_manager *mgr = get_mgr(); in ZTEST()
83 static void request_cb(struct onoff_manager *mgr, struct onoff_client *cli, in request_cb()
99 struct onoff_manager *mgr = get_mgr(); in ZTEST()
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/
Dlll_clock.c29 static void clock_ready(struct onoff_manager *mgr, struct onoff_client *cli, in clock_ready()
38 static int blocking_on(struct onoff_manager *mgr, uint32_t timeout) in blocking_on()
56 struct onoff_manager *mgr = in lll_clock_init()
66 struct onoff_manager *mgr = in lll_clock_deinit()
77 struct onoff_manager *mgr; in lll_clock_wait()
114 struct onoff_manager *mgr = in lll_hfclock_on_wait()
/Zephyr-latest/drivers/clock_control/
Dnrf_clock_calibration.c40 static void cal_hf_callback(struct onoff_manager *mgr,
43 static void cal_lf_callback(struct onoff_manager *mgr,
48 static struct onoff_manager *mgrs;
70 static void clk_request(struct onoff_manager *mgr, struct onoff_client *cli, in clk_request()
80 static void clk_release(struct onoff_manager *mgr) in clk_release()
108 static void cal_lf_callback(struct onoff_manager *mgr, in cal_lf_callback()
164 static void cal_hf_callback(struct onoff_manager *mgr, in cal_hf_callback()
238 void z_nrf_clock_calibration_init(struct onoff_manager *onoff_mgrs) in z_nrf_clock_calibration_init()
Dclock_control_nrf2_fll16m.c85 static void hfxo_cb(struct onoff_manager *mgr, in hfxo_cb()
136 static struct onoff_manager *fll16m_find_mgr(const struct device *dev, in fll16m_find_mgr()
178 struct onoff_manager *mgr = fll16m_find_mgr(dev, spec); in api_request_fll16m()
190 struct onoff_manager *mgr = fll16m_find_mgr(dev, spec); in api_release_fll16m()
203 struct onoff_manager *mgr = fll16m_find_mgr(dev, spec); in api_cancel_or_release_fll16m()
Dclock_control_nrf2_hsfll.c103 static struct onoff_manager *hsfll_find_mgr(const struct device *dev, in hsfll_find_mgr()
140 struct onoff_manager *mgr = hsfll_find_mgr(dev, spec); in api_request_hsfll()
156 struct onoff_manager *mgr = hsfll_find_mgr(dev, spec); in api_release_hsfll()
173 struct onoff_manager *mgr = hsfll_find_mgr(dev, spec); in api_cancel_or_release_hsfll()
Dnrf_clock_calibration.h20 void z_nrf_clock_calibration_init(struct onoff_manager *mgrs);
Dclock_control_nrf.c70 struct onoff_manager mgr[CLOCK_CONTROL_NRF_TYPE_COUNT];
100 static struct onoff_manager *get_onoff_manager(const struct device *dev, in get_onoff_manager()
111 struct onoff_manager *z_nrf_clock_control_get_onoff(clock_control_subsys_t sys) in z_nrf_clock_control_get_onoff()
419 static clock_control_subsys_t get_subsys(struct onoff_manager *mgr) in get_subsys()
427 static void onoff_stop(struct onoff_manager *mgr, in onoff_stop()
441 struct onoff_manager *mgr = get_onoff_manager(dev, type); in onoff_started_callback()
447 static void onoff_start(struct onoff_manager *mgr, in onoff_start()
554 struct onoff_manager *mgr = in z_nrf_clock_control_lf_on()
745 struct onoff_manager *hf_mgr = in cmd_status()
748 struct onoff_manager *lf_mgr = in cmd_status()
Dclock_control_nrf2_global_hsfll.c65 static struct onoff_manager *global_hsfll_find_mgr(const struct device *dev, in global_hsfll_find_mgr()
101 struct onoff_manager *mgr = global_hsfll_find_mgr(dev, spec); in api_request_global_hsfll()
113 struct onoff_manager *mgr = global_hsfll_find_mgr(dev, spec); in api_release_global_hsfll()
126 struct onoff_manager *mgr = global_hsfll_find_mgr(dev, spec); in api_cancel_or_release_global_hsfll()
Dclock_control_nrf2_lfclk.c108 static struct onoff_manager *lfclk_find_mgr(const struct device *dev, in lfclk_find_mgr()
146 struct onoff_manager *mgr = lfclk_find_mgr(dev, spec); in api_request_lfclk()
158 struct onoff_manager *mgr = lfclk_find_mgr(dev, spec); in api_release_lfclk()
171 struct onoff_manager *mgr = lfclk_find_mgr(dev, spec); in api_cancel_or_release_lfclk()
Dclock_control_nrf2_common.h18 struct onoff_manager mgr;
Dclock_control_nrf2_common.c54 static void onoff_start_option(struct onoff_manager *mgr, in onoff_start_option()
69 static void onoff_stop_option(struct onoff_manager *mgr, in onoff_stop_option()
208 static void sync_cb(struct onoff_manager *mgr, struct onoff_client *cli, uint32_t state, int res) in sync_cb()
Dclock_control_nrf2_hfxo.c21 struct onoff_manager mgr;
108 static void onoff_start_hfxo(struct onoff_manager *mgr, onoff_notify_fn notify) in onoff_start_hfxo()
164 static void onoff_stop_hfxo(struct onoff_manager *mgr, onoff_notify_fn notify) in onoff_stop_hfxo()
/Zephyr-latest/lib/utils/
Donoff.c115 static void set_state(struct onoff_manager *mgr, in set_state()
122 static int validate_args(const struct onoff_manager *mgr, in validate_args()
140 int onoff_manager_init(struct onoff_manager *mgr, in onoff_manager_init()
150 *mgr = (struct onoff_manager)ONOFF_MANAGER_INITIALIZER(transitions); in onoff_manager_init()
155 static void notify_monitors(struct onoff_manager *mgr, in notify_monitors()
168 static void notify_one(struct onoff_manager *mgr, in notify_one()
181 static void notify_all(struct onoff_manager *mgr, in notify_all()
197 static void process_event(struct onoff_manager *mgr,
201 static void transition_complete(struct onoff_manager *mgr, in transition_complete()
211 static int process_recheck(struct onoff_manager *mgr) in process_recheck()
[all …]
/Zephyr-latest/soc/nordic/nrf53/
Dnrf53_cpunet_mgmt.c22 static struct onoff_manager cpunet_mgr;
24 static void onoff_start(struct onoff_manager *mgr, onoff_notify_fn notify) in onoff_start()
31 static void onoff_stop(struct onoff_manager *mgr, onoff_notify_fn notify) in onoff_stop()
/Zephyr-latest/modules/hal_nordic/nrf_802154/sl_opensource/platform/
Dnrf_802154_clock_zephyr.c42 static void hfclk_on_callback(struct onoff_manager *mgr, in hfclk_on_callback()
54 struct onoff_manager *mgr = in nrf_802154_clock_hfclk_start()
68 struct onoff_manager *mgr = in nrf_802154_clock_hfclk_stop()
/Zephyr-latest/soc/nordic/common/
Dmram_latency.c24 struct onoff_manager mram_latency_mgr;
66 static void no_latency_start(struct onoff_manager *mgr, onoff_notify_fn notify) in no_latency_start()
72 static void no_latency_stop(struct onoff_manager *mgr, onoff_notify_fn notify) in no_latency_stop()
100 static void sync_req_cb(struct onoff_manager *mgr, struct onoff_client *cli, uint32_t state, in sync_req_cb()
Dmram_latency.h22 extern struct onoff_manager mram_latency_mgr;
/Zephyr-latest/soc/nordic/nrf54h/gpd/
Dgpd.c30 struct onoff_manager mgr;
38 static void start(struct onoff_manager *mgr, onoff_notify_fn notify);
39 static void stop(struct onoff_manager *mgr, onoff_notify_fn notify);
96 static void request_cb(struct onoff_manager *mgr_, struct onoff_client *cli, uint32_t state, in request_cb()
176 static void start(struct onoff_manager *mgr, onoff_notify_fn notify) in start()
195 static void stop(struct onoff_manager *mgr, onoff_notify_fn notify) in stop()
/Zephyr-latest/drivers/sensor/nordic/temp/
Dtemp_nrf5.c30 struct onoff_manager *clk_mgr;
33 static void hfclk_on_callback(struct onoff_manager *mgr, in hfclk_on_callback()
/Zephyr-latest/tests/drivers/clock_control/nrf_clock_calibration/src/
Dtest_nrf_clock_calibration.c28 struct onoff_manager *mgr = z_nrf_clock_control_get_onoff(subsys); in turn_on_clock()
43 struct onoff_manager *mgr = z_nrf_clock_control_get_onoff(subsys); in turn_off_clock()
/Zephyr-latest/tests/lib/onoff/src/
Dmain.c13 static struct onoff_manager onoff_srv;
23 static void trans_callback(struct onoff_manager *mgr, in trans_callback()
54 static struct onoff_manager *callback_srv;
60 static void callback(struct onoff_manager *srv, in callback()
114 struct onoff_manager *srv;
125 static void run_transit(struct onoff_manager *srv, in run_transit()
150 static void start(struct onoff_manager *srv, in start()
159 static void stop(struct onoff_manager *srv, in stop()
168 static void reset(struct onoff_manager *srv, in reset()
187 struct onoff_manager *srv;
[all …]
/Zephyr-latest/tests/boards/nrf/mram_latency/src/
Dmain.c32 static void basic_cb(struct onoff_manager *mgr, struct onoff_client *cli, uint32_t state, int res) in basic_cb()
41 static void monitor_cb(struct onoff_manager *mgr, struct onoff_monitor *mon, uint32_t state, in monitor_cb()
/Zephyr-latest/samples/boards/nordic/clock_control/src/
Dmain.c28 static void sample_notify_cb(struct onoff_manager *mgr, in sample_notify_cb()
/Zephyr-latest/include/zephyr/drivers/clock_control/
Dnrf_clock_control.h133 struct onoff_manager *z_nrf_clock_control_get_onoff(clock_control_subsys_t sys);

12