Home
last modified time | relevance | path

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

/openbmc/linux/drivers/infiniband/hw/mthca/
H A Dmthca_mr.c317 u64 __iomem *mtts; in mthca_tavor_write_mtt_seg() local
320 mtts = dev->mr_table.tavor_fmr.mtt_base + mtt->first_seg * dev->limits.mtt_seg_size + in mthca_tavor_write_mtt_seg()
324 mtts + i); in mthca_tavor_write_mtt_seg()
331 __be64 *mtts; in mthca_arbel_write_mtt_seg() local
341 mtts = mthca_table_find(dev->mr_table.mtt_table, mtt->first_seg + in mthca_arbel_write_mtt_seg()
344 BUG_ON(!mtts); in mthca_arbel_write_mtt_seg()
350 mtts[i] = cpu_to_be64(buffer_list[i] | MTHCA_MTT_FLAG_PRESENT); in mthca_arbel_write_mtt_seg()
567 int mpts, mtts, err, i; in mthca_init_mr_table() local
601 mpts = mtts = 1 << i; in mthca_init_mr_table()
603 mtts = dev->limits.num_mtt_segs; in mthca_init_mr_table()
[all …]
/openbmc/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_cq.c105 u64 *mtts, dma_addr_t dma_handle) in hns_roce_create_cqc() argument
117 hr_dev->hw->write_cqc(hr_dev, hr_cq, mailbox->buf, mtts, dma_handle); in hns_roce_create_cqc()
135 u64 mtts[MTT_MIN_COUNT] = {}; in alloc_cqc() local
138 ret = hns_roce_mtr_find(hr_dev, &hr_cq->mtr, 0, mtts, ARRAY_SIZE(mtts)); in alloc_cqc()
158 ret = hns_roce_create_cqc(hr_dev, hr_cq, mtts, in alloc_cqc()
H A Dhns_roce_mr.c584 __le64 *mtts; in mtr_map_region() local
593 mtts = hns_roce_hem_list_find_mtt(hr_dev, &mtr->hem_list, in mtr_map_region()
595 if (!mtts) in mtr_map_region()
601 mtts[i] = cpu_to_le64(addr); in mtr_map_region()
837 __le64 *mtts; in hns_roce_mtr_find()
842 mtts = hns_roce_hem_list_find_mtt(hr_dev, &mtr->hem_list, in hns_roce_mtr_find()
845 if (!mtts || !mtt_count) in hns_roce_mtr_find()
851 mtt_buf[total++] = le64_to_cpu(mtts[mtt_count]); in hns_roce_mtr_find()
812 __le64 *mtts; hns_roce_mtr_find() local
H A Dhns_roce_hw_v2.c3540 u64 *mtts, dma_addr_t dma_handle) in hns_roce_v2_write_cqc()
3560 to_hr_hw_page_addr(mtts[0])); in hns_roce_v2_write_cqc()
3562 upper_32_bits(to_hr_hw_page_addr(mtts[0]))); in hns_roce_v2_write_cqc()
3566 to_hr_hw_page_addr(mtts[1])); in hns_roce_v2_write_cqc()
3568 upper_32_bits(to_hr_hw_page_addr(mtts[1]))); in hns_roce_v2_write_cqc()
4329 u64 mtts[MTT_MIN_COUNT] = { 0 }; in config_qp_rq_buf()
4333 /* Search qp buf's mtts */ in config_qp_rq_buf()
4334 ret = hns_roce_mtr_find(hr_dev, &hr_qp->mtr, hr_qp->rq.offset, mtts, in config_qp_rq_buf() local
4381 context->rq_cur_blk_addr = cpu_to_le32(to_hr_hw_page_addr(mtts[0])); in config_qp_rq_buf()
4385 upper_32_bits(to_hr_hw_page_addr(mtts[ in config_qp_rq_buf()
3542 hns_roce_v2_write_cqc(struct hns_roce_dev * hr_dev,struct hns_roce_cq * hr_cq,void * mb_buf,u64 * mtts,dma_addr_t dma_handle) hns_roce_v2_write_cqc() argument
4485 u64 *mtts; modify_qp_init_to_rtr() local
[all...]
H A Dhns_roce_device.h898 struct hns_roce_cq *hr_cq, void *mb_buf, u64 *mtts,
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dmr.c696 __be64 *mtts; in mlx4_write_mtt_chunk() local
700 mtts = mlx4_table_find(&priv->mr_table.mtt_table, mtt->offset + in mlx4_write_mtt_chunk()
703 if (!mtts) in mlx4_write_mtt_chunk()
710 mtts[i] = cpu_to_be64(page_list[i] | MLX4_MTT_FLAG_PRESENT); in mlx4_write_mtt_chunk()