Lines Matching refs:device_pm

114     struct rt_device_pm *device_pm = RT_NULL;  in _pm_device_suspend()  local
119 device_pm = rt_slist_entry(node, struct rt_device_pm, list); in _pm_device_suspend()
120 if (device_pm->ops != RT_NULL && device_pm->ops->suspend != RT_NULL) in _pm_device_suspend()
122 ret = device_pm->ops->suspend(device_pm->device, mode); in _pm_device_suspend()
138 struct rt_device_pm *device_pm = RT_NULL; in _pm_device_resume() local
143 device_pm = rt_slist_entry(node, struct rt_device_pm, list); in _pm_device_resume()
144 if (device_pm->ops != RT_NULL && device_pm->ops->resume != RT_NULL) in _pm_device_resume()
146 device_pm->ops->resume(device_pm->device, mode); in _pm_device_resume()
156 struct rt_device_pm *device_pm = RT_NULL; in _pm_device_frequency_change() local
161 device_pm = rt_slist_entry(node, struct rt_device_pm, list); in _pm_device_frequency_change()
162 if (device_pm->ops->frequency_change != RT_NULL) in _pm_device_frequency_change()
164 device_pm->ops->frequency_change(device_pm->device, mode); in _pm_device_frequency_change()
817 struct rt_device_pm *device_pm; in rt_pm_device_register() local
819 device_pm = RT_KERNEL_MALLOC(sizeof(struct rt_device_pm)); in rt_pm_device_register()
820 if (device_pm != RT_NULL) in rt_pm_device_register()
822 rt_slist_append(&_pm.device_list, &device_pm->list); in rt_pm_device_register()
823 device_pm->device = device; in rt_pm_device_register()
824 device_pm->ops = ops; in rt_pm_device_register()
835 struct rt_device_pm *device_pm = RT_NULL; in rt_pm_device_unregister() local
839 device_pm = rt_slist_entry(node, struct rt_device_pm, list); in rt_pm_device_unregister()
840 if (device_pm->device == device) in rt_pm_device_unregister()
842 rt_slist_remove(&_pm.device_list, &device_pm->list); in rt_pm_device_unregister()
843 RT_KERNEL_FREE(device_pm); in rt_pm_device_unregister()
1032 pm->device_pm = RT_NULL; in rt_system_pm_init()