Lines Matching refs:new_state

339 	union kvmppc_icp_state old_state, new_state;  in icp_try_to_deliver()  local
346 old_state = new_state = READ_ONCE(icp->state); in icp_try_to_deliver()
351 success = new_state.cppr > priority && in icp_try_to_deliver()
352 new_state.mfrr > priority && in icp_try_to_deliver()
353 new_state.pending_pri > priority; in icp_try_to_deliver()
360 *reject = new_state.xisr; in icp_try_to_deliver()
361 new_state.xisr = irq; in icp_try_to_deliver()
362 new_state.pending_pri = priority; in icp_try_to_deliver()
369 new_state.need_resend = true; in icp_try_to_deliver()
372 } while (!icp_try_update(icp, old_state, new_state, false)); in icp_try_to_deliver()
516 union kvmppc_icp_state old_state, new_state; in icp_down_cppr() local
549 old_state = new_state = READ_ONCE(icp->state); in icp_down_cppr()
552 new_state.cppr = new_cppr; in icp_down_cppr()
563 if (new_state.mfrr < new_cppr && in icp_down_cppr()
564 new_state.mfrr <= new_state.pending_pri) { in icp_down_cppr()
565 WARN_ON(new_state.xisr != XICS_IPI && in icp_down_cppr()
566 new_state.xisr != 0); in icp_down_cppr()
567 new_state.pending_pri = new_state.mfrr; in icp_down_cppr()
568 new_state.xisr = XICS_IPI; in icp_down_cppr()
572 resend = new_state.need_resend; in icp_down_cppr()
573 new_state.need_resend = 0; in icp_down_cppr()
575 } while (!icp_try_update(icp, old_state, new_state, true)); in icp_down_cppr()
588 union kvmppc_icp_state old_state, new_state; in kvmppc_h_xirr() local
603 old_state = new_state = READ_ONCE(icp->state); in kvmppc_h_xirr()
608 new_state.cppr = new_state.pending_pri; in kvmppc_h_xirr()
609 new_state.pending_pri = 0xff; in kvmppc_h_xirr()
610 new_state.xisr = 0; in kvmppc_h_xirr()
612 } while (!icp_try_update(icp, old_state, new_state, true)); in kvmppc_h_xirr()
622 union kvmppc_icp_state old_state, new_state; in kvmppc_h_ipi() local
670 old_state = new_state = READ_ONCE(icp->state); in kvmppc_h_ipi()
673 new_state.mfrr = mfrr; in kvmppc_h_ipi()
678 if (mfrr < new_state.cppr) { in kvmppc_h_ipi()
680 if (mfrr <= new_state.pending_pri) { in kvmppc_h_ipi()
681 reject = new_state.xisr; in kvmppc_h_ipi()
682 new_state.pending_pri = mfrr; in kvmppc_h_ipi()
683 new_state.xisr = XICS_IPI; in kvmppc_h_ipi()
688 resend = new_state.need_resend; in kvmppc_h_ipi()
689 new_state.need_resend = 0; in kvmppc_h_ipi()
691 } while (!icp_try_update(icp, old_state, new_state, local)); in kvmppc_h_ipi()
723 union kvmppc_icp_state old_state, new_state; in kvmppc_h_cppr() local
756 old_state = new_state = READ_ONCE(icp->state); in kvmppc_h_cppr()
759 new_state.cppr = cppr; in kvmppc_h_cppr()
761 if (cppr <= new_state.pending_pri) { in kvmppc_h_cppr()
762 reject = new_state.xisr; in kvmppc_h_cppr()
763 new_state.xisr = 0; in kvmppc_h_cppr()
764 new_state.pending_pri = 0xff; in kvmppc_h_cppr()
767 } while (!icp_try_update(icp, old_state, new_state, true)); in kvmppc_h_cppr()
1105 union kvmppc_icp_state old_state, new_state; in kvmppc_xics_set_icp() local
1136 new_state.raw = 0; in kvmppc_xics_set_icp()
1137 new_state.cppr = cppr; in kvmppc_xics_set_icp()
1138 new_state.xisr = xisr; in kvmppc_xics_set_icp()
1139 new_state.mfrr = mfrr; in kvmppc_xics_set_icp()
1140 new_state.pending_pri = pending_pri; in kvmppc_xics_set_icp()
1161 if (new_state.mfrr <= old_state.mfrr) { in kvmppc_xics_set_icp()
1163 new_state.need_resend = old_state.need_resend; in kvmppc_xics_set_icp()
1166 new_state.need_resend = 0; in kvmppc_xics_set_icp()
1168 } while (!icp_try_update(icp, old_state, new_state, false)); in kvmppc_xics_set_icp()