Lines Matching defs:state
18 const char *mei_dev_state_str(int state)
20 #define MEI_DEV_STATE(state) case MEI_DEV_##state: return #state
21 switch (state) {
35 const char *mei_pg_state_str(enum mei_pg_state state)
37 #define MEI_PG_STATE(state) case MEI_PG_##state: return #state
38 switch (state) {
100 enum mei_dev_state state = dev->dev_state;
104 if (state != MEI_DEV_INITIALIZING &&
105 state != MEI_DEV_DISABLED &&
106 state != MEI_DEV_POWER_DOWN &&
107 state != MEI_DEV_POWER_UP) {
112 mei_dev_state_str(state), fw_sts_str);
125 interrupts_enabled = state != MEI_DEV_POWER_DOWN;
136 /* fall through and remove the sw state even if hw reset has failed */
138 /* no need to clean up software state in case of power up */
139 if (state != MEI_DEV_INITIALIZING && state != MEI_DEV_POWER_UP)
151 if (state == MEI_DEV_POWER_DOWN) {
318 /* move device to disabled state unconditionally */
339 dev_dbg(dev->dev, "write pg: is idle[%d] state=%s ctrl=%01d write=%01d wwait=%01d\n",