Lines Matching refs:virt_dev
3084 struct device *virt_dev; in genpd_dev_pm_attach_by_id() local
3098 virt_dev = kzalloc(sizeof(*virt_dev), GFP_KERNEL); in genpd_dev_pm_attach_by_id()
3099 if (!virt_dev) in genpd_dev_pm_attach_by_id()
3102 dev_set_name(virt_dev, "genpd:%u:%s", index, dev_name(dev)); in genpd_dev_pm_attach_by_id()
3103 virt_dev->bus = &genpd_bus_type; in genpd_dev_pm_attach_by_id()
3104 virt_dev->release = genpd_release_dev; in genpd_dev_pm_attach_by_id()
3105 virt_dev->of_node = of_node_get(dev->of_node); in genpd_dev_pm_attach_by_id()
3107 ret = device_register(virt_dev); in genpd_dev_pm_attach_by_id()
3109 put_device(virt_dev); in genpd_dev_pm_attach_by_id()
3114 ret = __genpd_dev_pm_attach(virt_dev, dev, index, num_domains, false); in genpd_dev_pm_attach_by_id()
3116 device_unregister(virt_dev); in genpd_dev_pm_attach_by_id()
3120 pm_runtime_enable(virt_dev); in genpd_dev_pm_attach_by_id()
3121 genpd_queue_power_off_work(dev_to_genpd(virt_dev)); in genpd_dev_pm_attach_by_id()
3123 return virt_dev; in genpd_dev_pm_attach_by_id()