Lines Matching refs:bridge_dev
59 PCIBridgeDev *bridge_dev = PCI_BRIDGE_DEV(dev); in pci_bridge_dev_realize() local
65 if (bridge_dev->flags & (1 << PCI_BRIDGE_DEV_F_SHPC_REQ)) { in pci_bridge_dev_realize()
67 memory_region_init(&bridge_dev->bar, OBJECT(dev), "shpc-bar", in pci_bridge_dev_realize()
69 err = shpc_init(dev, &br->sec_bus, &bridge_dev->bar, 0, errp); in pci_bridge_dev_realize()
75 bridge_dev->msi = ON_OFF_AUTO_OFF; in pci_bridge_dev_realize()
78 err = slotid_cap_init(dev, 0, bridge_dev->chassis_nr, 0, errp); in pci_bridge_dev_realize()
83 if (bridge_dev->msi != ON_OFF_AUTO_OFF) { in pci_bridge_dev_realize()
90 if (err && bridge_dev->msi == ON_OFF_AUTO_ON) { in pci_bridge_dev_realize()
97 assert(!local_err || bridge_dev->msi == ON_OFF_AUTO_AUTO); in pci_bridge_dev_realize()
103 bridge_dev->res_reserve, errp); in pci_bridge_dev_realize()
112 PCI_BASE_ADDRESS_MEM_TYPE_64, &bridge_dev->bar); in pci_bridge_dev_realize()
122 shpc_cleanup(dev, &bridge_dev->bar); in pci_bridge_dev_realize()
130 PCIBridgeDev *bridge_dev = PCI_BRIDGE_DEV(dev); in pci_bridge_dev_exitfn() local
138 shpc_cleanup(dev, &bridge_dev->bar); in pci_bridge_dev_exitfn()