Lines Matching refs:state
220 static void set_ctrlr_state(struct sa1100fb_info *fbi, u_int state);
222 static inline void sa1100fb_schedule_work(struct sa1100fb_info *fbi, u_int state)
235 if (fbi->task_state == C_ENABLE && state == C_REENABLE)
236 state = (u_int) -1;
237 if (fbi->task_state == C_DISABLE && state == C_ENABLE)
238 state = C_REENABLE;
240 if (state != (u_int)-1) {
241 fbi->task_state = state;
498 * This refers to the state of the display when it is in full operation
500 * This defines an optional operating state of minimal power reduction with
505 * recovery time from this state than from the Stand-by state
508 * and is non-operational. Recovery from this state may optionally require
511 * Now, the fbdev driver adds an additional state, (blank), where they
863 * processes trying to alter state.
865 static void set_ctrlr_state(struct sa1100fb_info *fbi, u_int state)
871 old_state = fbi->state;
876 if (old_state == C_STARTUP && state == C_REENABLE)
877 state = C_ENABLE;
879 switch (state) {
886 fbi->state = state;
897 fbi->state = state;
912 fbi->state = C_ENABLE;
946 fbi->state = C_ENABLE;
964 u_int state = xchg(&fbi->task_state, -1);
966 set_ctrlr_state(fbi, state);
1002 static int sa1100fb_suspend(struct platform_device *dev, pm_message_t state)
1125 fbi->state = C_STARTUP;