Lines Matching defs:state
87 static void set_ctrlr_state(struct pxafb_info *fbi, u_int state);
107 static inline void pxafb_schedule_work(struct pxafb_info *fbi, u_int state)
122 if (fbi->task_state == C_ENABLE && state == C_REENABLE)
123 state = (u_int) -1;
124 if (fbi->task_state == C_DISABLE && state == C_ENABLE)
125 state = C_REENABLE;
127 if (state != (u_int)-1) {
128 fbi->task_state = state;
544 if (fbi->state != C_ENABLE)
1059 if (!fbi || (fbi->state != C_ENABLE))
1282 if (fbi->state == C_ENABLE) {
1540 * processes trying to alter state.
1542 static void set_ctrlr_state(struct pxafb_info *fbi, u_int state)
1548 old_state = fbi->state;
1553 if (old_state == C_STARTUP && state == C_REENABLE)
1554 state = C_ENABLE;
1556 switch (state) {
1563 fbi->state = state;
1575 fbi->state = state;
1589 fbi->state = C_ENABLE;
1625 fbi->state = C_ENABLE;
1643 u_int state = xchg(&fbi->task_state, -1);
1645 set_ctrlr_state(fbi, state);
1836 fbi->state = C_STARTUP;