Home
last modified time | relevance | path

Searched refs:notifier (Results 1 – 6 of 6) sorted by relevance

/Zephyr-Core-3.4.0/include/zephyr/pm/
Dpm.h91 void pm_notifier_register(struct pm_notifier *notifier);
104 int pm_notifier_unregister(struct pm_notifier *notifier);
158 static inline void pm_notifier_register(struct pm_notifier *notifier) in pm_notifier_register() argument
160 ARG_UNUSED(notifier); in pm_notifier_register()
163 static inline int pm_notifier_unregister(struct pm_notifier *notifier) in pm_notifier_unregister() argument
165 ARG_UNUSED(notifier); in pm_notifier_unregister()
/Zephyr-Core-3.4.0/subsys/pm/
Dpm.c145 struct pm_notifier *notifier; in pm_state_notify() local
150 SYS_SLIST_FOR_EACH_CONTAINER(&pm_notifiers, notifier, _node) { in pm_state_notify()
152 callback = notifier->state_entry; in pm_state_notify()
154 callback = notifier->state_exit; in pm_state_notify()
287 void pm_notifier_register(struct pm_notifier *notifier) in pm_notifier_register() argument
291 sys_slist_append(&pm_notifiers, &notifier->_node); in pm_notifier_register()
295 int pm_notifier_unregister(struct pm_notifier *notifier) in pm_notifier_unregister() argument
301 if (sys_slist_find_and_remove(&pm_notifiers, &(notifier->_node))) { in pm_notifier_unregister()
/Zephyr-Core-3.4.0/samples/boards/mec15xxevb_assy6853/power_management/src/
Dpower_mgmt.c259 static struct pm_notifier notifier = { variable
273 pm_notifier_register(&notifier); in test_pwr_mgmt_multithread()
327 pm_notifier_unregister(&notifier); in test_pwr_mgmt_multithread()
339 pm_notifier_register(&notifier); in test_pwr_mgmt_singlethread()
377 pm_notifier_unregister(&notifier); in test_pwr_mgmt_singlethread()
/Zephyr-Core-3.4.0/tests/subsys/pm/power_mgmt_soc/src/
Dpower_mgmt.c101 static struct pm_notifier notifier = { variable
228 pm_notifier_register(&notifier); in test_pwr_mgmt_multithread()
271 pm_notifier_unregister(&notifier); in test_pwr_mgmt_multithread()
286 pm_notifier_register(&notifier); in test_pwr_mgmt_singlethread()
313 pm_notifier_unregister(&notifier); in test_pwr_mgmt_singlethread()
/Zephyr-Core-3.4.0/tests/subsys/pm/power_mgmt/src/
Dmain.c312 static struct pm_notifier notifier = { variable
334 pm_notifier_register(&notifier); in ZTEST()
347 pm_notifier_unregister(&notifier); in ZTEST()
369 pm_notifier_register(&notifier); in ZTEST()
388 pm_notifier_unregister(&notifier); in ZTEST()
449 pm_notifier_unregister(&notifier); in power_management_1cpu_teardown()
/Zephyr-Core-3.4.0/subsys/net/ip/
DKconfig.mgmt52 Event notifier will be able to provide information to an event,