Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/misc/habanalabs/common/pci/
Dpci.c238 struct hl_inbound_pci_region *pci_region) in hl_pci_set_inbound_region() argument
248 if (pci_region->mode == PCI_ADDRESS_MATCH_MODE) { in hl_pci_set_inbound_region()
249 bar_phys_base = hdev->pcie_bar_phys[pci_region->bar]; in hl_pci_set_inbound_region()
250 region_base = bar_phys_base + pci_region->offset_in_bar; in hl_pci_set_inbound_region()
251 region_end_address = region_base + pci_region->size - 1; in hl_pci_set_inbound_region()
262 rc |= hl_pci_iatu_write(hdev, offset + 0x14, lower_32_bits(pci_region->addr)); in hl_pci_set_inbound_region()
263 rc |= hl_pci_iatu_write(hdev, offset + 0x18, upper_32_bits(pci_region->addr)); in hl_pci_set_inbound_region()
270 ctrl_reg_val |= FIELD_PREP(IATU_REGION_CTRL_MATCH_MODE_MASK, pci_region->mode); in hl_pci_set_inbound_region()
273 if (pci_region->mode == PCI_BAR_MATCH_MODE) in hl_pci_set_inbound_region()
274 ctrl_reg_val |= FIELD_PREP(IATU_REGION_CTRL_BAR_NUM_MASK, pci_region->bar); in hl_pci_set_inbound_region()
[all …]
/linux-6.1.9/drivers/acpi/acpica/
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()
Dachware.h123 acpi_handle root_pci_device, acpi_handle pci_region);
127 acpi_handle pci_region) in acpi_hw_derive_pci_id() argument
/linux-6.1.9/drivers/misc/habanalabs/common/
Dhabanalabs.h1246 enum pci_region { enum
1667 int (*access_dev_mem)(struct hl_device *hdev, enum pci_region region_type,
3493 int hl_access_dev_mem(struct hl_device *hdev, enum pci_region region_type,
3734 struct hl_inbound_pci_region *pci_region);
3736 struct hl_outbound_pci_region *pci_region);
3737 enum pci_region hl_get_pci_memory_region(struct hl_device *hdev, u64 addr);
Ddevice.c64 enum debugfs_access_type acc_type, enum pci_region region_type) in hl_access_sram_dram_region()
273 int hl_access_dev_mem(struct hl_device *hdev, enum pci_region region_type, in hl_access_dev_mem()
Dfirmware_if.c1896 enum pci_region region_id; in hl_fw_dynamic_validate_descriptor()
1993 enum pci_region region_id; in hl_fw_dynamic_read_and_validate_descriptor()
/linux-6.1.9/drivers/misc/habanalabs/goya/
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-6.1.9/drivers/misc/habanalabs/gaudi/
Dgaudi.c726 struct hl_inbound_pci_region pci_region; in gaudi_set_hbm_bar_base() local
737 pci_region.mode = PCI_BAR_MATCH_MODE; in gaudi_set_hbm_bar_base()
738 pci_region.bar = HBM_BAR_ID; in gaudi_set_hbm_bar_base()
739 pci_region.addr = addr; in gaudi_set_hbm_bar_base()
740 rc = hl_pci_set_inbound_region(hdev, 2, &pci_region); in gaudi_set_hbm_bar_base()
/linux-6.1.9/drivers/misc/habanalabs/gaudi2/
Dgaudi2.c2092 struct hl_inbound_pci_region pci_region; in gaudi2_set_hbm_bar_base() local
2103 pci_region.mode = PCI_BAR_MATCH_MODE; in gaudi2_set_hbm_bar_base()
2104 pci_region.bar = DRAM_BAR_ID; in gaudi2_set_hbm_bar_base()
2105 pci_region.addr = addr; in gaudi2_set_hbm_bar_base()
2106 rc = hl_pci_set_inbound_region(hdev, 2, &pci_region); in gaudi2_set_hbm_bar_base()