Lines Matching refs:root_hem
1318 struct hns_roce_hem_item *root_hem; in setup_root_hem() local
1324 root_hem = list_first_entry(&head->root, in setup_root_hem()
1326 if (!root_hem) in setup_root_hem()
1336 cpu_base = root_hem->addr + total * BA_BYTE_LEN; in setup_root_hem()
1337 phy_base = root_hem->dma_addr + total * BA_BYTE_LEN; in setup_root_hem()
1368 struct hns_roce_hem_item *root_hem; in hem_list_alloc_root_bt() local
1374 root_hem = hem_list_search_item(&hem_list->root_bt, regions[0].offset); in hem_list_alloc_root_bt()
1375 if (root_hem) in hem_list_alloc_root_bt()
1379 root_hem = alloc_root_hem(hr_dev, unit, &max_ba_num, regions, in hem_list_alloc_root_bt()
1381 if (IS_ERR(root_hem)) in hem_list_alloc_root_bt()
1382 return PTR_ERR(root_hem); in hem_list_alloc_root_bt()
1390 hem_list->root_ba = root_hem->dma_addr; in hem_list_alloc_root_bt()
1391 list_add(&root_hem->list, &head.root); in hem_list_alloc_root_bt()