Lines Matching refs:cpu_base
1260 static int alloc_fake_root_bt(struct hns_roce_dev *hr_dev, void *cpu_base, in alloc_fake_root_bt() argument
1272 hem_list_assign_bt(hr_dev, hem, cpu_base, phy_base); in alloc_fake_root_bt()
1279 static int setup_middle_bt(struct hns_roce_dev *hr_dev, void *cpu_base, in setup_middle_bt() argument
1295 hem_list_link_bt(hr_dev, cpu_base + offset, hem->dma_addr); in setup_middle_bt()
1309 void *cpu_base; in setup_root_hem() local
1326 cpu_base = root_hem->addr + total * BA_BYTE_LEN; in setup_root_hem()
1333 ret = alloc_fake_root_bt(hr_dev, cpu_base, phy_base, r, in setup_root_hem()
1336 ret = setup_middle_bt(hr_dev, cpu_base, unit, r, in setup_root_hem()
1476 void *cpu_base = NULL; in hns_roce_hem_list_find_mtt() local
1483 cpu_base = hem->addr + nr * BA_BYTE_LEN; in hns_roce_hem_list_find_mtt()
1496 return cpu_base; in hns_roce_hem_list_find_mtt()