Lines Matching refs:len
18 gpa_t addr, unsigned int len) in vgic_mmio_read_raz() argument
24 gpa_t addr, unsigned int len) in vgic_mmio_read_rao() argument
30 unsigned int len, unsigned long val) in vgic_mmio_write_wi() argument
36 unsigned int len, unsigned long val) in vgic_mmio_uaccess_write_wi() argument
43 gpa_t addr, unsigned int len) in vgic_mmio_read_group() argument
50 for (i = 0; i < len * 8; i++) { in vgic_mmio_read_group()
63 unsigned int len, unsigned long val) in vgic_mmio_write_group() argument
69 for (i = 0; i < len * 8; i++) { in vgic_mmio_write_group()
85 gpa_t addr, unsigned int len) in vgic_mmio_read_enable() argument
92 for (i = 0; i < len * 8; i++) { in vgic_mmio_read_enable()
105 gpa_t addr, unsigned int len, in vgic_mmio_write_senable() argument
112 for_each_set_bit(i, &val, len * 8) { in vgic_mmio_write_senable()
140 gpa_t addr, unsigned int len, in vgic_mmio_write_cenable() argument
147 for_each_set_bit(i, &val, len * 8) { in vgic_mmio_write_cenable()
160 gpa_t addr, unsigned int len) in vgic_mmio_read_pending() argument
167 for (i = 0; i < len * 8; i++) { in vgic_mmio_read_pending()
221 gpa_t addr, unsigned int len, in vgic_mmio_write_spending() argument
229 for_each_set_bit(i, &val, len * 8) { in vgic_mmio_write_spending()
274 gpa_t addr, unsigned int len, in vgic_mmio_write_cpending() argument
282 for_each_set_bit(i, &val, len * 8) { in vgic_mmio_write_cpending()
335 gpa_t addr, unsigned int len) in __vgic_mmio_read_active() argument
342 for (i = 0; i < len * 8; i++) { in __vgic_mmio_read_active()
359 gpa_t addr, unsigned int len) in vgic_mmio_read_active() argument
367 val = __vgic_mmio_read_active(vcpu, addr, len); in vgic_mmio_read_active()
376 gpa_t addr, unsigned int len) in vgic_uaccess_read_active() argument
378 return __vgic_mmio_read_active(vcpu, addr, len); in vgic_uaccess_read_active()
433 gpa_t addr, unsigned int len, in __vgic_mmio_write_cactive() argument
439 for_each_set_bit(i, &val, len * 8) { in __vgic_mmio_write_cactive()
447 gpa_t addr, unsigned int len, in vgic_mmio_write_cactive() argument
455 __vgic_mmio_write_cactive(vcpu, addr, len, val); in vgic_mmio_write_cactive()
462 gpa_t addr, unsigned int len, in vgic_mmio_uaccess_write_cactive() argument
465 __vgic_mmio_write_cactive(vcpu, addr, len, val); in vgic_mmio_uaccess_write_cactive()
470 gpa_t addr, unsigned int len, in __vgic_mmio_write_sactive() argument
476 for_each_set_bit(i, &val, len * 8) { in __vgic_mmio_write_sactive()
484 gpa_t addr, unsigned int len, in vgic_mmio_write_sactive() argument
492 __vgic_mmio_write_sactive(vcpu, addr, len, val); in vgic_mmio_write_sactive()
499 gpa_t addr, unsigned int len, in vgic_mmio_uaccess_write_sactive() argument
502 __vgic_mmio_write_sactive(vcpu, addr, len, val); in vgic_mmio_uaccess_write_sactive()
507 gpa_t addr, unsigned int len) in vgic_mmio_read_priority() argument
513 for (i = 0; i < len; i++) { in vgic_mmio_read_priority()
532 gpa_t addr, unsigned int len, in vgic_mmio_write_priority() argument
539 for (i = 0; i < len; i++) { in vgic_mmio_write_priority()
552 gpa_t addr, unsigned int len) in vgic_mmio_read_config() argument
558 for (i = 0; i < len * 4; i++) { in vgic_mmio_read_config()
571 gpa_t addr, unsigned int len, in vgic_mmio_write_config() argument
578 for (i = 0; i < len * 4; i++) { in vgic_mmio_write_config()
666 if (offset >= region->reg_offset + region->len) in match_region()
705 unsigned long vgic_data_mmio_bus_to_host(const void *val, unsigned int len) in vgic_data_mmio_bus_to_host() argument
707 unsigned long data = kvm_mmio_read_buf(val, len); in vgic_data_mmio_bus_to_host()
709 switch (len) { in vgic_data_mmio_bus_to_host()
730 void vgic_data_host_to_mmio_bus(void *buf, unsigned int len, in vgic_data_host_to_mmio_bus() argument
733 switch (len) { in vgic_data_host_to_mmio_bus()
746 kvm_mmio_write_buf(buf, len, data); in vgic_data_host_to_mmio_bus()
757 gpa_t addr, int len) in check_region() argument
761 switch (len) { in check_region()
775 if ((region->access_flags & flags) && IS_ALIGNED(addr, len)) { in check_region()
788 gpa_t addr, int len) in vgic_get_mmio_region() argument
794 if (!region || !check_region(vcpu->kvm, region, addr, len)) in vgic_get_mmio_region()
854 gpa_t addr, int len, void *val) in dispatch_mmio_read() argument
860 region = vgic_get_mmio_region(vcpu, iodev, addr, len); in dispatch_mmio_read()
862 memset(val, 0, len); in dispatch_mmio_read()
868 data = region->read(vcpu, addr, len); in dispatch_mmio_read()
871 data = region->read(vcpu, addr, len); in dispatch_mmio_read()
874 data = region->read(iodev->redist_vcpu, addr, len); in dispatch_mmio_read()
877 data = region->its_read(vcpu->kvm, iodev->its, addr, len); in dispatch_mmio_read()
881 vgic_data_host_to_mmio_bus(val, len, data); in dispatch_mmio_read()
886 gpa_t addr, int len, const void *val) in dispatch_mmio_write() argument
890 unsigned long data = vgic_data_mmio_bus_to_host(val, len); in dispatch_mmio_write()
892 region = vgic_get_mmio_region(vcpu, iodev, addr, len); in dispatch_mmio_write()
898 region->write(vcpu, addr, len, data); in dispatch_mmio_write()
901 region->write(vcpu, addr, len, data); in dispatch_mmio_write()
904 region->write(iodev->redist_vcpu, addr, len, data); in dispatch_mmio_write()
907 region->its_write(vcpu->kvm, iodev->its, addr, len, data); in dispatch_mmio_write()
924 unsigned int len; in vgic_register_dist_iodev() local
928 len = vgic_v2_init_dist_iodev(io_device); in vgic_register_dist_iodev()
931 len = vgic_v3_init_dist_iodev(io_device); in vgic_register_dist_iodev()
943 len, &io_device->dev); in vgic_register_dist_iodev()