Searched refs:pbl_mtr (Results 1 – 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/ |
D | hns_roce_mr.c | 132 err = hns_roce_mtr_create(hr_dev, &mr->pbl_mtr, &buf_attr, in alloc_mr_pbl() 138 mr->npages = mr->pbl_mtr.hem_cfg.buf_pg_count; in alloc_mr_pbl() 145 hns_roce_mtr_destroy(hr_dev, &mr->pbl_mtr); in free_mr_pbl() 242 hns_roce_hem_list_init(&mr->pbl_mtr.hem_list); in hns_roce_get_dma_mr() 472 if (likely(mr->npages < mr->pbl_mtr.hem_cfg.buf_pg_count)) { in hns_roce_set_page() 486 struct hns_roce_mtr *mtr = &mr->pbl_mtr; in hns_roce_map_mr_sg() 490 mr->page_list = kvcalloc(mr->pbl_mtr.hem_cfg.buf_pg_count, in hns_roce_map_mr_sg() 498 mr->npages, mr->pbl_mtr.hem_cfg.buf_pg_count, ret); in hns_roce_map_mr_sg() 511 mr->pbl_mtr.hem_cfg.buf_pg_shift = ilog2(ibmr->page_size); in hns_roce_map_mr_sg()
|
D | hns_roce_hw_v2.c | 115 pbl_ba = mr->pbl_mtr.hem_cfg.root_ba; in set_frmr_seg() 128 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.buf_pg_shift)); in set_frmr_seg() 2743 count = hns_roce_mtr_find(hr_dev, &mr->pbl_mtr, 0, pages, in set_mtpt_pbl() 2772 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.buf_pg_shift)); in set_mtpt_pbl() 2795 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.ba_pg_shift)); in hns_roce_v2_write_mtpt() 2889 if (hns_roce_mtr_find(hr_dev, &mr->pbl_mtr, 0, NULL, 0, &pbl_ba) < 0) { in hns_roce_v2_frmr_write_mtpt() 2901 to_hr_hw_page_shift(mr->pbl_mtr.hem_cfg.ba_pg_shift)); in hns_roce_v2_frmr_write_mtpt() 2924 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 | 389 struct hns_roce_mtr pbl_mtr; member
|
D | hns_roce_hw_v1.c | 1116 hns_roce_mtr_destroy(hr_dev, &mr->pbl_mtr); in hns_roce_v1_dereg_mr() 1816 count = hns_roce_mtr_find(hr_dev, &mr->pbl_mtr, 0, pages, in hns_roce_v1_write_mtpt()
|