Lines Matching refs:pci_region
259 struct hl_inbound_pci_region *pci_region) in hl_pci_set_inbound_region() argument
269 if (pci_region->mode == PCI_ADDRESS_MATCH_MODE) { in hl_pci_set_inbound_region()
270 bar_phys_base = hdev->pcie_bar_phys[pci_region->bar]; in hl_pci_set_inbound_region()
271 region_base = bar_phys_base + pci_region->offset_in_bar; in hl_pci_set_inbound_region()
272 region_end_address = region_base + pci_region->size - 1; in hl_pci_set_inbound_region()
284 lower_32_bits(pci_region->addr)); in hl_pci_set_inbound_region()
286 upper_32_bits(pci_region->addr)); in hl_pci_set_inbound_region()
292 pci_region->mode); in hl_pci_set_inbound_region()
295 if (pci_region->mode == PCI_BAR_MATCH_MODE) in hl_pci_set_inbound_region()
297 pci_region->bar); in hl_pci_set_inbound_region()
309 pci_region->bar, pci_region->addr); in hl_pci_set_inbound_region()
324 struct hl_outbound_pci_region *pci_region) in hl_pci_set_outbound_region() argument
332 pci_region->addr + pci_region->size - 1; in hl_pci_set_outbound_region()
334 lower_32_bits(pci_region->addr)); in hl_pci_set_outbound_region()
336 upper_32_bits(pci_region->addr)); in hl_pci_set_outbound_region()
370 enum pci_region hl_get_pci_memory_region(struct hl_device *hdev, u64 addr) in hl_get_pci_memory_region()