Lines Matching refs:phb

45 	struct pci_controller *phb;  in cxl_pci_enable_device_hook()  local
49 phb = pci_bus_to_host(dev->bus); in cxl_pci_enable_device_hook()
50 afu = (struct cxl_afu *)phb->private_data; in cxl_pci_enable_device_hook()
104 struct pci_controller *phb = bus ? pci_bus_to_host(bus) : NULL; in pci_bus_to_afu() local
106 return phb ? phb->private_data : NULL; in pci_bus_to_afu()
228 struct pci_controller *phb; in cxl_pci_vphb_add() local
254 phb = pcibios_alloc_controller(vphb_dn); in cxl_pci_vphb_add()
255 if (!phb) in cxl_pci_vphb_add()
259 phb->parent = parent; in cxl_pci_vphb_add()
262 phb->ops = &cxl_pcie_pci_ops; in cxl_pci_vphb_add()
263 phb->cfg_addr = NULL; in cxl_pci_vphb_add()
264 phb->cfg_data = NULL; in cxl_pci_vphb_add()
265 phb->private_data = afu; in cxl_pci_vphb_add()
266 phb->controller_ops = cxl_pci_controller_ops; in cxl_pci_vphb_add()
269 pcibios_scan_phb(phb); in cxl_pci_vphb_add()
270 if (phb->bus == NULL) in cxl_pci_vphb_add()
274 pci_set_host_bridge_release(to_pci_host_bridge(phb->bus->bridge), in cxl_pci_vphb_add()
276 (void *) phb); in cxl_pci_vphb_add()
282 pcibios_claim_one_bus(phb->bus); in cxl_pci_vphb_add()
285 pci_bus_add_devices(phb->bus); in cxl_pci_vphb_add()
287 afu->phb = phb; in cxl_pci_vphb_add()
294 struct pci_controller *phb; in cxl_pci_vphb_remove() local
297 if (!afu || !afu->phb) in cxl_pci_vphb_remove()
300 phb = afu->phb; in cxl_pci_vphb_remove()
301 afu->phb = NULL; in cxl_pci_vphb_remove()
303 pci_remove_root_bus(phb->bus); in cxl_pci_vphb_remove()
312 struct pci_controller *phb; in cxl_pci_is_vphb_device() local
314 phb = pci_bus_to_host(dev->bus); in cxl_pci_is_vphb_device()
316 return (phb->ops == &cxl_pcie_pci_ops); in cxl_pci_is_vphb_device()
321 struct pci_controller *phb; in cxl_pci_to_afu() local
323 phb = pci_bus_to_host(dev->bus); in cxl_pci_to_afu()
325 return (struct cxl_afu *)phb->private_data; in cxl_pci_to_afu()