Searched refs:rdreg (Results 1 – 6 of 6) sorted by relevance
/arch/arm64/kvm/vgic/ |
D | vgic-mmio-v3.c | 296 struct vgic_redist_region *iter, *rdreg = vgic_cpu->rdreg; in vgic_mmio_vcpu_rdist_is_last() local 298 if (!rdreg) in vgic_mmio_vcpu_rdist_is_last() 301 if (vgic_cpu->rdreg_index < rdreg->free_index - 1) { in vgic_mmio_vcpu_rdist_is_last() 303 } else if (rdreg->count && vgic_cpu->rdreg_index == (rdreg->count - 1)) { in vgic_mmio_vcpu_rdist_is_last() 305 gpa_t end = rdreg->base + rdreg->count * KVM_VGIC_V3_REDIST_SIZE; in vgic_mmio_vcpu_rdist_is_last() 777 struct vgic_redist_region *rdreg; in vgic_register_redist_iodev() local 793 rdreg = vgic_v3_rdist_free_slot(&vgic->rd_regions); in vgic_register_redist_iodev() 794 if (!rdreg) in vgic_register_redist_iodev() 802 vgic_cpu->rdreg = rdreg; in vgic_register_redist_iodev() 803 vgic_cpu->rdreg_index = rdreg->free_index; in vgic_register_redist_iodev() [all …]
|
D | vgic-v3.c | 462 struct vgic_redist_region *rdreg; in vgic_v3_rdist_overlap() local 464 list_for_each_entry(rdreg, &d->rd_regions, list) { in vgic_v3_rdist_overlap() 465 if ((base + size > rdreg->base) && in vgic_v3_rdist_overlap() 466 (base < rdreg->base + vgic_v3_rd_region_size(kvm, rdreg))) in vgic_v3_rdist_overlap() 479 struct vgic_redist_region *rdreg; in vgic_v3_check_base() local 485 list_for_each_entry(rdreg, &d->rd_regions, list) { in vgic_v3_check_base() 486 size_t sz = vgic_v3_rd_region_size(kvm, rdreg); in vgic_v3_check_base() 489 rdreg->base, SZ_64K, sz)) in vgic_v3_check_base() 514 struct vgic_redist_region *rdreg; in vgic_v3_rdist_free_slot() local 516 list_for_each_entry(rdreg, rd_regions, list) { in vgic_v3_rdist_free_slot() [all …]
|
D | vgic-kvm-device.c | 130 struct vgic_redist_region *rdreg; in kvm_vgic_addr() local 139 rdreg = list_first_entry_or_null(&vgic->rd_regions, in kvm_vgic_addr() 141 if (!rdreg) in kvm_vgic_addr() 144 addr_ptr = &rdreg->base; in kvm_vgic_addr() 149 struct vgic_redist_region *rdreg; in kvm_vgic_addr() local 171 rdreg = vgic_v3_rdist_region_from_index(kvm, index); in kvm_vgic_addr() 172 if (!rdreg) { in kvm_vgic_addr() 178 addr |= rdreg->base; in kvm_vgic_addr() 179 addr |= (u64)rdreg->count << KVM_VGIC_V3_RDIST_COUNT_SHIFT; in kvm_vgic_addr()
|
D | vgic.h | 303 vgic_v3_rd_region_size(struct kvm *kvm, struct vgic_redist_region *rdreg) in vgic_v3_rd_region_size() argument 305 if (!rdreg->count) in vgic_v3_rd_region_size() 308 return rdreg->count * KVM_VGIC_V3_REDIST_SIZE; in vgic_v3_rd_region_size() 313 void vgic_v3_free_redist_region(struct vgic_redist_region *rdreg);
|
D | vgic-init.c | 346 struct vgic_redist_region *rdreg, *next; in kvm_vgic_dist_destroy() local 357 list_for_each_entry_safe(rdreg, next, &dist->rd_regions, list) in kvm_vgic_dist_destroy() 358 vgic_v3_free_redist_region(rdreg); in kvm_vgic_dist_destroy()
|
/arch/powerpc/platforms/pasemi/ |
D | gpio_mdio.c | 117 u16 rdreg; in gpio_mdio_read() local 132 rdreg = 0; in gpio_mdio_read() 140 rdreg <<= 1; in gpio_mdio_read() 141 rdreg |= mdio_read(bus); in gpio_mdio_read() 149 ret = rdreg; in gpio_mdio_read()
|