Home
last modified time | relevance | path

Searched refs:hem_cfg (Results 1 – 4 of 4) sorted by relevance

/linux-6.15/drivers/infiniband/hw/hns/
H A Dhns_roce_mr.c120 mr->npages = mr->pbl_mtr.hem_cfg.buf_pg_count; in alloc_mr_pbl()
465 mtr->hem_cfg.region[0].offset = 0; in hns_roce_map_mr_sg()
466 mtr->hem_cfg.region[0].count = mr->npages; in hns_roce_map_mr_sg()
468 mtr->hem_cfg.region_count = 1; in hns_roce_map_mr_sg()
730 region = &mtr->hem_cfg.region[i]; in cal_mtr_pg_cnt()
744 return mtr->hem_cfg.is_direct && mtr->hem_cfg.region_count > 1; in need_split_huge_page()
757 mtr->hem_cfg.buf_pg_shift; in mtr_map_bufs()
809 if (mtr->hem_cfg.is_direct) { in hns_roce_mtr_map()
810 mtr->hem_cfg.root_ba = pages[0]; in hns_roce_mtr_map()
816 r = &mtr->hem_cfg.region[i]; in hns_roce_mtr_map()
[all …]
H A Dhns_roce_restrack.c145 hr_mr->pbl_mtr.hem_cfg.ba_pg_shift)) in hns_roce_fill_res_mr_entry()
149 hr_mr->pbl_mtr.hem_cfg.buf_pg_shift)) in hns_roce_fill_res_mr_entry()
H A Dhns_roce_hw_v2.c153 pbl_ba = mr->pbl_mtr.hem_cfg.root_ba; in set_frmr_seg()
164 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.buf_pg_shift)); in set_frmr_seg()
3286 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.buf_pg_shift)); in set_mtpt_pbl()
3329 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.ba_pg_shift)); in hns_roce_v2_write_mtpt()
3392 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.ba_pg_shift)); in hns_roce_v2_frmr_write_mtpt()
3644 to_hr_hw_page_shift(hr_cq->mtr.hem_cfg.ba_pg_shift)); in hns_roce_v2_write_cqc()
3646 to_hr_hw_page_shift(hr_cq->mtr.hem_cfg.buf_pg_shift)); in hns_roce_v2_write_cqc()
4443 to_hr_hw_page_shift(hr_qp->mtr.hem_cfg.ba_pg_shift)); in config_qp_rq_buf()
4447 to_hr_hw_page_shift(hr_qp->mtr.hem_cfg.buf_pg_shift)); in config_qp_rq_buf()
6573 to_hr_hw_page_shift(eq->mtr.hem_cfg.ba_pg_shift)); in config_eqc()
[all …]
H A Dhns_roce_device.h316 struct hns_roce_hem_cfg hem_cfg; /* config for hardware addressing */ member
1177 return mtr->hem_cfg.root_ba; in hns_roce_get_mtr_ba()