Lines Matching refs:region
35 * @region: the PCI region.
36 * @new_bar_region_base: the new BAR region base address.
46 static u64 hl_set_dram_bar(struct hl_device *hdev, u64 addr, struct pci_mem_region *region,
70 struct pci_mem_region *region = &hdev->pci_mem_region[region_type];
71 u64 old_base = 0, rc, bar_region_base = region->region_base;
75 old_base = hl_set_dram_bar(hdev, addr, region, &bar_region_base);
80 acc_addr = hdev->pcie_bar[region->bar_id] + region->offset_in_bar +
105 rc = hl_set_dram_bar(hdev, old_base, region, NULL);
221 * hl_access_cfg_region - access the config region
268 * @region_type: the type of the region the address belongs to