Lines Matching refs:cppr
41 u8 cppr; in xive_vm_ack_pending() local
63 cppr = ack & 0xff; in xive_vm_ack_pending()
64 if (cppr < 8) in xive_vm_ack_pending()
65 xc->pending |= 1 << cppr; in xive_vm_ack_pending()
68 if (cppr >= xc->hw_cppr) in xive_vm_ack_pending()
70 smp_processor_id(), cppr, xc->hw_cppr); in xive_vm_ack_pending()
77 xc->hw_cppr = cppr; in xive_vm_ack_pending()
152 if (prio >= xc->cppr || prio > 7) { in xive_vm_scan_interrupts()
153 if (xc->mfrr < xc->cppr) { in xive_vm_scan_interrupts()
234 if (prio >= xc->mfrr && xc->mfrr < xc->cppr) { in xive_vm_scan_interrupts()
272 xc->cppr = prio; in xive_vm_scan_interrupts()
279 if (xc->cppr != xc->hw_cppr) { in xive_vm_scan_interrupts()
280 xc->hw_cppr = xc->cppr; in xive_vm_scan_interrupts()
281 __raw_writeb(xc->cppr, xive_tima + TM_QW1_OS + TM_CPPR); in xive_vm_scan_interrupts()
301 xc->pending, xc->hw_cppr, xc->cppr); in xive_vm_h_xirr()
304 old_cppr = xive_prio_to_guest(xc->cppr); in xive_vm_h_xirr()
310 hirq, xc->hw_cppr, xc->cppr); in xive_vm_h_xirr()
367 kvmppc_set_gpr(vcpu, 4, hirq | (xc->cppr << 24)); in xive_vm_h_ipoll()
396 for (prio = xc->cppr; prio < KVMPPC_XIVE_Q_COUNT; prio++) { in xive_vm_scan_for_rerouted_irqs()
456 static int xive_vm_h_cppr(struct kvm_vcpu *vcpu, unsigned long cppr) in xive_vm_h_cppr() argument
462 pr_devel("H_CPPR(cppr=%ld)\n", cppr); in xive_vm_h_cppr()
467 cppr = xive_prio_from_guest(cppr); in xive_vm_h_cppr()
470 old_cppr = xc->cppr; in xive_vm_h_cppr()
471 xc->cppr = cppr; in xive_vm_h_cppr()
479 if (cppr > old_cppr) { in xive_vm_h_cppr()
509 xc->hw_cppr = cppr; in xive_vm_h_cppr()
510 __raw_writeb(cppr, xive_tima + TM_QW1_OS + TM_CPPR); in xive_vm_h_cppr()
531 xc->cppr = xive_prio_from_guest(new_cppr); in xive_vm_h_eoi()
614 xc->hw_cppr = xc->cppr; in xive_vm_h_eoi()
615 __raw_writeb(xc->cppr, xive_tima + TM_QW1_OS + TM_CPPR); in xive_vm_h_eoi()
651 if (mfrr < xc->cppr) in xive_vm_h_ipi()
1487 return (u64)xc->cppr << KVM_REG_PPC_ICP_CPPR_SHIFT | in kvmppc_xive_get_icp()
1496 u8 cppr, mfrr; in kvmppc_xive_set_icp() local
1503 cppr = icpval >> KVM_REG_PPC_ICP_CPPR_SHIFT; in kvmppc_xive_set_icp()
1509 xc->server_num, cppr, mfrr, xisr); in kvmppc_xive_set_icp()
1520 vcpu->arch.xive_saved_state.cppr = cppr; in kvmppc_xive_set_icp()
1521 xc->hw_cppr = xc->cppr = cppr; in kvmppc_xive_set_icp()
1530 if (mfrr < cppr) in kvmppc_xive_set_icp()
2914 xc->cppr, xc->hw_cppr, in xive_debug_show()