Lines Matching refs:cpu_if
207 struct vgic_v2_cpu_if *cpu_if = &vcpu->arch.vgic_cpu.vgic_v2; in vgic_v2_set_vmcr() local
229 cpu_if->vgic_vmcr = vmcr; in vgic_v2_set_vmcr()
234 struct vgic_v2_cpu_if *cpu_if = &vcpu->arch.vgic_cpu.vgic_v2; in vgic_v2_get_vmcr() local
237 vmcr = cpu_if->vgic_vmcr; in vgic_v2_get_vmcr()
405 struct vgic_v2_cpu_if *cpu_if = &vcpu->arch.vgic_cpu.vgic_v2; in save_lrs() local
406 u64 used_lrs = cpu_if->used_lrs; in save_lrs()
416 cpu_if->vgic_lr[i] &= ~GICH_LR_STATE; in save_lrs()
418 cpu_if->vgic_lr[i] = readl_relaxed(base + GICH_LR0 + (i * 4)); in save_lrs()
440 struct vgic_v2_cpu_if *cpu_if = &vcpu->arch.vgic_cpu.vgic_v2; in vgic_v2_restore_state() local
442 u64 used_lrs = cpu_if->used_lrs; in vgic_v2_restore_state()
449 writel_relaxed(cpu_if->vgic_hcr, base + GICH_HCR); in vgic_v2_restore_state()
451 writel_relaxed(cpu_if->vgic_lr[i], in vgic_v2_restore_state()
459 struct vgic_v2_cpu_if *cpu_if = &vcpu->arch.vgic_cpu.vgic_v2; in vgic_v2_load() local
461 writel_relaxed(cpu_if->vgic_vmcr, in vgic_v2_load()
463 writel_relaxed(cpu_if->vgic_apr, in vgic_v2_load()
469 struct vgic_v2_cpu_if *cpu_if = &vcpu->arch.vgic_cpu.vgic_v2; in vgic_v2_put() local
471 cpu_if->vgic_vmcr = readl_relaxed(kvm_vgic_global_state.vctrl_base + GICH_VMCR); in vgic_v2_put()
472 cpu_if->vgic_apr = readl_relaxed(kvm_vgic_global_state.vctrl_base + GICH_APR); in vgic_v2_put()