Lines Matching refs:pcie_ecam
25 struct tegra194_pcie_ecam *pcie_ecam; in tegra194_acpi_init() local
27 pcie_ecam = devm_kzalloc(dev, sizeof(*pcie_ecam), GFP_KERNEL); in tegra194_acpi_init()
28 if (!pcie_ecam) in tegra194_acpi_init()
31 pcie_ecam->config_base = cfg->win; in tegra194_acpi_init()
32 pcie_ecam->iatu_base = cfg->win + SZ_256K; in tegra194_acpi_init()
33 pcie_ecam->dbi_base = cfg->win + SZ_512K; in tegra194_acpi_init()
34 cfg->priv = pcie_ecam; in tegra194_acpi_init()
39 static void atu_reg_write(struct tegra194_pcie_ecam *pcie_ecam, int index, in atu_reg_write() argument
45 writel(val, pcie_ecam->iatu_base + offset + reg); in atu_reg_write()
48 static void program_outbound_atu(struct tegra194_pcie_ecam *pcie_ecam, in program_outbound_atu() argument
52 atu_reg_write(pcie_ecam, index, lower_32_bits(cpu_addr), in program_outbound_atu()
54 atu_reg_write(pcie_ecam, index, upper_32_bits(cpu_addr), in program_outbound_atu()
56 atu_reg_write(pcie_ecam, index, lower_32_bits(pci_addr), in program_outbound_atu()
58 atu_reg_write(pcie_ecam, index, lower_32_bits(cpu_addr + size - 1), in program_outbound_atu()
60 atu_reg_write(pcie_ecam, index, upper_32_bits(pci_addr), in program_outbound_atu()
62 atu_reg_write(pcie_ecam, index, type, PCIE_ATU_REGION_CTRL1); in program_outbound_atu()
63 atu_reg_write(pcie_ecam, index, PCIE_ATU_ENABLE, PCIE_ATU_REGION_CTRL2); in program_outbound_atu()
70 struct tegra194_pcie_ecam *pcie_ecam = cfg->priv; in tegra194_map_bus() local
79 return pcie_ecam->dbi_base + where; in tegra194_map_bus()
96 program_outbound_atu(pcie_ecam, 0, type, cfg->res.start, busdev, in tegra194_map_bus()
99 return pcie_ecam->config_base + where; in tegra194_map_bus()