Lines Matching defs:xc
49 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
50 struct xive_q *q = &xc->queues[prio];
52 xive_native_disable_queue(xc->vp_id, q, prio);
79 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
85 if (!xc)
88 pr_devel("native_cleanup_vcpu(cpu=%d)\n", xc->server_num);
91 xc->valid = false;
97 if (xc->esc_virq[i]) {
98 if (xc->xive->single_escalation)
99 xive_cleanup_single_escalation(vcpu, xc,
100 xc->esc_virq[i]);
101 free_irq(xc->esc_virq[i], vcpu);
102 irq_dispose_mapping(xc->esc_virq[i]);
103 kfree(xc->esc_virq_names[i]);
104 xc->esc_virq[i] = 0;
109 xive_native_disable_vp(xc->vp_id);
120 kfree(xc);
131 struct kvmppc_xive_vcpu *xc = NULL;
152 xc = kzalloc(sizeof(*xc), GFP_KERNEL);
153 if (!xc) {
158 vcpu->arch.xive_vcpu = xc;
159 xc->xive = xive;
160 xc->vcpu = vcpu;
161 xc->server_num = server_num;
163 xc->vp_id = vp_id;
164 xc->valid = true;
167 rc = xive_native_get_vp_info(xc->vp_id, &xc->vp_cam, &xc->vp_chip_id);
177 rc = xive_native_enable_vp(xc->vp_id, xive->single_escalation);
185 vcpu->arch.xive_cam_word = cpu_to_be32(xc->vp_cam | TM_QW1W2_VO);
562 struct kvmppc_xive_vcpu *xc;
591 xc = vcpu->arch.xive_vcpu;
598 q = &xc->queues[priority];
609 rc = kvmppc_xive_native_configure_queue(xc->vp_id, q, priority,
613 priority, xc->server_num, rc);
676 rc = kvmppc_xive_native_configure_queue(xc->vp_id, q, priority,
680 priority, xc->server_num, rc);
690 rc = xive_native_set_queue_state(xc->vp_id, priority,
710 struct kvmppc_xive_vcpu *xc;
736 xc = vcpu->arch.xive_vcpu;
743 q = &xc->queues[priority];
750 rc = xive_native_get_queue_info(xc->vp_id, priority, &qaddr, &qshift,
762 rc = xive_native_get_queue_state(xc->vp_id, priority, &kvm_eq.qtoggle,
814 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
817 if (!xc)
828 if (xc->esc_virq[prio]) {
829 free_irq(xc->esc_virq[prio], vcpu);
830 irq_dispose_mapping(xc->esc_virq[prio]);
831 kfree(xc->esc_virq_names[prio]);
832 xc->esc_virq[prio] = 0;
891 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
895 if (!xc)
899 struct xive_q *q = &xc->queues[prio];
1131 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
1138 if (!xc)
1145 rc = xive_native_get_vp_state(xc->vp_id, &opal_state);
1169 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
1178 if (!xc || !xive)
1217 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
1219 if (!xc)
1223 xc->server_num, xc->vp_id,