Lines Matching refs:cfg
23 struct acpi_mcfg_allocation *cfg; member
31 struct acpi_mcfg_allocation *cfg; in get_virt() local
35 cfg = pci_mmcfg_virt[cfg_num].cfg; in get_virt()
36 if (cfg->pci_segment == seg && in get_virt()
37 (cfg->start_bus_number <= *bus) && in get_virt()
38 (cfg->end_bus_number >= *bus)) { in get_virt()
39 *bus -= cfg->start_bus_number; in get_virt()
116 static void __iomem *mcfg_ioremap(const struct acpi_mcfg_allocation *cfg, in mcfg_ioremap() argument
122 (cfg->start_bus_number << 20); in mcfg_ioremap()
123 size = (cfg->end_bus_number - cfg->start_bus_number + 1) << 20; in mcfg_ioremap()
128 (cfg->address >> PAGE_SHIFT) + in mcfg_ioremap()
129 (cfg->start_bus_number << (20 - PAGE_SHIFT)), in mcfg_ioremap()
138 const typeof(pci_mmcfg_config[0]) *cfg = pci_mmcfg_virt[idx].cfg; in pci_mmcfg_arch_enable()
143 pci_mmcfg_virt[idx].virt = mcfg_ioremap(cfg, idx, PAGE_HYPERVISOR_UC); in pci_mmcfg_arch_enable()
146 cfg->pci_segment); in pci_mmcfg_arch_enable()
150 cfg->pci_segment, cfg->start_bus_number, cfg->end_bus_number); in pci_mmcfg_arch_enable()
152 start_mfn = PFN_DOWN(cfg->address) + PCI_BDF(cfg->start_bus_number, 0, 0); in pci_mmcfg_arch_enable()
153 end_mfn = PFN_DOWN(cfg->address) + PCI_BDF(cfg->end_bus_number, ~0, ~0); in pci_mmcfg_arch_enable()
157 cfg->pci_segment, cfg->start_bus_number, cfg->end_bus_number, in pci_mmcfg_arch_enable()
165 const typeof(pci_mmcfg_config[0]) *cfg = pci_mmcfg_virt[idx].cfg; in pci_mmcfg_arch_disable()
173 mcfg_ioremap(cfg, idx, 0); in pci_mmcfg_arch_disable()
175 cfg->pci_segment, cfg->start_bus_number, cfg->end_bus_number); in pci_mmcfg_arch_disable()
184 const struct acpi_mcfg_allocation *cfg = pci_mmcfg_virt[idx].cfg; in pci_mmcfg_decode() local
187 mfn >= PFN_DOWN(cfg->address) + PCI_BDF(cfg->start_bus_number, in pci_mmcfg_decode()
189 mfn <= PFN_DOWN(cfg->address) + PCI_BDF(cfg->end_bus_number, in pci_mmcfg_decode()
191 *seg = cfg->pci_segment; in pci_mmcfg_decode()
192 *bdf = mfn - PFN_DOWN(cfg->address); in pci_mmcfg_decode()
225 pci_mmcfg_virt[i].cfg = &pci_mmcfg_config[i]; in pci_mmcfg_arch_init()