Searched refs:curstate (Results 1 – 3 of 3) sorted by relevance
204 enum multi_stop_state newstate, curstate = MULTI_STOP_NONE; in multi_cpu_stop() local229 if (newstate != curstate) { in multi_cpu_stop()230 curstate = newstate; in multi_cpu_stop()231 switch (curstate) { in multi_cpu_stop()244 } else if (curstate > MULTI_STOP_PREPARE) { in multi_cpu_stop()254 } while (curstate != MULTI_STOP_EXIT); in multi_cpu_stop()
197 struct pwm_state curstate; in rockchip_pwm_apply() local209 pwm_get_state(pwm, &curstate); in rockchip_pwm_apply()210 enabled = curstate.enabled; in rockchip_pwm_apply()212 if (state->polarity != curstate.polarity && enabled && in rockchip_pwm_apply()
664 union tmigr_state curstate, newstate; in tmigr_active_up() local674 curstate.state = atomic_read(&group->migr_state); in tmigr_active_up()677 newstate = curstate; in tmigr_active_up()690 } while (!atomic_try_cmpxchg(&group->migr_state, &curstate.state, newstate.state)); in tmigr_active_up()1276 union tmigr_state curstate, newstate, childstate; in tmigr_inactive_up() local1289 curstate.state = atomic_read_acquire(&group->migr_state); in tmigr_inactive_up()1295 newstate = curstate; in tmigr_inactive_up()1327 if (atomic_try_cmpxchg(&group->migr_state, &curstate.state, newstate.state)) { in tmigr_inactive_up()