Lines Matching refs:link_idx
695 static int smc_ib_map_mr_sg(struct smc_buf_desc *buf_slot, u8 link_idx) in smc_ib_map_mr_sg() argument
701 sg_num = ib_map_mr_sg(buf_slot->mr_rx[link_idx], in smc_ib_map_mr_sg()
702 buf_slot->sgt[link_idx].sgl, in smc_ib_map_mr_sg()
703 buf_slot->sgt[link_idx].orig_nents, in smc_ib_map_mr_sg()
711 struct smc_buf_desc *buf_slot, u8 link_idx) in smc_ib_get_memory_region() argument
713 if (buf_slot->mr_rx[link_idx]) in smc_ib_get_memory_region()
716 buf_slot->mr_rx[link_idx] = in smc_ib_get_memory_region()
718 if (IS_ERR(buf_slot->mr_rx[link_idx])) { in smc_ib_get_memory_region()
721 rc = PTR_ERR(buf_slot->mr_rx[link_idx]); in smc_ib_get_memory_region()
722 buf_slot->mr_rx[link_idx] = NULL; in smc_ib_get_memory_region()
726 if (smc_ib_map_mr_sg(buf_slot, link_idx) != 1) in smc_ib_get_memory_region()
741 for_each_sg(buf_slot->sgt[lnk->link_idx].sgl, sg, in smc_ib_sync_sg_for_cpu()
742 buf_slot->sgt[lnk->link_idx].nents, i) { in smc_ib_sync_sg_for_cpu()
761 for_each_sg(buf_slot->sgt[lnk->link_idx].sgl, sg, in smc_ib_sync_sg_for_device()
762 buf_slot->sgt[lnk->link_idx].nents, i) { in smc_ib_sync_sg_for_device()
780 buf_slot->sgt[lnk->link_idx].sgl, in smc_ib_buf_map_sg()
781 buf_slot->sgt[lnk->link_idx].orig_nents, in smc_ib_buf_map_sg()
793 if (!buf_slot->sgt[lnk->link_idx].sgl->dma_address) in smc_ib_buf_unmap_sg()
797 buf_slot->sgt[lnk->link_idx].sgl, in smc_ib_buf_unmap_sg()
798 buf_slot->sgt[lnk->link_idx].orig_nents, in smc_ib_buf_unmap_sg()
800 buf_slot->sgt[lnk->link_idx].sgl->dma_address = 0; in smc_ib_buf_unmap_sg()