Lines Matching refs:pci_region
207 struct hl_inbound_pci_region *pci_region) in hl_pci_set_inbound_region() argument
217 if (pci_region->mode == PCI_ADDRESS_MATCH_MODE) { in hl_pci_set_inbound_region()
218 bar_phys_base = hdev->pcie_bar_phys[pci_region->bar]; in hl_pci_set_inbound_region()
219 region_base = bar_phys_base + pci_region->offset_in_bar; in hl_pci_set_inbound_region()
220 region_end_address = region_base + pci_region->size - 1; in hl_pci_set_inbound_region()
232 lower_32_bits(pci_region->addr)); in hl_pci_set_inbound_region()
234 upper_32_bits(pci_region->addr)); in hl_pci_set_inbound_region()
240 pci_region->mode); in hl_pci_set_inbound_region()
243 if (pci_region->mode == PCI_BAR_MATCH_MODE) in hl_pci_set_inbound_region()
245 pci_region->bar); in hl_pci_set_inbound_region()
257 pci_region->bar, pci_region->addr); in hl_pci_set_inbound_region()
272 struct hl_outbound_pci_region *pci_region) in hl_pci_set_outbound_region() argument
280 pci_region->addr + pci_region->size - 1; in hl_pci_set_outbound_region()
282 lower_32_bits(pci_region->addr)); in hl_pci_set_outbound_region()
284 upper_32_bits(pci_region->addr)); in hl_pci_set_outbound_region()