Searched refs:hem_cfg (Results 1 – 4 of 4) sorted by relevance
113 mr->npages = mr->pbl_mtr.hem_cfg.buf_pg_count; in alloc_mr_pbl()409 if (likely(mr->npages < mr->pbl_mtr.hem_cfg.buf_pg_count)) { in hns_roce_set_page()427 mr->page_list = kvcalloc(mr->pbl_mtr.hem_cfg.buf_pg_count, in hns_roce_map_mr_sg()435 mr->npages, mr->pbl_mtr.hem_cfg.buf_pg_count, ret); in hns_roce_map_mr_sg()439 mtr->hem_cfg.region[0].offset = 0; in hns_roce_map_mr_sg()440 mtr->hem_cfg.region[0].count = mr->npages; in hns_roce_map_mr_sg()441 mtr->hem_cfg.region[0].hopnum = mr->pbl_hop_num; in hns_roce_map_mr_sg()442 mtr->hem_cfg.region_count = 1; in hns_roce_map_mr_sg()448 mr->pbl_mtr.hem_cfg.buf_pg_shift = (u32)ilog2(ibmr->page_size); in hns_roce_map_mr_sg()686 mtr->hem_cfg.is_direct ? in mtr_alloc_bufs()[all …]
185 hr_mr->pbl_mtr.hem_cfg.ba_pg_shift)) in hns_roce_fill_res_mr_entry()189 hr_mr->pbl_mtr.hem_cfg.buf_pg_shift)) in hns_roce_fill_res_mr_entry()
152 pbl_ba = mr->pbl_mtr.hem_cfg.root_ba; in set_frmr_seg()163 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.buf_pg_shift)); in set_frmr_seg()3332 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.buf_pg_shift)); in set_mtpt_pbl()3375 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.ba_pg_shift)); in hns_roce_v2_write_mtpt()3445 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.ba_pg_shift)); in hns_roce_v2_frmr_write_mtpt()3447 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.buf_pg_shift)); in hns_roce_v2_frmr_write_mtpt()3695 to_hr_hw_page_shift(hr_cq->mtr.hem_cfg.ba_pg_shift)); in hns_roce_v2_write_cqc()3697 to_hr_hw_page_shift(hr_cq->mtr.hem_cfg.buf_pg_shift)); in hns_roce_v2_write_cqc()4553 to_hr_hw_page_shift(hr_qp->mtr.hem_cfg.ba_pg_shift)); in config_qp_rq_buf()4557 to_hr_hw_page_shift(hr_qp->mtr.hem_cfg.buf_pg_shift)); in config_qp_rq_buf()[all …]
295 struct hns_roce_hem_cfg hem_cfg; /* config for hardware addressing */ member