Searched refs:pbl_mtr (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/drivers/infiniband/hw/hns/ |
D | hns_roce_mr.c | 112 err = hns_roce_mtr_create(hr_dev, &mr->pbl_mtr, &buf_attr, in alloc_mr_pbl() 120 mr->npages = mr->pbl_mtr.hem_cfg.buf_pg_count; in alloc_mr_pbl() 128 hns_roce_mtr_destroy(hr_dev, &mr->pbl_mtr); in free_mr_pbl() 210 hns_roce_hem_list_init(&mr->pbl_mtr.hem_list); in hns_roce_get_dma_mr() 429 if (likely(mr->npages < mr->pbl_mtr.hem_cfg.buf_pg_count)) { in hns_roce_set_page() 443 struct hns_roce_mtr *mtr = &mr->pbl_mtr; in hns_roce_map_mr_sg() 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() 473 mr->pbl_mtr.hem_cfg.buf_pg_shift = (u32)ilog2(ibmr->page_size); in hns_roce_map_mr_sg()
|
D | hns_roce_restrack.c | 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()
|
D | hns_roce_hw_v2.c | 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() 3234 ret = hns_roce_mtr_find(hr_dev, &mr->pbl_mtr, 0, pages, in set_mtpt_pbl() 3245 pbl_ba = hns_roce_get_mtr_ba(&mr->pbl_mtr); in set_mtpt_pbl() 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() 3345 dma_addr_t pbl_ba = hns_roce_get_mtr_ba(&mr->pbl_mtr); in hns_roce_v2_frmr_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()
|
D | hns_roce_device.h | 339 struct hns_roce_mtr pbl_mtr; member
|