Lines Matching refs:child_device_obj
1763 struct hv_device *child_device_obj; in vmbus_device_create() local
1765 child_device_obj = kzalloc(sizeof(struct hv_device), GFP_KERNEL); in vmbus_device_create()
1766 if (!child_device_obj) { in vmbus_device_create()
1771 child_device_obj->channel = channel; in vmbus_device_create()
1772 guid_copy(&child_device_obj->dev_type, type); in vmbus_device_create()
1773 guid_copy(&child_device_obj->dev_instance, instance); in vmbus_device_create()
1774 child_device_obj->vendor_id = 0x1414; /* MSFT vendor ID */ in vmbus_device_create()
1776 return child_device_obj; in vmbus_device_create()
1782 int vmbus_device_register(struct hv_device *child_device_obj) in vmbus_device_register() argument
1784 struct kobject *kobj = &child_device_obj->device.kobj; in vmbus_device_register()
1787 dev_set_name(&child_device_obj->device, "%pUl", in vmbus_device_register()
1788 child_device_obj->channel->offermsg.offer.if_instance.b); in vmbus_device_register()
1790 child_device_obj->device.bus = &hv_bus; in vmbus_device_register()
1791 child_device_obj->device.parent = &hv_acpi_dev->dev; in vmbus_device_register()
1792 child_device_obj->device.release = vmbus_device_release; in vmbus_device_register()
1798 ret = device_register(&child_device_obj->device); in vmbus_device_register()
1804 child_device_obj->channels_kset = kset_create_and_add("channels", in vmbus_device_register()
1806 if (!child_device_obj->channels_kset) { in vmbus_device_register()
1811 ret = vmbus_add_channel_kobj(child_device_obj, in vmbus_device_register()
1812 child_device_obj->channel); in vmbus_device_register()
1821 kset_unregister(child_device_obj->channels_kset); in vmbus_device_register()
1824 device_unregister(&child_device_obj->device); in vmbus_device_register()