Lines Matching defs:xc

46 	struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
47 struct xive_q *q = &xc->queues[prio];
49 xive_native_disable_queue(xc->vp_id, q, prio);
76 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
82 if (!xc)
85 pr_devel("native_cleanup_vcpu(cpu=%d)\n", xc->server_num);
88 xc->valid = false;
94 if (xc->esc_virq[i]) {
95 if (kvmppc_xive_has_single_escalation(xc->xive))
96 xive_cleanup_single_escalation(vcpu, xc->esc_virq[i]);
97 free_irq(xc->esc_virq[i], vcpu);
98 irq_dispose_mapping(xc->esc_virq[i]);
99 kfree(xc->esc_virq_names[i]);
100 xc->esc_virq[i] = 0;
105 xive_native_disable_vp(xc->vp_id);
116 kfree(xc);
127 struct kvmppc_xive_vcpu *xc = NULL;
148 xc = kzalloc(sizeof(*xc), GFP_KERNEL);
149 if (!xc) {
154 vcpu->arch.xive_vcpu = xc;
155 xc->xive = xive;
156 xc->vcpu = vcpu;
157 xc->server_num = server_num;
159 xc->vp_id = vp_id;
160 xc->valid = true;
163 rc = xive_native_get_vp_info(xc->vp_id, &xc->vp_cam, &xc->vp_chip_id);
179 rc = xive_native_enable_vp(xc->vp_id, kvmppc_xive_has_single_escalation(xive));
187 vcpu->arch.xive_cam_word = cpu_to_be32(xc->vp_cam | TM_QW1W2_VO);
564 struct kvmppc_xive_vcpu *xc;
593 xc = vcpu->arch.xive_vcpu;
600 q = &xc->queues[priority];
611 rc = kvmppc_xive_native_configure_queue(xc->vp_id, q, priority,
615 priority, xc->server_num, rc);
678 rc = kvmppc_xive_native_configure_queue(xc->vp_id, q, priority,
682 priority, xc->server_num, rc);
692 rc = xive_native_set_queue_state(xc->vp_id, priority,
712 struct kvmppc_xive_vcpu *xc;
738 xc = vcpu->arch.xive_vcpu;
745 q = &xc->queues[priority];
752 rc = xive_native_get_queue_info(xc->vp_id, priority, &qaddr, &qshift,
764 rc = xive_native_get_queue_state(xc->vp_id, priority, &kvm_eq.qtoggle,
816 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
819 if (!xc)
830 if (xc->esc_virq[prio]) {
831 free_irq(xc->esc_virq[prio], vcpu);
832 irq_dispose_mapping(xc->esc_virq[prio]);
833 kfree(xc->esc_virq_names[prio]);
834 xc->esc_virq[prio] = 0;
893 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
897 if (!xc)
901 struct xive_q *q = &xc->queues[prio];
1138 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
1145 if (!xc)
1152 rc = xive_native_get_vp_state(xc->vp_id, &opal_state);
1176 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
1185 if (!xc || !xive)
1224 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
1226 if (!xc)
1231 xc->server_num, xc->vp_id, xc->vp_chip_id,