Home
last modified time | relevance | path

Searched refs:base (Results 1 – 7 of 7) sorted by relevance

/virt/kvm/arm/vgic/
Dvgic-v2.c16 void __iomem *base = kvm_vgic_global_state.vctrl_base; in vgic_v2_write_lr() local
18 writel_relaxed(val, base + GICH_LR0 + (lr * 4)); in vgic_v2_write_lr()
427 static void save_lrs(struct kvm_vcpu *vcpu, void __iomem *base) in save_lrs() argument
434 elrsr = readl_relaxed(base + GICH_ELRSR0); in save_lrs()
436 elrsr |= ((u64)readl_relaxed(base + GICH_ELRSR1)) << 32; in save_lrs()
442 cpu_if->vgic_lr[i] = readl_relaxed(base + GICH_LR0 + (i * 4)); in save_lrs()
444 writel_relaxed(0, base + GICH_LR0 + (i * 4)); in save_lrs()
450 void __iomem *base = kvm_vgic_global_state.vctrl_base; in vgic_v2_save_state() local
453 if (!base) in vgic_v2_save_state()
457 save_lrs(vcpu, base); in vgic_v2_save_state()
[all …]
Dvgic-mmio-v3.c211 gpa_t last_rdist_typer = rdreg->base + GICR_TYPER + in vgic_mmio_read_v3r_typer()
633 rd_base = rdreg->base + rdreg->free_index * KVM_VGIC_V3_REDIST_SIZE; in vgic_register_redist_iodev()
701 gpa_t base, uint32_t count) in vgic_v3_insert_redist_region() argument
714 if (base + size < base) in vgic_v3_insert_redist_region()
737 vgic_dist_overlap(kvm, base, size)) in vgic_v3_insert_redist_region()
741 if (vgic_v3_rdist_overlap(kvm, base, size)) in vgic_v3_insert_redist_region()
748 rdreg->base = VGIC_ADDR_UNDEF; in vgic_v3_insert_redist_region()
750 ret = vgic_check_ioaddr(kvm, &rdreg->base, base, SZ_64K); in vgic_v3_insert_redist_region()
754 rdreg->base = base; in vgic_v3_insert_redist_region()
Dvgic-v3.c420 bool vgic_v3_rdist_overlap(struct kvm *kvm, gpa_t base, size_t size) in vgic_v3_rdist_overlap() argument
426 if ((base + size > rdreg->base) && in vgic_v3_rdist_overlap()
427 (base < rdreg->base + vgic_v3_rd_region_size(kvm, rdreg))) in vgic_v3_rdist_overlap()
447 if (rdreg->base + vgic_v3_rd_region_size(kvm, rdreg) < in vgic_v3_check_base()
448 rdreg->base) in vgic_v3_check_base()
Dvgic.h297 bool vgic_v3_rdist_overlap(struct kvm *kvm, gpa_t base, size_t size);
299 static inline bool vgic_dist_overlap(struct kvm *kvm, gpa_t base, size_t size) in vgic_dist_overlap() argument
303 return (base + size > d->vgic_dist_base) && in vgic_dist_overlap()
304 (base < d->vgic_dist_base + KVM_VGIC_V3_DIST_SIZE); in vgic_dist_overlap()
Dvgic-kvm-device.c95 addr_ptr = &rdreg->base; in kvm_vgic_addr()
110 gpa_t base = *addr & KVM_VGIC_V3_RDIST_BASE_MASK; in kvm_vgic_addr() local
120 base, count); in kvm_vgic_addr()
131 *addr |= rdreg->base; in kvm_vgic_addr()
Dvgic-its.c901 phys_addr_t base = GITS_BASER_ADDR_48_to_52(baser); in vgic_its_check_id() local
927 addr = base + id * esz; in vgic_its_check_id()
943 base + index * sizeof(indirect_ptr), in vgic_its_check_id()
2079 static int scan_its_table(struct vgic_its *its, gpa_t base, int size, u32 esz, in scan_its_table() argument
2085 gpa_t gpa = base; in scan_its_table()
2200 gpa_t base = device->itt_addr; in vgic_its_save_itt() local
2208 gpa_t gpa = base + ite->event_id * ite_esz; in vgic_its_save_itt()
2237 gpa_t base = dev->itt_addr; in vgic_its_restore_itt() local
2242 ret = scan_its_table(its, base, max_size, ite_esz, 0, in vgic_its_restore_itt()
/virt/kvm/arm/
Dmmu.c782 unsigned long base; in __create_hyp_private_mapping() local
796 base = io_map_base - size; in __create_hyp_private_mapping()
803 if ((base ^ io_map_base) & BIT(VA_BITS - 1)) in __create_hyp_private_mapping()
806 io_map_base = base; in __create_hyp_private_mapping()
817 base, base + size, in __create_hyp_private_mapping()
822 *haddr = base + offset_in_page(phys_addr); in __create_hyp_private_mapping()