Lines Matching refs:r
96 struct resource *r; in pcibios_allocate_bus_resources() local
105 r = &dev->resource[idx]; in pcibios_allocate_bus_resources()
106 if (!r->flags) in pcibios_allocate_bus_resources()
108 if (!r->start || in pcibios_allocate_bus_resources()
118 r->start = r->end = 0; in pcibios_allocate_bus_resources()
119 r->flags = 0; in pcibios_allocate_bus_resources()
132 struct resource *r; in pcibios_allocate_resources() local
137 r = &dev->resource[idx]; in pcibios_allocate_resources()
138 if (r->parent) /* Already allocated */ in pcibios_allocate_resources()
140 if (!r->start) /* Address not assigned */ in pcibios_allocate_resources()
142 if (r->flags & IORESOURCE_IO) in pcibios_allocate_resources()
149 pci_name(dev), r->start, r->end, r->flags, in pcibios_allocate_resources()
157 r->end -= r->start; in pcibios_allocate_resources()
158 r->start = 0; in pcibios_allocate_resources()
163 r = &dev->resource[PCI_ROM_RESOURCE]; in pcibios_allocate_resources()
164 if (r->flags & IORESOURCE_ROM_ENABLE) { in pcibios_allocate_resources()
170 r->flags &= ~IORESOURCE_ROM_ENABLE; in pcibios_allocate_resources()
184 struct resource *r; in pcibios_assign_resources() local
191 r = &dev->resource[PCI_ROM_RESOURCE]; in pcibios_assign_resources()
192 if (!r->flags || !r->start) in pcibios_assign_resources()
195 r->end -= r->start; in pcibios_assign_resources()
196 r->start = 0; in pcibios_assign_resources()