Lines Matching refs:root_hem
1301 struct hns_roce_hem_item *root_hem; in setup_root_hem() local
1307 root_hem = list_first_entry(&head->root, in setup_root_hem()
1309 if (!root_hem) in setup_root_hem()
1319 cpu_base = root_hem->addr + total * BA_BYTE_LEN; in setup_root_hem()
1320 phy_base = root_hem->dma_addr + total * BA_BYTE_LEN; in setup_root_hem()
1351 struct hns_roce_hem_item *root_hem; in hem_list_alloc_root_bt() local
1357 root_hem = hem_list_search_item(&hem_list->root_bt, regions[0].offset); in hem_list_alloc_root_bt()
1358 if (root_hem) in hem_list_alloc_root_bt()
1362 root_hem = alloc_root_hem(hr_dev, unit, &max_ba_num, regions, in hem_list_alloc_root_bt()
1364 if (IS_ERR(root_hem)) in hem_list_alloc_root_bt()
1365 return PTR_ERR(root_hem); in hem_list_alloc_root_bt()
1373 hem_list->root_ba = root_hem->dma_addr; in hem_list_alloc_root_bt()
1374 list_add(&root_hem->list, &head.root); in hem_list_alloc_root_bt()