Searched refs:action_cb (Results 1 – 4 of 4) sorted by relevance
/Zephyr-latest/include/zephyr/pm/ |
D | device.h | 145 pm_device_action_cb_t action_cb; member 247 .action_cb = pm_action_cb, \ 636 int pm_device_driver_init(const struct device *dev, pm_device_action_cb_t action_cb); 716 static inline int pm_device_driver_init(const struct device *dev, pm_device_action_cb_t action_cb) in pm_device_driver_init() argument 721 rc = action_cb(dev, PM_DEVICE_ACTION_TURN_ON); in pm_device_driver_init() 726 rc = action_cb(dev, PM_DEVICE_ACTION_RESUME); in pm_device_driver_init()
|
/Zephyr-latest/subsys/pm/ |
D | device_runtime.c | 85 ret = pm->base.action_cb(pm->dev, PM_DEVICE_ACTION_SUSPEND); in runtime_suspend() 108 ret = pm->base.action_cb(pm->dev, PM_DEVICE_ACTION_SUSPEND); in runtime_suspend_work() 152 ret = pm->base.action_cb(dev, PM_DEVICE_ACTION_RESUME); in get_sync_locked() 258 ret = pm->base.action_cb(pm->dev, PM_DEVICE_ACTION_RESUME); in pm_device_runtime_get() 294 ret = pm->base.action_cb(dev, PM_DEVICE_ACTION_SUSPEND); in put_sync_locked() 392 ret = pm->base.action_cb(dev, PM_DEVICE_ACTION_SUSPEND); in runtime_enable_sync() 446 ret = pm->base.action_cb(pm->dev, PM_DEVICE_ACTION_SUSPEND); in pm_device_runtime_enable() 474 ret = pm->base.action_cb(dev, PM_DEVICE_ACTION_RESUME); in runtime_disable_sync() 535 ret = pm->base.action_cb(dev, PM_DEVICE_ACTION_RESUME); in pm_device_runtime_disable()
|
D | device.c | 60 ret = pm->action_cb(dev, action); in pm_device_action_run() 359 pm_device_action_cb_t action_cb) in pm_device_driver_init() argument 372 rc = action_cb(dev, PM_DEVICE_ACTION_TURN_ON); in pm_device_driver_init() 380 return action_cb(dev, PM_DEVICE_ACTION_RESUME); in pm_device_driver_init() 394 return action_cb(dev, PM_DEVICE_ACTION_RESUME); in pm_device_driver_init()
|
/Zephyr-latest/doc/services/pm/ |
D | power_domain.rst | 45 domain -> devB [label="action_cb(PM_DEVICE_ACTION_TURN_ON)"] 46 domain:sw -> devA:sw [label="action_cb(PM_DEVICE_ACTION_TURN_ON)"]
|