Lines Matching refs:lnk_idx

598 	int prim_lnk_idx, lnk_idx, i;  in smc_llc_fill_ext_v2()  local
607 lnk_idx = link_new->link_idx; in smc_llc_fill_ext_v2()
618 ext->rt[i].rmb_key_new = htonl(rmb->mr_rx[lnk_idx]->rkey); in smc_llc_fill_ext_v2()
620 cpu_to_be64((u64)sg_dma_address(rmb->sgt[lnk_idx].sgl)); in smc_llc_fill_ext_v2()
827 int prim_lnk_idx, lnk_idx, i, rc; in smc_llc_add_link_cont() local
842 lnk_idx = link_new->link_idx; in smc_llc_add_link_cont()
856 addc_llc->rt[i].rmb_key_new = htonl(rmb->mr_rx[lnk_idx]->rkey); in smc_llc_add_link_cont()
858 cpu_to_be64((u64)sg_dma_address(rmb->sgt[lnk_idx].sgl)); in smc_llc_add_link_cont()
1025 int lnk_idx, rc = 0; in smc_llc_cli_add_link() local
1059 lnk_idx = smc_llc_alloc_alt_link(lgr, lgr_new_t); in smc_llc_cli_add_link()
1060 if (lnk_idx < 0) in smc_llc_cli_add_link()
1062 lnk_new = &lgr->lnk[lnk_idx]; in smc_llc_cli_add_link()
1063 rc = smcr_link_init(lgr, lnk_new, lnk_idx, ini); in smc_llc_cli_add_link()
1393 int lnk_idx, rc = 0; in smc_llc_srv_add_link() local
1427 lnk_idx = smc_llc_alloc_alt_link(lgr, lgr_new_t); in smc_llc_srv_add_link()
1428 if (lnk_idx < 0) { in smc_llc_srv_add_link()
1433 rc = smcr_link_init(lgr, &lgr->lnk[lnk_idx], lnk_idx, ini); in smc_llc_srv_add_link()
1436 link_new = &lgr->lnk[lnk_idx]; in smc_llc_srv_add_link()
1570 int lnk_idx; in smc_llc_process_cli_delete_link() local
1582 for (lnk_idx = 0; lnk_idx < SMC_LINKS_PER_LGR_MAX; lnk_idx++) { in smc_llc_process_cli_delete_link()
1583 if (lgr->lnk[lnk_idx].link_id != del_llc->link_num) in smc_llc_process_cli_delete_link()
1585 lnk_del = &lgr->lnk[lnk_idx]; in smc_llc_process_cli_delete_link()