• Home
  • Raw
  • Download

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()
88 struct pci_controller *phb = bus ? pci_bus_to_host(bus) : NULL; in pci_bus_to_afu() local
90 return phb ? phb->private_data : NULL; in pci_bus_to_afu()
211 struct pci_controller *phb; in cxl_pci_vphb_add() local
237 phb = pcibios_alloc_controller(vphb_dn); in cxl_pci_vphb_add()
238 if (!phb) in cxl_pci_vphb_add()
242 phb->parent = parent; in cxl_pci_vphb_add()
245 phb->ops = &cxl_pcie_pci_ops; in cxl_pci_vphb_add()
246 phb->cfg_addr = NULL; in cxl_pci_vphb_add()
247 phb->cfg_data = NULL; in cxl_pci_vphb_add()
248 phb->private_data = afu; in cxl_pci_vphb_add()
249 phb->controller_ops = cxl_pci_controller_ops; in cxl_pci_vphb_add()
252 pcibios_scan_phb(phb); in cxl_pci_vphb_add()
253 if (phb->bus == NULL) in cxl_pci_vphb_add()
257 pci_set_host_bridge_release(to_pci_host_bridge(phb->bus->bridge), in cxl_pci_vphb_add()
259 (void *) phb); in cxl_pci_vphb_add()
265 pcibios_claim_one_bus(phb->bus); in cxl_pci_vphb_add()
268 pci_bus_add_devices(phb->bus); in cxl_pci_vphb_add()
270 afu->phb = phb; in cxl_pci_vphb_add()
277 struct pci_controller *phb; in cxl_pci_vphb_remove() local
280 if (!afu || !afu->phb) in cxl_pci_vphb_remove()
283 phb = afu->phb; in cxl_pci_vphb_remove()
284 afu->phb = NULL; in cxl_pci_vphb_remove()
286 pci_remove_root_bus(phb->bus); in cxl_pci_vphb_remove()
295 struct pci_controller *phb; in cxl_pci_is_vphb_device() local
297 phb = pci_bus_to_host(dev->bus); in cxl_pci_is_vphb_device()
299 return (phb->ops == &cxl_pcie_pci_ops); in cxl_pci_is_vphb_device()
304 struct pci_controller *phb; in cxl_pci_to_afu() local
306 phb = pci_bus_to_host(dev->bus); in cxl_pci_to_afu()
308 return (struct cxl_afu *)phb->private_data; in cxl_pci_to_afu()