Lines Matching refs:arch

289 	struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
331 vcpu->arch.regs.gpr[4] = hirq | (old_cppr << 24);
338 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
351 xc = vcpu->arch.xive_vcpu;
367 vcpu->arch.regs.gpr[4] = hirq | (xc->cppr << 24);
458 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
459 struct kvmppc_xive *xive = vcpu->kvm->arch.xive;
517 struct kvmppc_xive *xive = vcpu->kvm->arch.xive;
520 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
623 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
633 xc = vcpu->arch.xive_vcpu;
665 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
673 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
696 if (!tima || !vcpu->arch.xive_cam_word)
701 __raw_writeq(vcpu->arch.xive_saved_state.w01, tima + TM_QW1_OS);
702 __raw_writel(vcpu->arch.xive_cam_word, tima + TM_QW1_OS + TM_WORD2);
703 vcpu->arch.xive_pushed = 1;
713 vcpu->arch.irq_pending = 0;
719 if (vcpu->arch.xive_esc_on) {
720 pq = __raw_readq((void __iomem *)(vcpu->arch.xive_esc_vaddr +
747 vcpu->arch.xive_esc_on = 0;
760 if (!vcpu->arch.xive_pushed)
774 vcpu->arch.xive_saved_state.w01 = __raw_readq(tima + TM_QW1_OS);
777 vcpu->arch.xive_saved_state.lsmfb = 0;
778 vcpu->arch.xive_saved_state.ack = 0xff;
779 vcpu->arch.xive_pushed = 0;
786 void __iomem *esc_vaddr = (void __iomem *)vcpu->arch.xive_esc_vaddr;
794 if (vcpu->arch.xive_esc_on) {
811 vcpu->arch.xive_esc_on = true;
844 vcpu->arch.irq_pending = 1;
846 if (vcpu->arch.ceded || vcpu->arch.nested)
858 vcpu->arch.xive_esc_on = false;
869 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
888 vcpu->kvm->arch.lpid, xc->server_num);
891 vcpu->kvm->arch.lpid, xc->server_num, prio);
923 vcpu->arch.xive_esc_raddr = xd->eoi_page;
924 vcpu->arch.xive_esc_vaddr = (__force u64)xd->eoi_mmio;
938 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
974 struct kvmppc_xive *xive = kvm->arch.xive;
989 if (!vcpu->arch.xive_vcpu)
1017 xc = vcpu->arch.xive_vcpu;
1027 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
1069 if (!vcpu->arch.xive_vcpu)
1073 *server = vcpu->arch.xive_vcpu->server_num;
1187 struct kvmppc_xive *xive = kvm->arch.xive;
1271 struct kvmppc_xive *xive = kvm->arch.xive;
1372 struct kvmppc_xive *xive = kvm->arch.xive;
1394 struct kvmppc_xive *xive = kvm->arch.xive;
1433 struct kvmppc_xive *xive = kvm->arch.xive;
1481 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
1494 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
1495 struct kvmppc_xive *xive = vcpu->kvm->arch.xive;
1516 if (WARN_ON(vcpu->arch.xive_pushed))
1520 vcpu->arch.xive_saved_state.cppr = cppr;
1554 struct kvmppc_xive *xive = kvm->arch.xive;
1652 struct kvmppc_xive *xive = kvm->arch.xive;
1731 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
1733 struct kvmppc_xive *xive = kvm->arch.xive;
1765 if (vcpu->arch.xive_esc_on) {
1766 __raw_readq((void __iomem *)(vcpu->arch.xive_esc_vaddr +
1768 vcpu->arch.xive_esc_on = false;
1776 vcpu->arch.xive_esc_vaddr = 0;
1777 vcpu->arch.xive_esc_raddr = 0;
1800 if (!vcpu->arch.xive_esc_on)
1806 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
1807 struct kvmppc_xive *xive = vcpu->kvm->arch.xive;
1840 vcpu->arch.xive_cam_word = 0;
1863 vcpu->arch.irq_type = KVMPPC_IRQ_DEFAULT;
1864 vcpu->arch.xive_vcpu = NULL;
1919 if (vcpu->arch.irq_type != KVMPPC_IRQ_DEFAULT)
1935 vcpu->arch.xive_vcpu = xc;
1954 vcpu->arch.xive_saved_state.w01 = cpu_to_be64(0xff000000);
1955 vcpu->arch.xive_cam_word = cpu_to_be32(xc->vp_cam | TM_QW1W2_VO);
2030 vcpu->arch.irq_type = KVMPPC_IRQ_XICS;
2144 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
2312 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
2492 struct kvmppc_xive *xive = kvm->arch.xive;
2679 * Now that we have cleared vcpu->arch.xive_vcpu, vcpu->arch.irq_type
2680 * and vcpu->arch.xive_esc_[vr]addr on each vcpu, we are safe
2684 kvm->arch.xive = NULL;
2719 &kvm->arch.xive_devices.native :
2720 &kvm->arch.xive_devices.xics_on_xive;
2744 if (kvm->arch.xive)
2776 kvm->arch.xive = xive;
2782 struct kvmppc_vcore *vc = vcpu->arch.vcore;
2812 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
2908 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;