Home
last modified time | relevance | path

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

/linux/drivers/infiniband/hw/mthca/
A Dmthca_mr.c319 u64 __iomem *mtts; in mthca_tavor_write_mtt_seg() local
326 mtts + i); in mthca_tavor_write_mtt_seg()
333 __be64 *mtts; in mthca_arbel_write_mtt_seg() local
343 mtts = mthca_table_find(dev->mr_table.mtt_table, mtt->first_seg + in mthca_arbel_write_mtt_seg()
346 BUG_ON(!mtts); in mthca_arbel_write_mtt_seg()
352 mtts[i] = cpu_to_be64(buffer_list[i] | MTHCA_MTT_FLAG_PRESENT); in mthca_arbel_write_mtt_seg()
570 int mpts, mtts, err, i; in mthca_init_mr_table() local
604 mpts = mtts = 1 << i; in mthca_init_mr_table()
606 mtts = dev->limits.num_mtt_segs; in mthca_init_mr_table()
631 ioremap(addr, mtts * dev->limits.mtt_seg_size); in mthca_init_mr_table()
[all …]
/linux/drivers/infiniband/hw/hns/
A Dhns_roce_mr.c602 __le64 *mtts; in mtr_map_region() local
611 mtts = hns_roce_hem_list_find_mtt(hr_dev, &mtr->hem_list, in mtr_map_region()
613 if (!mtts) in mtr_map_region()
622 mtts[i] = cpu_to_le64(addr); in mtr_map_region()
833 __le64 *mtts; in hns_roce_mtr_find() local
865 mtts = hns_roce_hem_list_find_mtt(hr_dev, &mtr->hem_list, in hns_roce_mtr_find()
868 if (!mtts || !mtt_count) in hns_roce_mtr_find()
874 mtt_buf[total++] = le64_to_cpu(mtts[mtt_count]); in hns_roce_mtr_find()
A Dhns_roce_cq.c109 u64 mtts[MTT_MIN_COUNT] = { 0 }; in alloc_cqc() local
113 ret = hns_roce_mtr_find(hr_dev, &hr_cq->mtr, 0, mtts, ARRAY_SIZE(mtts), in alloc_cqc()
141 hr_dev->hw->write_cqc(hr_dev, hr_cq, mailbox->buf, mtts, dma_handle); in alloc_cqc()
A Dhns_roce_hw_v2.c3329 u64 *mtts, dma_addr_t dma_handle) in hns_roce_v2_write_cqc() argument
3349 to_hr_hw_page_addr(mtts[0])); in hns_roce_v2_write_cqc()
3351 upper_32_bits(to_hr_hw_page_addr(mtts[0]))); in hns_roce_v2_write_cqc()
3355 to_hr_hw_page_addr(mtts[1])); in hns_roce_v2_write_cqc()
3357 upper_32_bits(to_hr_hw_page_addr(mtts[1]))); in hns_roce_v2_write_cqc()
4183 u64 mtts[MTT_MIN_COUNT] = { 0 }; in config_qp_rq_buf() local
4236 upper_32_bits(to_hr_hw_page_addr(mtts[0]))); in config_qp_rq_buf()
4243 upper_32_bits(to_hr_hw_page_addr(mtts[1]))); in config_qp_rq_buf()
4329 u64 *mtts; in modify_qp_init_to_rtr() local
4344 if (!mtts) { in modify_qp_init_to_rtr()
[all …]
A Dhns_roce_device.h927 struct hns_roce_cq *hr_cq, void *mb_buf, u64 *mtts,
A Dhns_roce_hw_v1.c2069 u64 *mtts, dma_addr_t dma_handle) in hns_roce_v1_write_cqc() argument
2104 cq_context->cur_cqe_ba0_l = cpu_to_le32((u32)(mtts[0])); in hns_roce_v1_write_cqc()
2108 CQ_CONTEXT_CQC_BYTE_20_CUR_CQE_BA0_H_S, (mtts[0]) >> 32); in hns_roce_v1_write_cqc()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den.h100 #define MLX5_ALIGN_MTTS(mtts) (ALIGN(mtts, 8)) argument
101 #define MLX5_ALIGNED_MTTS_OCTW(mtts) ((mtts) / 2) argument
102 #define MLX5_MTT_OCTW(mtts) (MLX5_ALIGNED_MTTS_OCTW(MLX5_ALIGN_MTTS(mtts))) argument
/linux/drivers/net/ethernet/mellanox/mlx4/
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()

Completed in 40 milliseconds