Lines Matching refs:dev_state
92 if (dev->dev_state == DEV_STATE_UNMAPPED) { in process_msg_open_rsp()
98 if (dev->dev_state == DEV_STATE_MAPPED_DISCONNECTED) { in process_msg_open_rsp()
111 dev->dev_state = DEV_STATE_MAPPED; in process_msg_open_rsp()
124 if (dev->dev_state != DEV_STATE_MAPPED) { in rnbd_clt_resize_disk()
489 if (dev->dev_state == DEV_STATE_INIT) in msg_open_conf()
640 if (dev->dev_state == DEV_STATE_MAPPED) { in set_dev_states_to_disconnected()
641 dev->dev_state = DEV_STATE_MAPPED_DISCONNECTED; in set_dev_states_to_disconnected()
685 skip = (dev->dev_state == DEV_STATE_INIT); in remap_devs()
931 if (dev->dev_state == DEV_STATE_UNMAPPED || in rnbd_client_open()
1120 if (dev->dev_state != DEV_STATE_MAPPED) in rnbd_queue_rq()
1463 dev->dev_state = DEV_STATE_INIT; in init_dev()
1690 if (dev->dev_state == DEV_STATE_UNMAPPED) { in rnbd_clt_unmap_device()
1703 was_mapped = (dev->dev_state == DEV_STATE_MAPPED); in rnbd_clt_unmap_device()
1704 dev->dev_state = DEV_STATE_UNMAPPED; in rnbd_clt_unmap_device()
1734 if (dev->dev_state == DEV_STATE_MAPPED_DISCONNECTED) in rnbd_clt_remap_device()
1736 else if (dev->dev_state == DEV_STATE_UNMAPPED) in rnbd_clt_remap_device()
1738 else if (dev->dev_state == DEV_STATE_MAPPED) in rnbd_clt_remap_device()