Lines Matching refs:child_device_obj
2043 struct hv_device *child_device_obj; in vmbus_device_create() local
2045 child_device_obj = kzalloc(sizeof(struct hv_device), GFP_KERNEL); in vmbus_device_create()
2046 if (!child_device_obj) { in vmbus_device_create()
2051 child_device_obj->channel = channel; in vmbus_device_create()
2052 guid_copy(&child_device_obj->dev_type, type); in vmbus_device_create()
2053 guid_copy(&child_device_obj->dev_instance, instance); in vmbus_device_create()
2054 child_device_obj->vendor_id = PCI_VENDOR_ID_MICROSOFT; in vmbus_device_create()
2056 return child_device_obj; in vmbus_device_create()
2062 int vmbus_device_register(struct hv_device *child_device_obj) in vmbus_device_register() argument
2064 struct kobject *kobj = &child_device_obj->device.kobj; in vmbus_device_register()
2067 dev_set_name(&child_device_obj->device, "%pUl", in vmbus_device_register()
2068 &child_device_obj->channel->offermsg.offer.if_instance); in vmbus_device_register()
2070 child_device_obj->device.bus = &hv_bus; in vmbus_device_register()
2071 child_device_obj->device.parent = &hv_acpi_dev->dev; in vmbus_device_register()
2072 child_device_obj->device.release = vmbus_device_release; in vmbus_device_register()
2074 child_device_obj->device.dma_parms = &child_device_obj->dma_parms; in vmbus_device_register()
2075 child_device_obj->device.dma_mask = &child_device_obj->dma_mask; in vmbus_device_register()
2076 dma_set_mask(&child_device_obj->device, DMA_BIT_MASK(64)); in vmbus_device_register()
2082 ret = device_register(&child_device_obj->device); in vmbus_device_register()
2085 put_device(&child_device_obj->device); in vmbus_device_register()
2089 child_device_obj->channels_kset = kset_create_and_add("channels", in vmbus_device_register()
2091 if (!child_device_obj->channels_kset) { in vmbus_device_register()
2096 ret = vmbus_add_channel_kobj(child_device_obj, in vmbus_device_register()
2097 child_device_obj->channel); in vmbus_device_register()
2102 hv_debug_add_dev_dir(child_device_obj); in vmbus_device_register()
2107 kset_unregister(child_device_obj->channels_kset); in vmbus_device_register()
2110 device_unregister(&child_device_obj->device); in vmbus_device_register()