Searched refs:root_hem (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-6.6/drivers/infiniband/hw/hns/ |
H A D | hns_roce_hem.c | 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() [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/ |
H A D | hns_roce_hem.c | 1223 struct roce_hem_item *hem, *temp_hem, *root_hem; in hem_list_alloc_root_bt() local 1237 root_hem = hem_list_search_item(&hem_list->root_bt, r->offset); in hem_list_alloc_root_bt() 1238 if (root_hem) in hem_list_alloc_root_bt() 1249 root_hem = hem_list_alloc_item(hr_dev, offset, r->offset + r->count - 1, in hem_list_alloc_root_bt() 1251 if (!root_hem) in hem_list_alloc_root_bt() 1253 list_add(&root_hem->list, &temp_root); in hem_list_alloc_root_bt() 1255 hem_list->root_ba = root_hem->dma_addr; in hem_list_alloc_root_bt() 1268 cpu_base = root_hem->addr + total * BA_BYTE_LEN; in hem_list_alloc_root_bt() 1269 phy_base = root_hem->dma_addr + total * BA_BYTE_LEN; in hem_list_alloc_root_bt()
|
Completed in 4 milliseconds