Lines Matching refs:r
87 struct resource *r; in pcibios_allocate_bus_resources() local
94 r = &dev->resource[idx]; in pcibios_allocate_bus_resources()
95 if (!r->start) in pcibios_allocate_bus_resources()
109 struct resource *r; in pcibios_allocate_resources() local
114 r = &dev->resource[idx]; in pcibios_allocate_resources()
115 if (r->parent) /* Already allocated */ in pcibios_allocate_resources()
117 if (!r->start) /* Address not assigned at all */ in pcibios_allocate_resources()
119 if (r->flags & IORESOURCE_IO) in pcibios_allocate_resources()
125 r->start, r->end, r->flags, disabled, pass); in pcibios_allocate_resources()
128 r->end -= r->start; in pcibios_allocate_resources()
129 r->start = 0; in pcibios_allocate_resources()
134 r = &dev->resource[PCI_ROM_RESOURCE]; in pcibios_allocate_resources()
135 if (r->flags & IORESOURCE_ROM_ENABLE) { in pcibios_allocate_resources()
139 r->flags &= ~IORESOURCE_ROM_ENABLE; in pcibios_allocate_resources()
151 struct resource *r; in pcibios_assign_resources() local
161 r = &dev->resource[idx]; in pcibios_assign_resources()
167 (class == PCI_CLASS_DISPLAY_VGA && (r->flags & IORESOURCE_IO))) in pcibios_assign_resources()
175 if (!r->start && r->end) in pcibios_assign_resources()
180 r = &dev->resource[PCI_ROM_RESOURCE]; in pcibios_assign_resources()
181 r->end -= r->start; in pcibios_assign_resources()
182 r->start = 0; in pcibios_assign_resources()
183 if (r->end) in pcibios_assign_resources()