Lines Matching refs:state
134 * A connection also maintains the state of operations sent over the
183 connection->state = GB_CONNECTION_STATE_DISABLED;
323 dev_err(&hd->dev, "%s: failed to set connected state: %d\n",
598 * Locking: Called with connection lock held and state set to DISABLED or
627 * Locking: Called with connection lock held and state set to ENABLED_TX.
667 * ENABLED_TX->ENABLED state transitions.
676 if (connection->state == GB_CONNECTION_STATE_ENABLED_TX) {
681 connection->state = GB_CONNECTION_STATE_ENABLED;
701 connection->state = GB_CONNECTION_STATE_ENABLED;
703 connection->state = GB_CONNECTION_STATE_ENABLED_TX;
714 connection->state = GB_CONNECTION_STATE_DISCONNECTING;
726 connection->state = GB_CONNECTION_STATE_DISABLED;
743 if (connection->state == GB_CONNECTION_STATE_ENABLED)
763 if (connection->state == GB_CONNECTION_STATE_ENABLED) {
768 if (connection->state == GB_CONNECTION_STATE_ENABLED_TX)
787 if (connection->state != GB_CONNECTION_STATE_ENABLED) {
791 connection->state = GB_CONNECTION_STATE_ENABLED_TX;
821 if (connection->state == GB_CONNECTION_STATE_DISABLED)
827 connection->state = GB_CONNECTION_STATE_DISCONNECTING;
839 connection->state = GB_CONNECTION_STATE_DISABLED;
859 if (connection->state == GB_CONNECTION_STATE_DISABLED)
865 connection->state = GB_CONNECTION_STATE_DISABLED;
886 if (WARN_ON(connection->state != GB_CONNECTION_STATE_DISABLED))