• Home
  • Raw
  • Download

Lines Matching refs:new_state

122 	union kvmppc_icp_state old_state, new_state;  in icp_rm_down_cppr()  local
155 old_state = new_state = ACCESS_ONCE(icp->state); in icp_rm_down_cppr()
158 new_state.cppr = new_cppr; in icp_rm_down_cppr()
169 if (new_state.mfrr < new_cppr && in icp_rm_down_cppr()
170 new_state.mfrr <= new_state.pending_pri) { in icp_rm_down_cppr()
171 new_state.pending_pri = new_state.mfrr; in icp_rm_down_cppr()
172 new_state.xisr = XICS_IPI; in icp_rm_down_cppr()
176 resend = new_state.need_resend; in icp_rm_down_cppr()
177 new_state.need_resend = 0; in icp_rm_down_cppr()
179 } while (!icp_rm_try_update(icp, old_state, new_state)); in icp_rm_down_cppr()
193 union kvmppc_icp_state old_state, new_state; in kvmppc_rm_h_xirr() local
212 old_state = new_state = ACCESS_ONCE(icp->state); in kvmppc_rm_h_xirr()
217 new_state.cppr = new_state.pending_pri; in kvmppc_rm_h_xirr()
218 new_state.pending_pri = 0xff; in kvmppc_rm_h_xirr()
219 new_state.xisr = 0; in kvmppc_rm_h_xirr()
221 } while (!icp_rm_try_update(icp, old_state, new_state)); in kvmppc_rm_h_xirr()
232 union kvmppc_icp_state old_state, new_state; in kvmppc_rm_h_ipi() local
263 old_state = new_state = ACCESS_ONCE(icp->state); in kvmppc_rm_h_ipi()
266 new_state.mfrr = mfrr; in kvmppc_rm_h_ipi()
271 if (mfrr < new_state.cppr) { in kvmppc_rm_h_ipi()
273 if (mfrr <= new_state.pending_pri) in kvmppc_rm_h_ipi()
274 reject = new_state.xisr; in kvmppc_rm_h_ipi()
275 new_state.pending_pri = mfrr; in kvmppc_rm_h_ipi()
276 new_state.xisr = XICS_IPI; in kvmppc_rm_h_ipi()
279 if (mfrr > old_state.mfrr && mfrr > new_state.cppr) { in kvmppc_rm_h_ipi()
280 resend = new_state.need_resend; in kvmppc_rm_h_ipi()
281 new_state.need_resend = 0; in kvmppc_rm_h_ipi()
283 } while (!icp_rm_try_update(icp, old_state, new_state)); in kvmppc_rm_h_ipi()
300 union kvmppc_icp_state old_state, new_state; in kvmppc_rm_h_cppr() local
335 old_state = new_state = ACCESS_ONCE(icp->state); in kvmppc_rm_h_cppr()
338 new_state.cppr = cppr; in kvmppc_rm_h_cppr()
340 if (cppr <= new_state.pending_pri) { in kvmppc_rm_h_cppr()
341 reject = new_state.xisr; in kvmppc_rm_h_cppr()
342 new_state.xisr = 0; in kvmppc_rm_h_cppr()
343 new_state.pending_pri = 0xff; in kvmppc_rm_h_cppr()
346 } while (!icp_rm_try_update(icp, old_state, new_state)); in kvmppc_rm_h_cppr()