Lines Matching refs:oc
974 is_valid_conn_transition(enum drbd_conns oc, enum drbd_conns nc) in is_valid_conn_transition() argument
977 if (oc == nc) in is_valid_conn_transition()
981 if (oc == C_STANDALONE && nc == C_DISCONNECTING) in is_valid_conn_transition()
985 if (oc == C_STANDALONE && nc != C_UNCONNECTED) in is_valid_conn_transition()
990 if (oc < C_WF_REPORT_PARAMS && nc >= C_CONNECTED) in is_valid_conn_transition()
994 if (oc >= C_TIMEOUT && oc <= C_TEAR_DOWN && nc != C_UNCONNECTED && nc != C_DISCONNECTING) in is_valid_conn_transition()
998 if (oc == C_DISCONNECTING && nc != C_STANDALONE) in is_valid_conn_transition()
2035 enum drbd_conns oc; member
2048 enum drbd_conns oc = acscw->oc; in w_after_conn_state_ch() local
2058 if (oc == C_STANDALONE && ns_max.conn == C_UNCONNECTED) in w_after_conn_state_ch()
2061 if (oc == C_DISCONNECTING && ns_max.conn == C_STANDALONE) { in w_after_conn_state_ch()
2294 enum drbd_conns oc = connection->cstate; in _conn_request_state() local
2300 rv = is_valid_conn_transition(oc, val.conn); in _conn_request_state()
2309 if (oc == C_WF_REPORT_PARAMS && val.conn == C_DISCONNECTING && in _conn_request_state()
2352 acscw->oc = os.conn; in _conn_request_state()
2377 drbd_err(connection, " old_conn:%s wanted_conn:%s\n", drbd_conn_str(oc), drbd_conn_str(val.conn)); in _conn_request_state()