Lines Matching refs:cfg

19 	struct pci_config_window *cfg;
31 struct pci_config_window *cfg = bridge->bus->sysdata;
34 adev = to_acpi_device(cfg->parent);
37 set_dev_node(bus_dev, pa_to_nid(cfg->res.start));
44 struct pci_config_window *cfg = bus->sysdata;
45 struct acpi_device *adev = to_acpi_device(cfg->parent);
56 pci_ecam_free(info->cfg);
99 struct pci_config_window *cfg;
104 cfg = kzalloc(sizeof(*cfg), GFP_KERNEL);
105 if (!cfg)
108 cfg->parent = dev;
109 cfg->ops = ops;
110 cfg->busr.start = busr->start;
111 cfg->busr.end = busr->end;
112 cfg->busr.flags = IORESOURCE_BUS;
117 cfg->res.start = cfgres->start;
118 cfg->res.end = cfgres->end;
119 cfg->res.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
120 cfg->res.name = "PCI ECAM";
122 conflict = request_resource_conflict(&iomem_resource, &cfg->res);
126 &cfg->res, conflict->name, conflict);
130 cfg->win = pci_remap_cfgspace(cfgres->start, bus_range * bsz);
131 if (!cfg->win)
135 err = ops->init(cfg);
139 dev_info(dev, "ECAM at %pR for %pR\n", &cfg->res, &cfg->busr);
141 return cfg;
147 pci_ecam_free(cfg);
163 struct pci_config_window *cfg;
176 cfg = pci_ecam_create(dev, &cfgres, bus_res, ecam_ops);
182 cfg = arch_pci_ecam_create(dev, &cfgres, bus_res, ecam_ops);
185 if (IS_ERR(cfg)) {
186 dev_err(dev, "%04x:%pR error %ld mapping ECAM\n", seg, bus_res, PTR_ERR(cfg));
190 return cfg;
213 info->cfg = pci_acpi_setup_ecam_mapping(root);
214 if (!info->cfg) {
222 root_ops->pci_ops = (struct pci_ops *)&info->cfg->ops->pci_ops;
226 memcpy(bus->sysdata, info->cfg, sizeof(struct pci_config_window));
232 &info->common, info->cfg);