Lines Matching refs:dev_state
58 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_open()
60 mei_dev_state_str(dev->dev_state)); in mei_open()
185 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_read()
326 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_write()
662 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_ioctl()
800 if (dev->dev_state != MEI_DEV_ENABLED || in mei_poll()
876 if (dev->dev_state != MEI_DEV_ENABLED || !mei_cl_is_connected(cl)) { in mei_fsync()
1096 enum mei_dev_state dev_state; in dev_state_show() local
1099 dev_state = dev->dev_state; in dev_state_show()
1102 return sprintf(buf, "%s", mei_dev_state_str(dev_state)); in dev_state_show()
1104 static DEVICE_ATTR_RO(dev_state);
1116 if (dev->dev_state == state) in mei_set_devstate()
1119 dev->dev_state = state; in mei_set_devstate()