Lines Matching refs:afu
46 struct cxl_afu *afu; in cxl_pci_enable_device_hook() local
50 afu = (struct cxl_afu *)phb->private_data; in cxl_pci_enable_device_hook()
52 if (!cxl_adapter_link_ok(afu->adapter)) { in cxl_pci_enable_device_hook()
69 return (cxl_afu_check_and_enable(afu) == 0); in cxl_pci_enable_device_hook()
117 struct cxl_afu *afu; in cxl_pcie_config_info() local
123 afu = (struct cxl_afu *)phb->private_data; in cxl_pcie_config_info()
125 if (cxl_pcie_cfg_record(bus->number, devfn) > afu->crs_num) in cxl_pcie_config_info()
151 struct cxl_afu *afu; in cxl_config_link_ok() local
163 afu = (struct cxl_afu *)phb->private_data; in cxl_config_link_ok()
164 return cxl_adapter_link_ok(afu->adapter); in cxl_config_link_ok()
232 int cxl_pci_vphb_add(struct cxl_afu *afu) in cxl_pci_vphb_add() argument
237 phys_dev = to_pci_dev(afu->adapter->dev.parent); in cxl_pci_vphb_add()
251 phb->cfg_addr = afu->afu_desc_mmio + afu->crs_offset; in cxl_pci_vphb_add()
252 phb->cfg_data = (void *)(u64)afu->crs_len; in cxl_pci_vphb_add()
253 phb->private_data = afu; in cxl_pci_vphb_add()
270 afu->phb = phb; in cxl_pci_vphb_add()
275 void cxl_pci_vphb_reconfigure(struct cxl_afu *afu) in cxl_pci_vphb_reconfigure() argument
281 afu->phb->cfg_addr = afu->afu_desc_mmio + afu->crs_offset; in cxl_pci_vphb_reconfigure()
284 void cxl_pci_vphb_remove(struct cxl_afu *afu) in cxl_pci_vphb_remove() argument
289 if (!afu || !afu->phb) in cxl_pci_vphb_remove()
292 phb = afu->phb; in cxl_pci_vphb_remove()
293 afu->phb = NULL; in cxl_pci_vphb_remove()