Lines Matching refs:dev_count
5005 for (i = 0; i < bus->dev_count; i++) { in kvm_io_bus_destroy()
5054 range = bsearch(&key, bus->range, bus->dev_count, in kvm_io_bus_get_first_dev()
5076 while (idx < bus->dev_count && in __kvm_io_bus_write()
5125 if ((cookie >= 0) && (cookie < bus->dev_count) && in kvm_io_bus_write_cookie()
5147 while (idx < bus->dev_count && in __kvm_io_bus_read()
5191 if (bus->dev_count - bus->ioeventfd_count > NR_IOBUS_DEVS - 1) in kvm_io_bus_register_dev()
5194 new_bus = kmalloc(struct_size(bus, range, bus->dev_count + 1), in kvm_io_bus_register_dev()
5205 for (i = 0; i < bus->dev_count; i++) in kvm_io_bus_register_dev()
5210 new_bus->dev_count++; in kvm_io_bus_register_dev()
5213 (bus->dev_count - i) * sizeof(struct kvm_io_range)); in kvm_io_bus_register_dev()
5233 for (i = 0; i < bus->dev_count; i++) { in kvm_io_bus_unregister_dev()
5239 if (i == bus->dev_count) in kvm_io_bus_unregister_dev()
5242 new_bus = kmalloc(struct_size(bus, range, bus->dev_count - 1), in kvm_io_bus_unregister_dev()
5246 new_bus->dev_count--; in kvm_io_bus_unregister_dev()
5248 flex_array_size(new_bus, range, new_bus->dev_count - i)); in kvm_io_bus_unregister_dev()
5257 for (j = 0; j < bus->dev_count; j++) { in kvm_io_bus_unregister_dev()