Lines Matching refs:dev_count
5281 for (i = 0; i < bus->dev_count; i++) { in kvm_io_bus_destroy()
5330 range = bsearch(&key, bus->range, bus->dev_count, in kvm_io_bus_get_first_dev()
5352 while (idx < bus->dev_count && in __kvm_io_bus_write()
5401 if ((cookie >= 0) && (cookie < bus->dev_count) && in kvm_io_bus_write_cookie()
5423 while (idx < bus->dev_count && in __kvm_io_bus_read()
5467 if (bus->dev_count - bus->ioeventfd_count > NR_IOBUS_DEVS - 1) in kvm_io_bus_register_dev()
5470 new_bus = kmalloc(struct_size(bus, range, bus->dev_count + 1), in kvm_io_bus_register_dev()
5481 for (i = 0; i < bus->dev_count; i++) in kvm_io_bus_register_dev()
5486 new_bus->dev_count++; in kvm_io_bus_register_dev()
5489 (bus->dev_count - i) * sizeof(struct kvm_io_range)); in kvm_io_bus_register_dev()
5509 for (i = 0; i < bus->dev_count; i++) { in kvm_io_bus_unregister_dev()
5515 if (i == bus->dev_count) in kvm_io_bus_unregister_dev()
5518 new_bus = kmalloc(struct_size(bus, range, bus->dev_count - 1), in kvm_io_bus_unregister_dev()
5522 new_bus->dev_count--; in kvm_io_bus_unregister_dev()
5524 flex_array_size(new_bus, range, new_bus->dev_count - i)); in kvm_io_bus_unregister_dev()
5533 for (j = 0; j < bus->dev_count; j++) { in kvm_io_bus_unregister_dev()