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()
411 struct vgic_v2_cpu_if *cpu_if = &vcpu->arch.vgic_cpu.vgic_v2; in save_lrs() local
412 u64 used_lrs = cpu_if->used_lrs; in save_lrs()
422 cpu_if->vgic_lr[i] &= ~GICH_LR_STATE; in save_lrs()
424 cpu_if->vgic_lr[i] = readl_relaxed(base + GICH_LR0 + (i * 4)); in save_lrs()
446 struct vgic_v2_cpu_if *cpu_if = &vcpu->arch.vgic_cpu.vgic_v2; in vgic_v2_restore_state() local
448 u64 used_lrs = cpu_if->used_lrs; in vgic_v2_restore_state()
455 writel_relaxed(cpu_if->vgic_hcr, base + GICH_HCR); in vgic_v2_restore_state()
457 writel_relaxed(cpu_if->vgic_lr[i], in vgic_v2_restore_state()
465 struct vgic_v2_cpu_if *cpu_if = &vcpu->arch.vgic_cpu.vgic_v2; in vgic_v2_load() local
467 writel_relaxed(cpu_if->vgic_vmcr, in vgic_v2_load()
469 writel_relaxed(cpu_if->vgic_apr, in vgic_v2_load()
475 struct vgic_v2_cpu_if *cpu_if = &vcpu->arch.vgic_cpu.vgic_v2; in vgic_v2_put() local
477 cpu_if->vgic_vmcr = readl_relaxed(kvm_vgic_global_state.vctrl_base + GICH_VMCR); in vgic_v2_put()
478 cpu_if->vgic_apr = readl_relaxed(kvm_vgic_global_state.vctrl_base + GICH_APR); in vgic_v2_put()