Home
last modified time | relevance | path

Searched refs:hem_list (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/infiniband/hw/hns/
Dhns_roce_hem.h136 void hns_roce_hem_list_init(struct hns_roce_hem_list *hem_list,
141 struct hns_roce_hem_list *hem_list,
145 struct hns_roce_hem_list *hem_list);
147 struct hns_roce_hem_list *hem_list,
Dhns_roce_hem.c1374 struct hns_roce_hem_list *hem_list, int unit, in hem_list_alloc_root_bt() argument
1392 root_hem = hem_list_search_item(&hem_list->root_bt, r->offset); in hem_list_alloc_root_bt()
1406 hem_list->root_ba = root_hem->dma_addr; in hem_list_alloc_root_bt()
1445 &hem_list->mid_bt[i][1], list) { in hem_list_alloc_root_bt()
1454 list_splice(&temp_btm, &hem_list->btm_bt); in hem_list_alloc_root_bt()
1455 list_splice(&temp_root, &hem_list->root_bt); in hem_list_alloc_root_bt()
1457 list_splice(&temp_list[i], &hem_list->mid_bt[i][0]); in hem_list_alloc_root_bt()
1472 struct hns_roce_hem_list *hem_list, in hns_roce_hem_list_request() argument
1488 unit = (1 << hem_list->bt_pg_shift) / BA_BYTE_LEN; in hns_roce_hem_list_request()
1497 hem_list->mid_bt[i], in hns_roce_hem_list_request()
[all …]
Dhns_roce_mr.c1567 hns_roce_hem_list_init(&mtr->hem_list, bt_pg_shift); in hns_roce_mtr_init()
1574 hns_roce_hem_list_release(hr_dev, &mtr->hem_list); in hns_roce_mtr_cleanup()
1592 mtts = hns_roce_hem_list_find_mtt(hr_dev, &mtr->hem_list, in hns_roce_write_mtr()
1620 ret = hns_roce_hem_list_request(hr_dev, &mtr->hem_list, regions, in hns_roce_mtr_attach()
1639 hns_roce_hem_list_release(hr_dev, &mtr->hem_list); in hns_roce_mtr_attach()
1660 addr = hns_roce_hem_list_find_mtt(hr_dev, &mtr->hem_list, in hns_roce_mtr_find()
1674 *base_addr = mtr->hem_list.root_ba; in hns_roce_mtr_find()
Dhns_roce_device.h367 struct hns_roce_hem_list hem_list; member