Searched refs:hem_cfg (Results 1 – 4 of 4) sorted by relevance
120 mr->npages = mr->pbl_mtr.hem_cfg.buf_pg_count; in alloc_mr_pbl()429 if (likely(mr->npages < mr->pbl_mtr.hem_cfg.buf_pg_count)) { in hns_roce_set_page()452 mr->page_list = kvcalloc(mr->pbl_mtr.hem_cfg.buf_pg_count, in hns_roce_map_mr_sg()460 mr->npages, mr->pbl_mtr.hem_cfg.buf_pg_count, sg_num); in hns_roce_map_mr_sg()464 mtr->hem_cfg.region[0].offset = 0; in hns_roce_map_mr_sg()465 mtr->hem_cfg.region[0].count = mr->npages; in hns_roce_map_mr_sg()466 mtr->hem_cfg.region[0].hopnum = mr->pbl_hop_num; in hns_roce_map_mr_sg()467 mtr->hem_cfg.region_count = 1; in hns_roce_map_mr_sg()473 mr->pbl_mtr.hem_cfg.buf_pg_shift = (u32)ilog2(ibmr->page_size); in hns_roce_map_mr_sg()728 for (i = 0; i < mtr->hem_cfg.region_count; i++) { in cal_mtr_pg_cnt()[all …]
145 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()
153 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()3258 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.buf_pg_shift)); in set_mtpt_pbl()3301 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.ba_pg_shift)); in hns_roce_v2_write_mtpt()3364 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.ba_pg_shift)); in hns_roce_v2_frmr_write_mtpt()3366 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.buf_pg_shift)); in hns_roce_v2_frmr_write_mtpt()3616 to_hr_hw_page_shift(hr_cq->mtr.hem_cfg.ba_pg_shift)); in hns_roce_v2_write_cqc()3618 to_hr_hw_page_shift(hr_cq->mtr.hem_cfg.buf_pg_shift)); in hns_roce_v2_write_cqc()4415 to_hr_hw_page_shift(hr_qp->mtr.hem_cfg.ba_pg_shift)); in config_qp_rq_buf()4419 to_hr_hw_page_shift(hr_qp->mtr.hem_cfg.buf_pg_shift)); in config_qp_rq_buf()[all …]
316 struct hns_roce_hem_cfg hem_cfg; /* config for hardware addressing */ member1182 return mtr->hem_cfg.root_ba; in hns_roce_get_mtr_ba()