Lines Matching refs:dev_state
56 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_open()
58 mei_dev_state_str(dev->dev_state)); in mei_open()
183 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_read()
324 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_write()
660 if (dev->dev_state != MEI_DEV_ENABLED) { in mei_ioctl()
798 if (dev->dev_state != MEI_DEV_ENABLED || in mei_poll()
874 if (dev->dev_state != MEI_DEV_ENABLED || !mei_cl_is_connected(cl)) { in mei_fsync()
1094 enum mei_dev_state dev_state; in dev_state_show() local
1097 dev_state = dev->dev_state; in dev_state_show()
1100 return sprintf(buf, "%s", mei_dev_state_str(dev_state)); in dev_state_show()
1102 static DEVICE_ATTR_RO(dev_state);
1114 if (dev->dev_state == state) in mei_set_devstate()
1117 dev->dev_state = state; in mei_set_devstate()