Lines Matching refs:idx
190 int idx; in pcibios_allocate_bus_resources() local
197 for (idx = PCI_BRIDGE_RESOURCES; idx < PCI_NUM_RESOURCES; idx++) { in pcibios_allocate_bus_resources()
198 r = &dev->resource[idx]; in pcibios_allocate_bus_resources()
203 printk(KERN_ERR "PCI: Cannot allocate resource region %d of bridge %s\n", idx, dev->slot_name); in pcibios_allocate_bus_resources()
213 int idx, disabled; in pcibios_allocate_resources() local
219 for(idx = 0; idx < 6; idx++) { in pcibios_allocate_resources()
220 r = &dev->resource[idx]; in pcibios_allocate_resources()
234 printk(KERN_ERR "PCI: Cannot allocate resource region %d of device %s\n", idx, dev->slot_name); in pcibios_allocate_resources()
258 int idx; in pcibios_assign_resources() local
268 for(idx=0; idx<6; idx++) { in pcibios_assign_resources()
269 r = &dev->resource[idx]; in pcibios_assign_resources()
274 if ((class == PCI_CLASS_STORAGE_IDE && idx < 4) || in pcibios_assign_resources()
284 pci_assign_resource(dev, idx); in pcibios_assign_resources()
320 int idx; in pcibios_enable_resources() local
325 for(idx=0; idx<6; idx++) { in pcibios_enable_resources()
326 r = &dev->resource[idx]; in pcibios_enable_resources()
327 if (!(mask & (1<<idx))) in pcibios_enable_resources()