Lines Matching refs:host
433 struct pci_host_bridge *host; in bridge_probe() local
454 host = devm_pci_alloc_host_bridge(dev, sizeof(*bc)); in bridge_probe()
455 if (!host) { in bridge_probe()
460 bc = pci_host_bridge_priv(host); in bridge_probe()
469 pci_add_resource_offset(&host->windows, &bd->mem, bd->mem_offset); in bridge_probe()
470 pci_add_resource_offset(&host->windows, &bd->io, bd->io_offset); in bridge_probe()
471 pci_add_resource(&host->windows, &bc->busn); in bridge_probe()
473 err = devm_request_pci_bus_resources(dev, &host->windows); in bridge_probe()
520 host->dev.parent = dev; in bridge_probe()
521 host->sysdata = bc; in bridge_probe()
522 host->busnr = 0; in bridge_probe()
523 host->ops = &bridge_pci_ops; in bridge_probe()
524 host->map_irq = bridge_map_irq; in bridge_probe()
525 host->swizzle_irq = pci_common_swizzle; in bridge_probe()
527 err = pci_scan_root_bus_bridge(host); in bridge_probe()
531 pci_bus_claim_resources(host->bus); in bridge_probe()
532 pci_bus_add_devices(host->bus); in bridge_probe()
534 platform_set_drvdata(pdev, host->bus); in bridge_probe()
539 pci_free_resource_list(&host->windows); in bridge_probe()