Lines Matching refs:dev

77 static rt_bool_t platform_match(rt_driver_t drv, rt_device_t dev)  in platform_match()  argument
80 struct rt_platform_device *pdev = rt_container_of(dev, struct rt_platform_device, parent); in platform_match()
81 struct rt_ofw_node *np = dev->ofw_node; in platform_match()
113 static rt_err_t platform_probe(rt_device_t dev) in platform_probe() argument
116 struct rt_platform_driver *pdrv = rt_container_of(dev->drv, struct rt_platform_driver, parent); in platform_probe()
117 struct rt_platform_device *pdev = rt_container_of(dev, struct rt_platform_device, parent); in platform_probe()
119 struct rt_ofw_node *np = dev->ofw_node; in platform_probe()
122 err = rt_dm_power_domain_attach(dev, RT_TRUE); in platform_probe()
155 rt_dm_power_domain_detach(dev, RT_TRUE); in platform_probe()
161 static rt_err_t platform_remove(rt_device_t dev) in platform_remove() argument
163 struct rt_platform_driver *pdrv = rt_container_of(dev->drv, struct rt_platform_driver, parent); in platform_remove()
164 struct rt_platform_device *pdev = rt_container_of(dev, struct rt_platform_device, parent); in platform_remove()
171 rt_dm_power_domain_detach(dev, RT_TRUE); in platform_remove()
177 static rt_err_t platform_shutdown(rt_device_t dev) in platform_shutdown() argument
179 struct rt_platform_driver *pdrv = rt_container_of(dev->drv, struct rt_platform_driver, parent); in platform_shutdown()
180 struct rt_platform_device *pdev = rt_container_of(dev, struct rt_platform_device, parent); in platform_shutdown()
187 rt_dm_power_domain_detach(dev, RT_TRUE); in platform_shutdown()