Lines Matching refs:C_CONNECTED
470 return (os.conn >= C_CONNECTED && ns.conn >= C_CONNECTED && in cl_wide_st_chg()
475 (os.conn >= C_CONNECTED && ns.conn == C_DISCONNECTING) || in cl_wide_st_chg()
476 (os.conn == C_CONNECTED && ns.conn == C_VERIFY_S) || in cl_wide_st_chg()
477 (os.conn == C_CONNECTED && ns.conn == C_WF_REPORT_PARAMS); in cl_wide_st_chg()
853 else if (ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.disk < D_UP_TO_DATE) in is_valid_state()
857 ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk >= D_UNKNOWN) in is_valid_state()
863 else if (ns.conn > C_CONNECTED && ns.disk < D_INCONSISTENT) in is_valid_state()
866 else if (ns.conn > C_CONNECTED && ns.pdsk < D_INCONSISTENT) in is_valid_state()
869 else if (ns.conn > C_CONNECTED && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE) in is_valid_state()
872 else if ((ns.conn == C_CONNECTED || in is_valid_state()
894 else if (ns.conn >= C_CONNECTED && ns.pdsk == D_UNKNOWN) in is_valid_state()
917 os.conn > C_CONNECTED) in is_valid_soft_transition()
939 (ns.conn >= C_CONNECTED && os.conn == C_WF_REPORT_PARAMS))) in is_valid_soft_transition()
951 if ((ns.conn == C_VERIFY_S || ns.conn == C_VERIFY_T) && os.conn < C_CONNECTED) in is_valid_soft_transition()
955 ns.conn != os.conn && os.conn > C_CONNECTED) in is_valid_soft_transition()
959 os.conn < C_CONNECTED) in is_valid_soft_transition()
967 os.conn < C_CONNECTED && os.pdsk > D_OUTDATED) in is_valid_soft_transition()
990 if (oc < C_WF_REPORT_PARAMS && nc >= C_CONNECTED) in is_valid_conn_transition()
1070 if (ns.conn < C_CONNECTED) { in sanitize_state()
1083 if (ns.conn > C_CONNECTED && (ns.disk <= D_FAILED || ns.pdsk <= D_FAILED)) { in sanitize_state()
1087 ns.conn = C_CONNECTED; in sanitize_state()
1091 if (ns.conn < C_CONNECTED && ns.disk == D_NEGOTIATING && in sanitize_state()
1106 if (ns.conn >= C_CONNECTED && ns.conn < C_AHEAD) { in sanitize_state()
1136 case C_CONNECTED: in sanitize_state()
1194 (ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk > D_OUTDATED) && in sanitize_state()
1195 !(os.role == R_PRIMARY && os.conn < C_CONNECTED && os.pdsk > D_OUTDATED)) in sanitize_state()
1362 ns.conn <= C_CONNECTED) { in _drbd_set_state()
1385 if (os.conn == C_CONNECTED && in _drbd_set_state()
1457 if (os.conn < C_CONNECTED && ns.conn >= C_CONNECTED) { in _drbd_set_state()
1506 _drbd_request_state(device, NS(conn, C_CONNECTED), CS_VERBOSE); in abw_start_sync()
1737 if (os.conn < C_CONNECTED && conn_lowest_conn(connection) >= C_CONNECTED) in after_state_ch()
1756 if (resource->susp_fen && conn_lowest_conn(connection) >= C_CONNECTED) { in after_state_ch()
1850 device->state.conn <= C_CONNECTED && get_ldev(device)) { in after_state_ch()
1859 if (ns.conn >= C_CONNECTED && in after_state_ch()
1867 if (ns.conn >= C_CONNECTED && in after_state_ch()
1879 if (os.conn == C_WF_REPORT_PARAMS && ns.conn >= C_CONNECTED) in after_state_ch()
1940 if (ns.conn >= C_CONNECTED) in after_state_ch()
1964 if (ns.conn >= C_CONNECTED) in after_state_ch()
1972 if (os.disk == D_UP_TO_DATE && ns.disk == D_INCONSISTENT && ns.conn >= C_CONNECTED) in after_state_ch()
1978 if (ns.conn == C_CONNECTED) in after_state_ch()
1983 if ((os.conn > C_CONNECTED && ns.conn <= C_CONNECTED) || in after_state_ch()
1990 if (os.disk < D_UP_TO_DATE && os.conn >= C_SYNC_SOURCE && ns.conn == C_CONNECTED) in after_state_ch()
1996 if (os.conn == C_VERIFY_S && ns.conn == C_CONNECTED in after_state_ch()
2011 if ((os.conn > C_CONNECTED && os.conn < C_AHEAD) && in after_state_ch()
2012 (ns.conn == C_CONNECTED || ns.conn >= C_AHEAD) && get_ldev(device)) { in after_state_ch()