Lines Matching refs:r
211 struct resource *r; in pcibios_allocate_bridge_resources() local
214 r = &dev->resource[idx]; in pcibios_allocate_bridge_resources()
215 if (!r->flags) in pcibios_allocate_bridge_resources()
217 if (r->parent) /* Already allocated */ in pcibios_allocate_bridge_resources()
219 if (!r->start || pci_claim_bridge_resource(dev, idx) < 0) { in pcibios_allocate_bridge_resources()
226 r->start = r->end = 0; in pcibios_allocate_bridge_resources()
227 r->flags = 0; in pcibios_allocate_bridge_resources()
252 struct resource *r; in pcibios_allocate_dev_resources() local
264 r = &dev->resource[idx]; in pcibios_allocate_dev_resources()
265 if (r->parent) /* Already allocated */ in pcibios_allocate_dev_resources()
267 if (!r->start) /* Address not assigned at all */ in pcibios_allocate_dev_resources()
269 if (r->flags & IORESOURCE_IO) in pcibios_allocate_dev_resources()
276 idx, r, disabled, pass); in pcibios_allocate_dev_resources()
278 if (r->flags & IORESOURCE_PCI_FIXED) { in pcibios_allocate_dev_resources()
280 idx, r); in pcibios_allocate_dev_resources()
284 idx, r->start); in pcibios_allocate_dev_resources()
285 r->end -= r->start; in pcibios_allocate_dev_resources()
286 r->start = 0; in pcibios_allocate_dev_resources()
292 r = &dev->resource[PCI_ROM_RESOURCE]; in pcibios_allocate_dev_resources()
293 if (r->flags & IORESOURCE_ROM_ENABLE) { in pcibios_allocate_dev_resources()
297 dev_dbg(&dev->dev, "disabling ROM %pR\n", r); in pcibios_allocate_dev_resources()
298 r->flags &= ~IORESOURCE_ROM_ENABLE; in pcibios_allocate_dev_resources()
322 struct resource *r; in pcibios_allocate_dev_rom_resource() local
329 r = &dev->resource[PCI_ROM_RESOURCE]; in pcibios_allocate_dev_rom_resource()
330 if (!r->flags || !r->start) in pcibios_allocate_dev_rom_resource()
332 if (r->parent) /* Already allocated */ in pcibios_allocate_dev_rom_resource()
336 r->end -= r->start; in pcibios_allocate_dev_rom_resource()
337 r->start = 0; in pcibios_allocate_dev_rom_resource()