Lines Matching refs:lnk
293 struct smc_link *lnk, in smc_llc_wait() argument
301 (lnk && !smc_link_usable(lnk)) || in smc_llc_wait()
305 (lnk && !smc_link_usable(lnk)) || list_empty(&lgr->list)) { in smc_llc_wait()
434 link = &send_link->lgr->lnk[i]; in smc_llc_send_confirm_rkey()
644 if (lgr->lnk[i].state == SMC_LNK_UNUSED) in smc_llc_alloc_alt_link()
648 if (lgr->lnk[i].state == SMC_LNK_UNUSED) in smc_llc_alloc_alt_link()
896 lnk_new = &lgr->lnk[lnk_idx]; in smc_llc_cli_add_link()
994 if (!smc_link_active(&lgr->lnk[i])) in smc_llc_active_link_count()
1012 if (!smc_link_usable(&lgr->lnk[i]) || in smc_llc_find_asym_link()
1013 !smc_link_usable(&lgr->lnk[j])) in smc_llc_find_asym_link()
1015 if (!memcmp(lgr->lnk[i].gid, lgr->lnk[j].gid, in smc_llc_find_asym_link()
1027 if (!smc_link_usable(&lgr->lnk[k])) in smc_llc_find_asym_link()
1030 !memcmp(lgr->lnk[i].peer_gid, lgr->lnk[k].peer_gid, in smc_llc_find_asym_link()
1036 !memcmp(lgr->lnk[j].peer_gid, lgr->lnk[k].peer_gid, in smc_llc_find_asym_link()
1043 return (asym_idx < 0) ? NULL : &lgr->lnk[asym_idx]; in smc_llc_find_asym_link()
1177 rc = smcr_link_init(lgr, &lgr->lnk[lnk_idx], lnk_idx, &ini); in smc_llc_srv_add_link()
1180 link_new = &lgr->lnk[lnk_idx]; in smc_llc_srv_add_link()
1292 struct smc_link *lnk_del = NULL, *lnk_asym, *lnk; in smc_llc_process_cli_delete_link() local
1299 lnk = qentry->link; in smc_llc_process_cli_delete_link()
1309 if (lgr->lnk[lnk_idx].link_id != del_llc->link_num) in smc_llc_process_cli_delete_link()
1311 lnk_del = &lgr->lnk[lnk_idx]; in smc_llc_process_cli_delete_link()
1318 smc_llc_send_message(lnk, &qentry->msg); in smc_llc_process_cli_delete_link()
1324 smc_llc_send_message(lnk, &qentry->msg); /* response */ in smc_llc_process_cli_delete_link()
1361 if (!smc_link_sendable(&lgr->lnk[i])) in smc_llc_send_link_delete_all()
1363 if (!smc_llc_send_message_wait(&lgr->lnk[i], &delllc)) in smc_llc_send_link_delete_all()
1371 struct smc_link *lnk, *lnk_del; in smc_llc_process_srv_delete_link() local
1378 lnk = qentry->link; in smc_llc_process_srv_delete_link()
1391 if (lgr->lnk[i].link_id == del_llc->link_num) { in smc_llc_process_srv_delete_link()
1392 lnk_del = &lgr->lnk[i]; in smc_llc_process_srv_delete_link()
1408 if (!smc_llc_send_message(lnk, &qentry->msg)) { in smc_llc_process_srv_delete_link()
1411 qentry2 = smc_llc_wait(lgr, lnk, SMC_LLC_WAIT_TIME, in smc_llc_process_srv_delete_link()
1429 smc_llc_add_link_local(lnk); in smc_llc_process_srv_delete_link()