Lines Matching refs:base
16 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()
458 writel_relaxed(0, base + GICH_HCR); in vgic_v2_save_state()
465 void __iomem *base = kvm_vgic_global_state.vctrl_base; in vgic_v2_restore_state() local
469 if (!base) in vgic_v2_restore_state()
473 writel_relaxed(cpu_if->vgic_hcr, base + GICH_HCR); in vgic_v2_restore_state()
476 base + GICH_LR0 + (i * 4)); in vgic_v2_restore_state()