• Home
  • Raw
  • Download

Lines Matching refs:range

404 					const struct mmu_notifier_range *range)  in kvm_mmu_notifier_invalidate_range_start()  argument
418 need_tlb_flush = kvm_unmap_hva_range(kvm, range->start, range->end); in kvm_mmu_notifier_invalidate_range_start()
426 ret = kvm_arch_mmu_notifier_invalidate_range(kvm, range->start, in kvm_mmu_notifier_invalidate_range_start()
427 range->end, in kvm_mmu_notifier_invalidate_range_start()
428 mmu_notifier_range_blockable(range)); in kvm_mmu_notifier_invalidate_range_start()
436 const struct mmu_notifier_range *range) in kvm_mmu_notifier_invalidate_range_end() argument
3708 struct kvm_io_device *pos = bus->range[i].dev; in kvm_io_bus_destroy()
3748 struct kvm_io_range *range, key; in kvm_io_bus_get_first_dev() local
3756 range = bsearch(&key, bus->range, bus->dev_count, in kvm_io_bus_get_first_dev()
3758 if (range == NULL) in kvm_io_bus_get_first_dev()
3761 off = range - bus->range; in kvm_io_bus_get_first_dev()
3763 while (off > 0 && kvm_io_bus_cmp(&key, &bus->range[off-1]) == 0) in kvm_io_bus_get_first_dev()
3770 struct kvm_io_range *range, const void *val) in __kvm_io_bus_write() argument
3774 idx = kvm_io_bus_get_first_dev(bus, range->addr, range->len); in __kvm_io_bus_write()
3779 kvm_io_bus_cmp(range, &bus->range[idx]) == 0) { in __kvm_io_bus_write()
3780 if (!kvm_iodevice_write(vcpu, bus->range[idx].dev, range->addr, in __kvm_io_bus_write()
3781 range->len, val)) in __kvm_io_bus_write()
3794 struct kvm_io_range range; in kvm_io_bus_write() local
3797 range = (struct kvm_io_range) { in kvm_io_bus_write()
3805 r = __kvm_io_bus_write(vcpu, bus, &range, val); in kvm_io_bus_write()
3815 struct kvm_io_range range; in kvm_io_bus_write_cookie() local
3817 range = (struct kvm_io_range) { in kvm_io_bus_write_cookie()
3828 (kvm_io_bus_cmp(&range, &bus->range[cookie]) == 0)) in kvm_io_bus_write_cookie()
3829 if (!kvm_iodevice_write(vcpu, bus->range[cookie].dev, addr, len, in kvm_io_bus_write_cookie()
3837 return __kvm_io_bus_write(vcpu, bus, &range, val); in kvm_io_bus_write_cookie()
3841 struct kvm_io_range *range, void *val) in __kvm_io_bus_read() argument
3845 idx = kvm_io_bus_get_first_dev(bus, range->addr, range->len); in __kvm_io_bus_read()
3850 kvm_io_bus_cmp(range, &bus->range[idx]) == 0) { in __kvm_io_bus_read()
3851 if (!kvm_iodevice_read(vcpu, bus->range[idx].dev, range->addr, in __kvm_io_bus_read()
3852 range->len, val)) in __kvm_io_bus_read()
3865 struct kvm_io_range range; in kvm_io_bus_read() local
3868 range = (struct kvm_io_range) { in kvm_io_bus_read()
3876 r = __kvm_io_bus_read(vcpu, bus, &range, val); in kvm_io_bus_read()
3886 struct kvm_io_range range; in kvm_io_bus_register_dev() local
3896 new_bus = kmalloc(struct_size(bus, range, bus->dev_count + 1), in kvm_io_bus_register_dev()
3901 range = (struct kvm_io_range) { in kvm_io_bus_register_dev()
3908 if (kvm_io_bus_cmp(&bus->range[i], &range) > 0) in kvm_io_bus_register_dev()
3913 new_bus->range[i] = range; in kvm_io_bus_register_dev()
3914 memcpy(new_bus->range + i + 1, bus->range + i, in kvm_io_bus_register_dev()
3935 if (bus->range[i].dev == dev) { in kvm_io_bus_unregister_dev()
3942 new_bus = kmalloc(struct_size(bus, range, bus->dev_count - 1), in kvm_io_bus_unregister_dev()
3951 memcpy(new_bus->range + i, bus->range + i + 1, in kvm_io_bus_unregister_dev()
3978 iodev = bus->range[dev_idx].dev; in kvm_io_bus_get_dev()