Lines Matching refs:phb
30 struct pci_controller *phb; in cxl_pci_enable_device_hook() local
34 phb = pci_bus_to_host(dev->bus); in cxl_pci_enable_device_hook()
35 afu = (struct cxl_afu *)phb->private_data; in cxl_pci_enable_device_hook()
82 struct pci_controller *phb = bus ? pci_bus_to_host(bus) : NULL; in pci_bus_to_afu() local
84 return phb ? phb->private_data : NULL; in pci_bus_to_afu()
204 struct pci_controller *phb; in cxl_pci_vphb_add() local
230 phb = pcibios_alloc_controller(vphb_dn); in cxl_pci_vphb_add()
231 if (!phb) in cxl_pci_vphb_add()
235 phb->parent = parent; in cxl_pci_vphb_add()
238 phb->ops = &cxl_pcie_pci_ops; in cxl_pci_vphb_add()
239 phb->cfg_addr = NULL; in cxl_pci_vphb_add()
240 phb->cfg_data = NULL; in cxl_pci_vphb_add()
241 phb->private_data = afu; in cxl_pci_vphb_add()
242 phb->controller_ops = cxl_pci_controller_ops; in cxl_pci_vphb_add()
245 pcibios_scan_phb(phb); in cxl_pci_vphb_add()
246 if (phb->bus == NULL) in cxl_pci_vphb_add()
250 pci_set_host_bridge_release(to_pci_host_bridge(phb->bus->bridge), in cxl_pci_vphb_add()
252 (void *) phb); in cxl_pci_vphb_add()
258 pcibios_claim_one_bus(phb->bus); in cxl_pci_vphb_add()
261 pci_bus_add_devices(phb->bus); in cxl_pci_vphb_add()
263 afu->phb = phb; in cxl_pci_vphb_add()
270 struct pci_controller *phb; in cxl_pci_vphb_remove() local
273 if (!afu || !afu->phb) in cxl_pci_vphb_remove()
276 phb = afu->phb; in cxl_pci_vphb_remove()
277 afu->phb = NULL; in cxl_pci_vphb_remove()
279 pci_remove_root_bus(phb->bus); in cxl_pci_vphb_remove()
288 struct pci_controller *phb; in cxl_pci_is_vphb_device() local
290 phb = pci_bus_to_host(dev->bus); in cxl_pci_is_vphb_device()
292 return (phb->ops == &cxl_pcie_pci_ops); in cxl_pci_is_vphb_device()
297 struct pci_controller *phb; in cxl_pci_to_afu() local
299 phb = pci_bus_to_host(dev->bus); in cxl_pci_to_afu()
301 return (struct cxl_afu *)phb->private_data; in cxl_pci_to_afu()