Searched refs:pbl_mtr (Results 1 – 4 of 4) sorted by relevance
/Linux-v6.6/drivers/infiniband/hw/hns/ |
D | hns_roce_mr.c | 107 err = hns_roce_mtr_create(hr_dev, &mr->pbl_mtr, &buf_attr, in alloc_mr_pbl() 113 mr->npages = mr->pbl_mtr.hem_cfg.buf_pg_count; in alloc_mr_pbl() 120 hns_roce_mtr_destroy(hr_dev, &mr->pbl_mtr); in free_mr_pbl() 202 hns_roce_hem_list_init(&mr->pbl_mtr.hem_list); in hns_roce_get_dma_mr() 409 if (likely(mr->npages < mr->pbl_mtr.hem_cfg.buf_pg_count)) { in hns_roce_set_page() 423 struct hns_roce_mtr *mtr = &mr->pbl_mtr; in hns_roce_map_mr_sg() 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() 448 mr->pbl_mtr.hem_cfg.buf_pg_shift = (u32)ilog2(ibmr->page_size); in hns_roce_map_mr_sg()
|
D | hns_roce_restrack.c | 128 hr_mr->pbl_mtr.hem_cfg.ba_pg_shift)) in hns_roce_fill_res_mr_entry() 132 hr_mr->pbl_mtr.hem_cfg.buf_pg_shift)) in hns_roce_fill_res_mr_entry()
|
D | hns_roce_hw_v2.c | 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() 3179 count = hns_roce_mtr_find(hr_dev, &mr->pbl_mtr, 0, pages, in set_mtpt_pbl() 3202 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.buf_pg_shift)); in set_mtpt_pbl() 3245 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.ba_pg_shift)); in hns_roce_v2_write_mtpt() 3297 if (hns_roce_mtr_find(hr_dev, &mr->pbl_mtr, 0, NULL, 0, &pbl_ba) < 0) { in hns_roce_v2_frmr_write_mtpt() 3315 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.ba_pg_shift)); in hns_roce_v2_frmr_write_mtpt() 3317 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.buf_pg_shift)); in hns_roce_v2_frmr_write_mtpt()
|
D | hns_roce_device.h | 319 struct hns_roce_mtr pbl_mtr; member
|