Lines Matching refs:root_hem
1262 struct hns_roce_hem_item *root_hem; in setup_root_hem() local
1268 root_hem = list_first_entry(&head->root, in setup_root_hem()
1270 if (!root_hem) in setup_root_hem()
1280 cpu_base = root_hem->addr + total * BA_BYTE_LEN; in setup_root_hem()
1281 phy_base = root_hem->dma_addr + total * BA_BYTE_LEN; in setup_root_hem()
1312 struct hns_roce_hem_item *root_hem; in hem_list_alloc_root_bt() local
1318 root_hem = hem_list_search_item(&hem_list->root_bt, regions[0].offset); in hem_list_alloc_root_bt()
1319 if (root_hem) in hem_list_alloc_root_bt()
1323 root_hem = alloc_root_hem(hr_dev, unit, &max_ba_num, regions, in hem_list_alloc_root_bt()
1325 if (IS_ERR(root_hem)) in hem_list_alloc_root_bt()
1326 return PTR_ERR(root_hem); in hem_list_alloc_root_bt()
1334 hem_list->root_ba = root_hem->dma_addr; in hem_list_alloc_root_bt()
1335 list_add(&root_hem->list, &head.root); in hem_list_alloc_root_bt()