Searched refs:hem_list (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/infiniband/hw/hns/ |
H A D | hns_roce_hem.h | 107 void hns_roce_hem_list_init(struct hns_roce_hem_list *hem_list); 111 struct hns_roce_hem_list *hem_list, 115 struct hns_roce_hem_list *hem_list); 117 struct hns_roce_hem_list *hem_list,
|
H A D | hns_roce_hem.c | 1273 setup_root_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem_list *hem_list, in setup_root_hem() argument 1307 &hem_list->mid_bt[i][1]); in setup_root_hem() 1315 list_splice(&head->leaf, &hem_list->btm_bt); in setup_root_hem() 1316 list_splice(&head->root, &hem_list->root_bt); in setup_root_hem() 1318 list_splice(&head->branch[i], &hem_list->mid_bt[i][0]); in setup_root_hem() 1324 struct hns_roce_hem_list *hem_list, int unit, in hem_list_alloc_root_bt() argument 1334 root_hem = hem_list_search_item(&hem_list->root_bt, regions[0].offset); in hem_list_alloc_root_bt() 1350 hem_list->root_ba = root_hem->dma_addr; in hem_list_alloc_root_bt() 1352 ret = setup_root_hem(hr_dev, hem_list, unit, max_ba_num, &head, regions, in hem_list_alloc_root_bt() 1366 struct hns_roce_hem_list *hem_list, in hns_roce_hem_list_request() argument [all …]
|
H A D | hns_roce_mr.c | 210 hns_roce_hem_list_init(&mr->pbl_mtr.hem_list); in hns_roce_get_dma_mr() 613 mtts = hns_roce_hem_list_find_mtt(hr_dev, &mtr->hem_list, in mtr_map_region() 889 mtts = hns_roce_hem_list_find_mtt(hr_dev, &mtr->hem_list, in hns_roce_get_mhop_mtt() 1106 hns_roce_hem_list_init(&mtr->hem_list); in mtr_alloc_mtt() 1112 ret = hns_roce_hem_list_request(hr_dev, &mtr->hem_list, in mtr_alloc_mtt() 1117 cfg->root_ba = mtr->hem_list.root_ba; in mtr_alloc_mtt() 1128 hns_roce_hem_list_release(hr_dev, &mtr->hem_list); in mtr_free_mtt() 1205 hns_roce_hem_list_release(hr_dev, &mtr->hem_list); in hns_roce_mtr_destroy()
|