Lines Matching refs:to_lnk
921 struct smc_link *to_lnk) in smc_switch_link_and_count() argument
924 conn->lnk = to_lnk; in smc_switch_link_and_count()
931 struct smc_link *to_lnk = NULL; in smc_switch_conns() local
949 to_lnk = &lgr->lnk[i]; in smc_switch_conns()
952 if (!to_lnk || !smc_wr_tx_link_hold(to_lnk)) { in smc_switch_conns()
976 smc_switch_link_and_count(conn, to_lnk); in smc_switch_conns()
983 rc = smc_cdc_get_free_slot(conn, to_lnk, &wr_buf, NULL, &pend); in smc_switch_conns()
988 smc_switch_link_and_count(conn, to_lnk); in smc_switch_conns()
997 smc_wr_tx_link_put(to_lnk); in smc_switch_conns()
998 return to_lnk; in smc_switch_conns()
1001 smcr_link_down_cond_sched(to_lnk); in smc_switch_conns()
1002 smc_wr_tx_link_put(to_lnk); in smc_switch_conns()
1513 struct smc_link *to_lnk; in smcr_link_down() local
1519 to_lnk = smc_switch_conns(lgr, lnk, true); in smcr_link_down()
1520 if (!to_lnk) { /* no backup link available */ in smcr_link_down()
1529 smc_llc_srv_delete_link_local(to_lnk, del_link_id); in smcr_link_down()
1541 smc_llc_send_delete_link(to_lnk, del_link_id, in smcr_link_down()