Lines Matching refs:child_device_obj

1895 	struct hv_device *child_device_obj;  in vmbus_device_create()  local
1897 child_device_obj = kzalloc(sizeof(struct hv_device), GFP_KERNEL); in vmbus_device_create()
1898 if (!child_device_obj) { in vmbus_device_create()
1903 child_device_obj->channel = channel; in vmbus_device_create()
1904 guid_copy(&child_device_obj->dev_type, type); in vmbus_device_create()
1905 guid_copy(&child_device_obj->dev_instance, instance); in vmbus_device_create()
1906 child_device_obj->vendor_id = PCI_VENDOR_ID_MICROSOFT; in vmbus_device_create()
1908 return child_device_obj; in vmbus_device_create()
1914 int vmbus_device_register(struct hv_device *child_device_obj) in vmbus_device_register() argument
1916 struct kobject *kobj = &child_device_obj->device.kobj; in vmbus_device_register()
1919 dev_set_name(&child_device_obj->device, "%pUl", in vmbus_device_register()
1920 &child_device_obj->channel->offermsg.offer.if_instance); in vmbus_device_register()
1922 child_device_obj->device.bus = &hv_bus; in vmbus_device_register()
1923 child_device_obj->device.parent = hv_dev; in vmbus_device_register()
1924 child_device_obj->device.release = vmbus_device_release; in vmbus_device_register()
1926 child_device_obj->device.dma_parms = &child_device_obj->dma_parms; in vmbus_device_register()
1927 child_device_obj->device.dma_mask = &child_device_obj->dma_mask; in vmbus_device_register()
1928 dma_set_mask(&child_device_obj->device, DMA_BIT_MASK(64)); in vmbus_device_register()
1934 ret = device_register(&child_device_obj->device); in vmbus_device_register()
1937 put_device(&child_device_obj->device); in vmbus_device_register()
1941 child_device_obj->channels_kset = kset_create_and_add("channels", in vmbus_device_register()
1943 if (!child_device_obj->channels_kset) { in vmbus_device_register()
1948 ret = vmbus_add_channel_kobj(child_device_obj, in vmbus_device_register()
1949 child_device_obj->channel); in vmbus_device_register()
1954 hv_debug_add_dev_dir(child_device_obj); in vmbus_device_register()
1959 kset_unregister(child_device_obj->channels_kset); in vmbus_device_register()
1962 device_unregister(&child_device_obj->device); in vmbus_device_register()