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) {
36 const char *mei_pg_state_str(enum mei_pg_state state)
38 #define MEI_PG_STATE(state) case MEI_PG_##state: return #state
39 switch (state) {
101 enum mei_dev_state state = dev->dev_state;
105 if (state != MEI_DEV_INITIALIZING &&
106 state != MEI_DEV_DISABLED &&
107 state != MEI_DEV_POWER_DOWN &&
108 state != MEI_DEV_POWER_UP) {
113 mei_dev_state_str(state), fw_sts_str);
126 interrupts_enabled = state != MEI_DEV_POWER_DOWN;
137 /* fall through and remove the sw state even if hw reset has failed */
139 /* no need to clean up software state in case of power up */
140 if (state != MEI_DEV_INITIALIZING && state != MEI_DEV_POWER_UP)
155 if (state == MEI_DEV_POWER_DOWN) {
171 dev_dbg(dev->dev, "wrong state = %d on link start\n", dev->dev_state);
325 /* move device to disabled state unconditionally */
346 dev_dbg(dev->dev, "write pg: is idle[%d] state=%s ctrl=%01d write=%01d wwait=%01d\n",