Lines Matching refs:hw
454 static void pcibios_init_hw(struct device *parent, struct hw_pci *hw, in pcibios_init_hw() argument
461 for (nr = busnr = 0; nr < hw->nr_controllers; nr++) { in pcibios_init_hw()
471 sys->swizzle = hw->swizzle; in pcibios_init_hw()
472 sys->map_irq = hw->map_irq; in pcibios_init_hw()
475 if (hw->private_data) in pcibios_init_hw()
476 sys->private_data = hw->private_data[nr]; in pcibios_init_hw()
478 ret = hw->setup(nr, sys); in pcibios_init_hw()
482 ret = pcibios_init_resource(nr, sys, hw->io_optional); in pcibios_init_hw()
491 if (hw->scan) in pcibios_init_hw()
492 ret = hw->scan(nr, bridge); in pcibios_init_hw()
499 bridge->ops = hw->ops; in pcibios_init_hw()
500 bridge->msi = hw->msi_ctrl; in pcibios_init_hw()
502 hw->align_resource; in pcibios_init_hw()
525 void pci_common_init_dev(struct device *parent, struct hw_pci *hw) in pci_common_init_dev() argument
531 if (hw->preinit) in pci_common_init_dev()
532 hw->preinit(); in pci_common_init_dev()
533 pcibios_init_hw(parent, hw, &head); in pci_common_init_dev()
534 if (hw->postinit) in pci_common_init_dev()
535 hw->postinit(); in pci_common_init_dev()