Lines Matching refs:busr
28 struct resource *cfgres, struct resource *busr, in pci_ecam_create() argument
37 if (busr->start > busr->end) in pci_ecam_create()
50 cfg->busr.start = busr->start; in pci_ecam_create()
51 cfg->busr.end = busr->end; in pci_ecam_create()
52 cfg->busr.flags = IORESOURCE_BUS; in pci_ecam_create()
54 bus_range = resource_size(&cfg->busr); in pci_ecam_create()
58 cfg->busr.end = busr->start + bus_range - 1; in pci_ecam_create()
60 cfgres, &cfg->busr, busr); in pci_ecam_create()
92 dev_info(dev, "ECAM at %pR for %pR\n", &cfg->res, &cfg->busr); in pci_ecam_create()
111 for (i = 0; i < resource_size(&cfg->busr); i++) in pci_ecam_free()
136 if (busn < cfg->busr.start || busn > cfg->busr.end) in pci_ecam_add_bus()
139 busn -= cfg->busr.start; in pci_ecam_add_bus()
154 if (!per_bus_mapping || busn < cfg->busr.start || busn > cfg->busr.end) in pci_ecam_remove_bus()
157 busn -= cfg->busr.start; in pci_ecam_remove_bus()
177 if (busn < cfg->busr.start || busn > cfg->busr.end) in pci_ecam_map_bus()
180 busn -= cfg->busr.start; in pci_ecam_map_bus()