Lines Matching defs:new_bus
2048 struct kvm_io_bus *new_bus, *bus;
2054 new_bus = kzalloc(sizeof(struct kvm_io_bus), GFP_KERNEL);
2055 if (!new_bus)
2057 memcpy(new_bus, bus, sizeof(struct kvm_io_bus));
2058 new_bus->devs[new_bus->dev_count++] = dev;
2059 rcu_assign_pointer(kvm->buses[bus_idx], new_bus);
2071 struct kvm_io_bus *new_bus, *bus;
2073 new_bus = kzalloc(sizeof(struct kvm_io_bus), GFP_KERNEL);
2074 if (!new_bus)
2078 memcpy(new_bus, bus, sizeof(struct kvm_io_bus));
2081 for (i = 0; i < new_bus->dev_count; i++)
2082 if (new_bus->devs[i] == dev) {
2084 new_bus->devs[i] = new_bus->devs[--new_bus->dev_count];
2089 kfree(new_bus);
2093 rcu_assign_pointer(kvm->buses[bus_idx], new_bus);