Home
last modified time | relevance | path

Searched refs:mtts (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/infiniband/hw/mthca/
H A Dmthca_mr.c316 u64 __iomem *mtts; in mthca_tavor_write_mtt_seg() local
319 mtts = dev->mr_table.tavor_fmr.mtt_base + mtt->first_seg * dev->limits.mtt_seg_size + in mthca_tavor_write_mtt_seg()
323 mtts + i); in mthca_tavor_write_mtt_seg()
330 __be64 *mtts; in mthca_arbel_write_mtt_seg() local
340 mtts = mthca_table_find(dev->mr_table.mtt_table, mtt->first_seg + in mthca_arbel_write_mtt_seg()
343 BUG_ON(!mtts); in mthca_arbel_write_mtt_seg()
349 mtts[i] = cpu_to_be64(buffer_list[i] | MTHCA_MTT_FLAG_PRESENT); in mthca_arbel_write_mtt_seg()
566 int mpts, mtts, err, i; in mthca_init_mr_table() local
600 mpts = mtts = 1 << i; in mthca_init_mr_table()
602 mtts = dev->limits.num_mtt_segs; in mthca_init_mr_table()
[all …]
/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_mr.c498 __le64 *mtts; in mtr_map_region() local
507 mtts = hns_roce_hem_list_find_mtt(hr_dev, &mtr->hem_list, in mtr_map_region()
509 if (!mtts) in mtr_map_region()
515 mtts[i] = cpu_to_le64(addr); in mtr_map_region()
778 __le64 *mtts; in hns_roce_get_mhop_mtt() local
783 mtts = hns_roce_hem_list_find_mtt(hr_dev, &mtr->hem_list, in hns_roce_get_mhop_mtt()
786 if (!mtts || !mtt_count) in hns_roce_get_mhop_mtt()
792 mtt_buf[total++] = le64_to_cpu(mtts[mtt_count]); in hns_roce_get_mhop_mtt()
H A Dhns_roce_hw_v2.c3859 u64 *mtts, dma_addr_t dma_handle) in hns_roce_v2_write_cqc() argument
3879 to_hr_hw_page_addr(mtts[0])); in hns_roce_v2_write_cqc()
3881 upper_32_bits(to_hr_hw_page_addr(mtts[0]))); in hns_roce_v2_write_cqc()
3885 to_hr_hw_page_addr(mtts[1])); in hns_roce_v2_write_cqc()
3887 upper_32_bits(to_hr_hw_page_addr(mtts[1]))); in hns_roce_v2_write_cqc()
4664 u64 mtts[MTT_MIN_COUNT] = { 0 }; in config_qp_rq_buf() local
4669 ret = hns_roce_mtr_find(hr_dev, &hr_qp->mtr, hr_qp->rq.offset, mtts, in config_qp_rq_buf()
4716 context->rq_cur_blk_addr = cpu_to_le32(to_hr_hw_page_addr(mtts[0])); in config_qp_rq_buf()
4720 upper_32_bits(to_hr_hw_page_addr(mtts[0]))); in config_qp_rq_buf()
4725 cpu_to_le32(to_hr_hw_page_addr(mtts[1])); in config_qp_rq_buf()
[all …]