is_cxl_root
*gp_is_root = is_cxl_root(gp_port);
if (is_cxl_root(gp_port)) {
struct cxl_port *parent = is_cxl_root(port) ? NULL :
else if (is_cxl_root(parent))
if (is_cxl_root(port))
if (is_cxl_root(port) || is_cxl_endpoint(port))
while (!is_cxl_root(root) && is_cxl_port(root->dev.parent))
if (!is_cxl_root(root)) {
if (is_cxl_root(port))
if (is_cxl_root(parent))
while (iter && !is_cxl_root(iter))
if (is_cxl_root(port))
if (is_cxl_root(port))
if (is_cxl_root(port))
!is_cxl_root(parent_port) && parent_port->dev.driver) {
if (!is_cxl_root(port))
if (is_cxl_root(port) || is_cxl_endpoint(port))
return is_cxl_root(to_cxl_port(port->dev.parent));
bool is_cxl_root;
is_cxl_root = parent_port_is_cxl_root(iter);
if (!is_cxl_root) {
} while (!is_cxl_root);
if (is_cxl_root(port)) {
if (is_cxl_root(to_cxl_port(dev)))
!is_cxl_root(to_cxl_port(iter->dev.parent)))
!(dev_is_pci(dport->dport_dev) && parent && is_cxl_root(parent)))
if (is_cxl_root(port))
} while (!is_cxl_root(iter));
if (is_cxl_root(parent_port)) {
while (!is_cxl_root(to_cxl_port(iter->dev.parent)))
while (!is_cxl_root(to_cxl_port(iter->dev.parent)))
for (iter = cxled_to_port(cxled); !is_cxl_root(iter);
for (iter = cxled_to_port(cxled); !is_cxl_root(iter);
if (is_cxl_root(iter))
for (struct cxl_port *iter = cxled_to_port(cxled); !is_cxl_root(iter);
while (!is_cxl_root(to_cxl_port(iter->dev.parent)))
for (iter = cxled_to_port(cxled); !is_cxl_root(iter);
for (iter = parent_port, down = NULL; !is_cxl_root(iter);
else if (is_cxl_root(parent_port))
if (is_cxl_root(port) || is_cxl_endpoint(port))