Lines Matching refs:new_state

336 	union kvmppc_icp_state old_state, new_state;  in icp_try_to_deliver()  local
343 old_state = new_state = READ_ONCE(icp->state); in icp_try_to_deliver()
348 success = new_state.cppr > priority && in icp_try_to_deliver()
349 new_state.mfrr > priority && in icp_try_to_deliver()
350 new_state.pending_pri > priority; in icp_try_to_deliver()
357 *reject = new_state.xisr; in icp_try_to_deliver()
358 new_state.xisr = irq; in icp_try_to_deliver()
359 new_state.pending_pri = priority; in icp_try_to_deliver()
366 new_state.need_resend = true; in icp_try_to_deliver()
369 } while (!icp_try_update(icp, old_state, new_state, false)); in icp_try_to_deliver()
500 union kvmppc_icp_state old_state, new_state; in icp_down_cppr() local
533 old_state = new_state = READ_ONCE(icp->state); in icp_down_cppr()
536 new_state.cppr = new_cppr; in icp_down_cppr()
547 if (new_state.mfrr < new_cppr && in icp_down_cppr()
548 new_state.mfrr <= new_state.pending_pri) { in icp_down_cppr()
549 WARN_ON(new_state.xisr != XICS_IPI && in icp_down_cppr()
550 new_state.xisr != 0); in icp_down_cppr()
551 new_state.pending_pri = new_state.mfrr; in icp_down_cppr()
552 new_state.xisr = XICS_IPI; in icp_down_cppr()
556 resend = new_state.need_resend; in icp_down_cppr()
557 new_state.need_resend = 0; in icp_down_cppr()
559 } while (!icp_try_update(icp, old_state, new_state, true)); in icp_down_cppr()
572 union kvmppc_icp_state old_state, new_state; in kvmppc_h_xirr() local
588 old_state = new_state = READ_ONCE(icp->state); in kvmppc_h_xirr()
593 new_state.cppr = new_state.pending_pri; in kvmppc_h_xirr()
594 new_state.pending_pri = 0xff; in kvmppc_h_xirr()
595 new_state.xisr = 0; in kvmppc_h_xirr()
597 } while (!icp_try_update(icp, old_state, new_state, true)); in kvmppc_h_xirr()
607 union kvmppc_icp_state old_state, new_state; in kvmppc_h_ipi() local
655 old_state = new_state = READ_ONCE(icp->state); in kvmppc_h_ipi()
658 new_state.mfrr = mfrr; in kvmppc_h_ipi()
663 if (mfrr < new_state.cppr) { in kvmppc_h_ipi()
665 if (mfrr <= new_state.pending_pri) { in kvmppc_h_ipi()
666 reject = new_state.xisr; in kvmppc_h_ipi()
667 new_state.pending_pri = mfrr; in kvmppc_h_ipi()
668 new_state.xisr = XICS_IPI; in kvmppc_h_ipi()
673 resend = new_state.need_resend; in kvmppc_h_ipi()
674 new_state.need_resend = 0; in kvmppc_h_ipi()
676 } while (!icp_try_update(icp, old_state, new_state, local)); in kvmppc_h_ipi()
708 union kvmppc_icp_state old_state, new_state; in kvmppc_h_cppr() local
742 old_state = new_state = READ_ONCE(icp->state); in kvmppc_h_cppr()
745 new_state.cppr = cppr; in kvmppc_h_cppr()
747 if (cppr <= new_state.pending_pri) { in kvmppc_h_cppr()
748 reject = new_state.xisr; in kvmppc_h_cppr()
749 new_state.xisr = 0; in kvmppc_h_cppr()
750 new_state.pending_pri = 0xff; in kvmppc_h_cppr()
753 } while (!icp_try_update(icp, old_state, new_state, true)); in kvmppc_h_cppr()
1079 union kvmppc_icp_state old_state, new_state; in kvmppc_xics_set_icp() local
1110 new_state.raw = 0; in kvmppc_xics_set_icp()
1111 new_state.cppr = cppr; in kvmppc_xics_set_icp()
1112 new_state.xisr = xisr; in kvmppc_xics_set_icp()
1113 new_state.mfrr = mfrr; in kvmppc_xics_set_icp()
1114 new_state.pending_pri = pending_pri; in kvmppc_xics_set_icp()
1136 if (new_state.mfrr <= old_state.mfrr) { in kvmppc_xics_set_icp()
1138 new_state.need_resend = old_state.need_resend; in kvmppc_xics_set_icp()
1141 new_state.need_resend = 0; in kvmppc_xics_set_icp()
1143 } while (!icp_try_update(icp, old_state, new_state, false)); in kvmppc_xics_set_icp()