Searched refs:parent_resource (Results 1 – 2 of 2) sorted by relevance
141 struct resource *parent_resource; member2709 vm->parent_resource = __request_mem_region(vm->addr, vm->region_size, in virtio_mem_create_resource()2712 if (!vm->parent_resource) { in virtio_mem_create_resource()2721 vm->parent_resource->flags &= ~IORESOURCE_BUSY; in virtio_mem_create_resource()2729 if (!vm->parent_resource) in virtio_mem_delete_resource()2732 name = vm->parent_resource->name; in virtio_mem_delete_resource()2733 release_resource(vm->parent_resource); in virtio_mem_delete_resource()2734 kfree(vm->parent_resource); in virtio_mem_delete_resource()2736 vm->parent_resource = NULL; in virtio_mem_delete_resource()
10844 struct devlink_resource *parent_resource; in devl_resource_register() local10846 parent_resource = devlink_resource_find(devlink, NULL, in devl_resource_register()10848 if (parent_resource) { in devl_resource_register()10849 resource_list = &parent_resource->resource_list; in devl_resource_register()10850 resource->parent = parent_resource; in devl_resource_register()