Searched refs:pci_region (Results 1 – 9 of 9) sorted by relevance
/Linux-v6.1/drivers/misc/habanalabs/common/pci/ |
D | pci.c | 238 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-v6.1/drivers/acpi/acpica/ |
D | hwpci.c | 32 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()
|
D | achware.h | 123 acpi_handle root_pci_device, acpi_handle pci_region); 127 acpi_handle pci_region) in acpi_hw_derive_pci_id() argument
|
/Linux-v6.1/drivers/misc/habanalabs/common/ |
D | habanalabs.h | 1246 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);
|
D | device.c | 64 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()
|
D | firmware_if.c | 1896 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-v6.1/drivers/misc/habanalabs/goya/ |
D | goya.c | 527 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-v6.1/drivers/misc/habanalabs/gaudi/ |
D | gaudi.c | 726 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-v6.1/drivers/misc/habanalabs/gaudi2/ |
D | gaudi2.c | 2092 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()
|