Lines Matching refs:virt_dev
3027 struct device *virt_dev; in genpd_dev_pm_attach_by_id() local
3041 virt_dev = kzalloc(sizeof(*virt_dev), GFP_KERNEL); in genpd_dev_pm_attach_by_id()
3042 if (!virt_dev) in genpd_dev_pm_attach_by_id()
3045 dev_set_name(virt_dev, "genpd:%u:%s", index, dev_name(dev)); in genpd_dev_pm_attach_by_id()
3046 virt_dev->bus = &genpd_bus_type; in genpd_dev_pm_attach_by_id()
3047 virt_dev->release = genpd_release_dev; in genpd_dev_pm_attach_by_id()
3048 virt_dev->of_node = of_node_get(dev->of_node); in genpd_dev_pm_attach_by_id()
3050 ret = device_register(virt_dev); in genpd_dev_pm_attach_by_id()
3052 put_device(virt_dev); in genpd_dev_pm_attach_by_id()
3057 ret = __genpd_dev_pm_attach(virt_dev, dev, index, false); in genpd_dev_pm_attach_by_id()
3059 device_unregister(virt_dev); in genpd_dev_pm_attach_by_id()
3063 pm_runtime_enable(virt_dev); in genpd_dev_pm_attach_by_id()
3064 genpd_queue_power_off_work(dev_to_genpd(virt_dev)); in genpd_dev_pm_attach_by_id()
3066 return virt_dev; in genpd_dev_pm_attach_by_id()