Lines Matching defs:cppr

41 	u8 cppr;
63 cppr = ack & 0xff;
64 if (cppr < 8)
65 xc->pending |= 1 << cppr;
68 if (cppr >= xc->hw_cppr)
70 smp_processor_id(), cppr, xc->hw_cppr);
74 * xc->cppr, this will be done as we scan for interrupts
77 xc->hw_cppr = cppr;
151 /* Don't scan past the guest cppr */
152 if (prio >= xc->cppr || prio > 7) {
153 if (xc->mfrr < xc->cppr) {
234 if (prio >= xc->mfrr && xc->mfrr < xc->cppr) {
266 * Note: This can only make xc->cppr smaller as the previous
268 * the current xc->cppr. Thus we don't need to re-check xc->mfrr
272 xc->cppr = prio;
279 if (xc->cppr != xc->hw_cppr) {
280 xc->hw_cppr = xc->cppr;
281 __raw_writeb(xc->cppr, xive_tima + TM_QW1_OS + TM_CPPR);
300 pr_devel(" new pending=0x%02x hw_cppr=%d cppr=%d\n",
301 xc->pending, xc->hw_cppr, xc->cppr);
304 old_cppr = xive_prio_to_guest(xc->cppr);
309 pr_devel(" got hirq=0x%x hw_cppr=%d cppr=%d\n",
310 hirq, xc->hw_cppr, xc->cppr);
367 vcpu->arch.regs.gpr[4] = hirq | (xc->cppr << 24);
396 for (prio = xc->cppr; prio < KVMPPC_XIVE_Q_COUNT; prio++) {
456 static int xive_vm_h_cppr(struct kvm_vcpu *vcpu, unsigned long cppr)
462 pr_devel("H_CPPR(cppr=%ld)\n", cppr);
467 cppr = xive_prio_from_guest(cppr);
470 old_cppr = xc->cppr;
471 xc->cppr = cppr;
474 * Order the above update of xc->cppr with the subsequent
479 if (cppr > old_cppr) {
509 xc->hw_cppr = cppr;
510 __raw_writeb(cppr, xive_tima + TM_QW1_OS + TM_CPPR);
531 xc->cppr = xive_prio_from_guest(new_cppr);
541 * This barrier orders the setting of xc->cppr vs.
566 * of xc->cppr vs. subsequent test of xc->mfrr done inside
614 xc->hw_cppr = xc->cppr;
615 __raw_writeb(xc->cppr, xive_tima + TM_QW1_OS + TM_CPPR);
639 * The load of xc->cppr below and the subsequent MMIO store
644 * updating xc->cppr then reading xc->mfrr.
650 /* Shoot the IPI if most favored than target cppr */
651 if (mfrr < xc->cppr)
1487 return (u64)xc->cppr << KVM_REG_PPC_ICP_CPPR_SHIFT |
1496 u8 cppr, mfrr;
1503 cppr = icpval >> KVM_REG_PPC_ICP_CPPR_SHIFT;
1508 pr_devel("set_icp vcpu %d cppr=0x%x mfrr=0x%x xisr=0x%x\n",
1509 xc->server_num, cppr, mfrr, xisr);
1520 vcpu->arch.xive_saved_state.cppr = cppr;
1521 xc->hw_cppr = xc->cppr = cppr;
1530 if (mfrr < cppr)
2916 xc->cppr, xc->hw_cppr,