Lines Matching refs:bus_power_dev
33 struct device *bus_power_dev; member
93 ret = pm_runtime_get_sync(bc->bus_power_dev); in imx8m_blk_ctrl_power_on()
95 pm_runtime_put_noidle(bc->bus_power_dev); in imx8m_blk_ctrl_power_on()
140 pm_runtime_put(bc->bus_power_dev); in imx8m_blk_ctrl_power_on()
162 pm_runtime_put(bc->bus_power_dev); in imx8m_blk_ctrl_power_off()
214 bc->bus_power_dev = dev_pm_domain_attach_by_name(dev, "bus"); in imx8m_blk_ctrl_probe()
215 if (IS_ERR(bc->bus_power_dev)) { in imx8m_blk_ctrl_probe()
216 if (PTR_ERR(bc->bus_power_dev) == -ENODEV) in imx8m_blk_ctrl_probe()
220 return dev_err_probe(dev, PTR_ERR(bc->bus_power_dev), in imx8m_blk_ctrl_probe()
306 ret = dev_pm_genpd_add_notifier(bc->bus_power_dev, &bc->power_nb); in imx8m_blk_ctrl_probe()
328 dev_pm_domain_detach(bc->bus_power_dev, true); in imx8m_blk_ctrl_probe()
347 dev_pm_genpd_remove_notifier(bc->bus_power_dev); in imx8m_blk_ctrl_remove()
349 dev_pm_domain_detach(bc->bus_power_dev, true); in imx8m_blk_ctrl_remove()
368 ret = pm_runtime_get_sync(bc->bus_power_dev); in imx8m_blk_ctrl_suspend()
370 pm_runtime_put_noidle(bc->bus_power_dev); in imx8m_blk_ctrl_suspend()
390 pm_runtime_put(bc->bus_power_dev); in imx8m_blk_ctrl_suspend()
403 pm_runtime_put(bc->bus_power_dev); in imx8m_blk_ctrl_resume()