Lines Matching refs: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)
1056 if (!fbi || (fbi->state != C_ENABLE))
1279 if (fbi->state == C_ENABLE) {
1537 * processes trying to alter state.
1539 static void set_ctrlr_state(struct pxafb_info *fbi, u_int state)
1545 old_state = fbi->state;
1550 if (old_state == C_STARTUP && state == C_REENABLE)
1551 state = C_ENABLE;
1553 switch (state) {
1560 fbi->state = state;
1572 fbi->state = state;
1586 fbi->state = C_ENABLE;
1622 fbi->state = C_ENABLE;
1640 u_int state = xchg(&fbi->task_state, -1);
1642 set_ctrlr_state(fbi, state);
1832 fbi->state = C_STARTUP;