Lines Matching refs:xc

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