Lines Matching refs:reason_code

569 static void smc_switch_to_fallback(struct smc_sock *smc, int reason_code)  in smc_switch_to_fallback()  argument
576 smc->fallback_rsn = reason_code; in smc_switch_to_fallback()
578 trace_smc_switch_to_fallback(smc, reason_code); in smc_switch_to_fallback()
598 static int smc_connect_fallback(struct smc_sock *smc, int reason_code) in smc_connect_fallback() argument
600 smc_switch_to_fallback(smc, reason_code); in smc_connect_fallback()
609 static int smc_connect_decline_fallback(struct smc_sock *smc, int reason_code, in smc_connect_decline_fallback() argument
615 if (reason_code < 0) { /* error, fallback is not possible */ in smc_connect_decline_fallback()
619 return reason_code; in smc_connect_decline_fallback()
621 if (reason_code != SMC_CLC_DECL_PEERDECL) { in smc_connect_decline_fallback()
622 rc = smc_clc_send_decline(smc, reason_code, version); in smc_connect_decline_fallback()
630 return smc_connect_fallback(smc, reason_code); in smc_connect_decline_fallback()
874 int i, reason_code = 0; in smc_connect_rdma() local
885 reason_code = smc_connect_rdma_v2_prepare(smc, aclc, ini); in smc_connect_rdma()
886 if (reason_code) in smc_connect_rdma()
887 return reason_code; in smc_connect_rdma()
890 reason_code = smc_conn_create(smc, ini); in smc_connect_rdma()
891 if (reason_code) { in smc_connect_rdma()
893 return reason_code; in smc_connect_rdma()
917 reason_code = SMC_CLC_DECL_NOSRVLINK; in smc_connect_rdma()
925 reason_code = SMC_CLC_DECL_MEM; in smc_connect_rdma()
933 reason_code = SMC_CLC_DECL_ERR_RTOK; in smc_connect_rdma()
942 reason_code = SMC_CLC_DECL_ERR_RDYLNK; in smc_connect_rdma()
947 reason_code = SMC_CLC_DECL_ERR_REGRMB; in smc_connect_rdma()
963 reason_code = smc_clc_send_confirm(smc, ini->first_contact_local, in smc_connect_rdma()
965 if (reason_code) in smc_connect_rdma()
973 reason_code = smcr_clnt_conf_first_link(smc); in smc_connect_rdma()
975 if (reason_code) in smc_connect_rdma()
991 return reason_code; in smc_connect_rdma()
1510 static void smc_listen_decline(struct smc_sock *new_smc, int reason_code, in smc_listen_decline() argument
1515 if (reason_code < 0) { /* error, no fallback possible */ in smc_listen_decline()
1519 smc_switch_to_fallback(new_smc, reason_code); in smc_listen_decline()
1520 if (reason_code && reason_code != SMC_CLC_DECL_PEERDECL) { in smc_listen_decline()
1521 if (smc_clc_send_decline(new_smc, reason_code, version) < 0) { in smc_listen_decline()
1918 int reason_code = 0; in smc_listen_rdma_finish() local
1931 reason_code = smcr_serv_conf_first_link(new_smc); in smc_listen_rdma_finish()
1934 return reason_code; in smc_listen_rdma_finish()