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()
659 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_ioctl()
797 if (dev->dev_state != MEI_DEV_ENABLED || in mei_poll()
873 if (dev->dev_state != MEI_DEV_ENABLED || !mei_cl_is_connected(cl)) { in mei_fsync()
1093 enum mei_dev_state dev_state; in dev_state_show() local
1096 dev_state = dev->dev_state; in dev_state_show()
1099 return sprintf(buf, "%s", mei_dev_state_str(dev_state)); in dev_state_show()
1101 static DEVICE_ATTR_RO(dev_state);
1113 if (dev->dev_state == state) in mei_set_devstate()
1116 dev->dev_state = state; in mei_set_devstate()