Home
last modified time | relevance | path

Searched refs:pci_region (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/accel/habanalabs/common/pci/
H A Dpci.c246 struct hl_inbound_pci_region *pci_region) in hl_pci_set_inbound_region() argument
256 if (pci_region->mode == PCI_ADDRESS_MATCH_MODE) { in hl_pci_set_inbound_region()
257 bar_phys_base = hdev->pcie_bar_phys[pci_region->bar]; in hl_pci_set_inbound_region()
258 region_base = bar_phys_base + pci_region->offset_in_bar; in hl_pci_set_inbound_region()
259 region_end_address = region_base + pci_region->size - 1; in hl_pci_set_inbound_region()
270 rc |= hl_pci_iatu_write(hdev, offset + 0x14, lower_32_bits(pci_region->addr)); in hl_pci_set_inbound_region()
271 rc |= hl_pci_iatu_write(hdev, offset + 0x18, upper_32_bits(pci_region->addr)); in hl_pci_set_inbound_region()
278 ctrl_reg_val |= FIELD_PREP(IATU_REGION_CTRL_MATCH_MODE_MASK, pci_region->mode); in hl_pci_set_inbound_region()
281 if (pci_region->mode == PCI_BAR_MATCH_MODE) in hl_pci_set_inbound_region()
282 ctrl_reg_val |= FIELD_PREP(IATU_REGION_CTRL_BAR_NUM_MASK, pci_region->bar); in hl_pci_set_inbound_region()
[all …]
/linux/drivers/acpi/acpica/
H A Dhwpci.c32 acpi_handle pci_region,
87 acpi_handle root_pci_device, acpi_handle pci_region) in acpi_hw_derive_pci_id() argument
101 acpi_hw_build_pci_list(root_pci_device, pci_region, &list_head); in acpi_hw_derive_pci_id()
137 acpi_handle pci_region, in acpi_hw_build_pci_list() argument
151 current_device = pci_region; in acpi_hw_build_pci_list()
H A Dachware.h121 acpi_handle root_pci_device, acpi_handle pci_region);
125 acpi_handle pci_region) in acpi_hw_derive_pci_id() argument
/linux/drivers/accel/habanalabs/common/
H A Dhabanalabs.h1346 enum pci_region { enum
1764 int (*access_dev_mem)(struct hl_device *hdev, enum pci_region region_type,
3730 enum debugfs_access_type acc_type, enum pci_region region_type, bool set_dram_bar);
3733 int hl_access_dev_mem(struct hl_device *hdev, enum pci_region region_type,
4003 struct hl_inbound_pci_region *pci_region);
4005 struct hl_outbound_pci_region *pci_region);
4006 enum pci_region hl_get_pci_memory_region(struct hl_device *hdev, u64 addr);
H A Dfirmware_if.c2082 enum pci_region region_id; in hl_fw_dynamic_validate_descriptor()
2219 enum pci_region region_id; in hl_fw_dynamic_read_and_validate_descriptor()
H A Ddevice.c74 enum debugfs_access_type acc_type, enum pci_region region_type, bool set_dram_bar) in hl_access_sram_dram_region()
332 int hl_access_dev_mem(struct hl_device *hdev, enum pci_region region_type, in hl_access_dev_mem()
/linux/drivers/accel/habanalabs/goya/
H A Dgoya.c527 struct hl_inbound_pci_region pci_region; in goya_set_ddr_bar_base() local
535 pci_region.mode = PCI_BAR_MATCH_MODE; in goya_set_ddr_bar_base()
536 pci_region.bar = DDR_BAR_ID; in goya_set_ddr_bar_base()
537 pci_region.addr = addr; in goya_set_ddr_bar_base()
538 rc = hl_pci_set_inbound_region(hdev, 1, &pci_region); in goya_set_ddr_bar_base()
/linux/drivers/accel/habanalabs/gaudi/
H A Dgaudi.c729 struct hl_inbound_pci_region pci_region; in gaudi_set_hbm_bar_base() local
740 pci_region.mode = PCI_BAR_MATCH_MODE; in gaudi_set_hbm_bar_base()
741 pci_region.bar = HBM_BAR_ID; in gaudi_set_hbm_bar_base()
742 pci_region.addr = addr; in gaudi_set_hbm_bar_base()
743 rc = hl_pci_set_inbound_region(hdev, 2, &pci_region); in gaudi_set_hbm_bar_base()
/linux/drivers/accel/habanalabs/gaudi2/
H A Dgaudi2.c2631 struct hl_inbound_pci_region pci_region; in gaudi2_set_hbm_bar_base() local
2642 pci_region.mode = PCI_BAR_MATCH_MODE; in gaudi2_set_hbm_bar_base()
2643 pci_region.bar = DRAM_BAR_ID; in gaudi2_set_hbm_bar_base()
2644 pci_region.addr = addr; in gaudi2_set_hbm_bar_base()
2645 rc = hl_pci_set_inbound_region(hdev, 2, &pci_region); in gaudi2_set_hbm_bar_base()