Lines Matching refs:cfg
31 struct pci_config_window *cfg = bus->sysdata; in thunder_pem_bridge_read() local
32 struct thunder_pem_pci *pem_pci = (struct thunder_pem_pci *)cfg->priv; in thunder_pem_bridge_read()
132 struct pci_config_window *cfg = bus->sysdata; in thunder_pem_config_read() local
134 if (bus->number < cfg->busr.start || in thunder_pem_config_read()
135 bus->number > cfg->busr.end) in thunder_pem_config_read()
142 if (bus->number == cfg->busr.start) in thunder_pem_config_read()
208 struct pci_config_window *cfg = bus->sysdata; in thunder_pem_bridge_write() local
209 struct thunder_pem_pci *pem_pci = (struct thunder_pem_pci *)cfg->priv; in thunder_pem_bridge_write()
281 struct pci_config_window *cfg = bus->sysdata; in thunder_pem_config_write() local
283 if (bus->number < cfg->busr.start || in thunder_pem_config_write()
284 bus->number > cfg->busr.end) in thunder_pem_config_write()
290 if (bus->number == cfg->busr.start) in thunder_pem_config_write()
297 static int thunder_pem_init(struct device *dev, struct pci_config_window *cfg, in thunder_pem_init() argument
322 cfg->priv = pem_pci; in thunder_pem_init()
371 static int thunder_pem_acpi_init(struct pci_config_window *cfg) in thunder_pem_acpi_init() argument
373 struct device *dev = cfg->parent; in thunder_pem_acpi_init()
400 thunder_pem_reserve_range(dev, root->segment, &cfg->res); in thunder_pem_acpi_init()
403 return thunder_pem_init(dev, cfg, res_pem); in thunder_pem_acpi_init()
420 static int thunder_pem_platform_init(struct pci_config_window *cfg) in thunder_pem_platform_init() argument
422 struct device *dev = cfg->parent; in thunder_pem_platform_init()
440 return thunder_pem_init(dev, cfg, res_pem); in thunder_pem_platform_init()