Lines Matching refs:cfgres
95 struct resource *cfgres, struct resource *busr, const struct pci_ecam_ops *ops) in arch_pci_ecam_create() argument
113 bus_range = resource_size(cfgres) >> ops->bus_shift; in arch_pci_ecam_create()
117 cfg->res.start = cfgres->start; in arch_pci_ecam_create()
118 cfg->res.end = cfgres->end; in arch_pci_ecam_create()
130 cfg->win = pci_remap_cfgspace(cfgres->start, bus_range * bsz); in arch_pci_ecam_create()
161 struct resource cfgres; in pci_acpi_setup_ecam_mapping() local
166 ret = pci_mcfg_lookup(root, &cfgres, &ecam_ops); in pci_acpi_setup_ecam_mapping()
176 cfg = pci_ecam_create(dev, &cfgres, bus_res, ecam_ops); in pci_acpi_setup_ecam_mapping()
178 cfgres.start = root->mcfg_addr + (bus_res->start << bus_shift); in pci_acpi_setup_ecam_mapping()
179 cfgres.end = cfgres.start + (resource_size(bus_res) << bus_shift) - 1; in pci_acpi_setup_ecam_mapping()
180 cfgres.end |= BIT(28) + (((PCI_CFG_SPACE_EXP_SIZE - 1) & 0xf00) << 16); in pci_acpi_setup_ecam_mapping()
181 cfgres.flags = IORESOURCE_MEM; in pci_acpi_setup_ecam_mapping()
182 cfg = arch_pci_ecam_create(dev, &cfgres, bus_res, ecam_ops); in pci_acpi_setup_ecam_mapping()