Lines Matching refs:uport

558 		lock_dev = port->uport;  in unregister_port()
560 lock_dev = parent->uport; in unregister_port()
580 rc = sysfs_create_link(&port->dev.kobj, &port->uport->kobj, "uport"); in devm_cxl_link_uport()
588 static struct cxl_port *cxl_port_alloc(struct device *uport, in cxl_port_alloc() argument
604 port->uport = uport; in cxl_port_alloc()
632 port->host_bridge = iter->uport; in cxl_port_alloc()
633 dev_dbg(uport, "host-bridge: %s\n", dev_name(port->host_bridge)); in cxl_port_alloc()
635 dev->parent = uport; in cxl_port_alloc()
665 struct cxl_port *devm_cxl_add_port(struct device *host, struct device *uport, in devm_cxl_add_port() argument
673 port = cxl_port_alloc(uport, component_reg_phys, parent_dport); in devm_cxl_add_port()
678 if (is_cxl_memdev(uport)) in devm_cxl_add_port()
713 if (dev_is_pci(port->uport)) { in cxl_port_to_pci_bus()
714 struct pci_dev *pdev = to_pci_dev(port->uport); in cxl_port_to_pci_bus()
719 return xa_load(&cxl_root_buses, (unsigned long)port->uport); in cxl_port_to_pci_bus()
723 static void unregister_pci_bus(void *uport) in unregister_pci_bus() argument
725 xa_erase(&cxl_root_buses, (unsigned long)uport); in unregister_pci_bus()
728 int devm_cxl_register_pci_bus(struct device *host, struct device *uport, in devm_cxl_register_pci_bus() argument
733 if (dev_is_pci(uport)) in devm_cxl_register_pci_bus()
736 rc = xa_insert(&cxl_root_buses, (unsigned long)uport, bus, GFP_KERNEL); in devm_cxl_register_pci_bus()
739 return devm_add_action_or_reset(host, unregister_pci_bus, uport); in devm_cxl_register_pci_bus()
894 host = port->uport; in devm_cxl_add_dport()
1301 dev_name(&port->dev), dev_name(port->uport)); in add_port_attach_ep()
1356 dev_name(&port->dev), dev_name(port->uport)); in devm_cxl_enumerate_ports()