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[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[link_idx]) in smc_ib_get_memory_region()
716 buf_slot->mr[link_idx] = in smc_ib_get_memory_region()
718 if (IS_ERR(buf_slot->mr[link_idx])) { in smc_ib_get_memory_region()
721 rc = PTR_ERR(buf_slot->mr[link_idx]); in smc_ib_get_memory_region()
722 buf_slot->mr[link_idx] = NULL; in smc_ib_get_memory_region()
726 if (smc_ib_map_mr_sg(buf_slot, link_idx) != in smc_ib_get_memory_region()
727 buf_slot->sgt[link_idx].orig_nents) in smc_ib_get_memory_region()
741 for_each_sg(buf_slot->sgt[lnk->link_idx].sgl, sg, in smc_ib_is_sg_need_sync()
742 buf_slot->sgt[lnk->link_idx].nents, i) { in smc_ib_is_sg_need_sync()
764 if (!(buf_slot->is_dma_need_sync & (1U << lnk->link_idx))) in smc_ib_sync_sg_for_cpu()
768 for_each_sg(buf_slot->sgt[lnk->link_idx].sgl, sg, in smc_ib_sync_sg_for_cpu()
769 buf_slot->sgt[lnk->link_idx].nents, i) { in smc_ib_sync_sg_for_cpu()
787 if (!(buf_slot->is_dma_need_sync & (1U << lnk->link_idx))) in smc_ib_sync_sg_for_device()
791 for_each_sg(buf_slot->sgt[lnk->link_idx].sgl, sg, in smc_ib_sync_sg_for_device()
792 buf_slot->sgt[lnk->link_idx].nents, i) { in smc_ib_sync_sg_for_device()
810 buf_slot->sgt[lnk->link_idx].sgl, in smc_ib_buf_map_sg()
811 buf_slot->sgt[lnk->link_idx].orig_nents, in smc_ib_buf_map_sg()
823 if (!buf_slot->sgt[lnk->link_idx].sgl->dma_address) in smc_ib_buf_unmap_sg()
827 buf_slot->sgt[lnk->link_idx].sgl, in smc_ib_buf_unmap_sg()
828 buf_slot->sgt[lnk->link_idx].orig_nents, in smc_ib_buf_unmap_sg()
830 buf_slot->sgt[lnk->link_idx].sgl->dma_address = 0; in smc_ib_buf_unmap_sg()