Lines Matching refs:subdomain

1494 			       struct generic_pm_domain *subdomain)  in genpd_add_subdomain()  argument
1499 if (IS_ERR_OR_NULL(genpd) || IS_ERR_OR_NULL(subdomain) in genpd_add_subdomain()
1500 || genpd == subdomain) in genpd_add_subdomain()
1508 if (!genpd_is_irq_safe(genpd) && genpd_is_irq_safe(subdomain)) { in genpd_add_subdomain()
1510 genpd->name, subdomain->name); in genpd_add_subdomain()
1518 genpd_lock(subdomain); in genpd_add_subdomain()
1521 if (!genpd_status_on(genpd) && genpd_status_on(subdomain)) { in genpd_add_subdomain()
1527 if (itr->slave == subdomain && itr->master == genpd) { in genpd_add_subdomain()
1535 link->slave = subdomain; in genpd_add_subdomain()
1536 list_add_tail(&link->slave_node, &subdomain->slave_links); in genpd_add_subdomain()
1537 if (genpd_status_on(subdomain)) in genpd_add_subdomain()
1542 genpd_unlock(subdomain); in genpd_add_subdomain()
1554 struct generic_pm_domain *subdomain) in pm_genpd_add_subdomain() argument
1559 ret = genpd_add_subdomain(genpd, subdomain); in pm_genpd_add_subdomain()
1572 struct generic_pm_domain *subdomain) in pm_genpd_remove_subdomain() argument
1577 if (IS_ERR_OR_NULL(genpd) || IS_ERR_OR_NULL(subdomain)) in pm_genpd_remove_subdomain()
1580 genpd_lock(subdomain); in pm_genpd_remove_subdomain()
1583 if (!list_empty(&subdomain->master_links) || subdomain->device_count) { in pm_genpd_remove_subdomain()
1585 subdomain->name); in pm_genpd_remove_subdomain()
1591 if (link->slave != subdomain) in pm_genpd_remove_subdomain()
1597 if (genpd_status_on(subdomain)) in pm_genpd_remove_subdomain()
1606 genpd_unlock(subdomain); in pm_genpd_remove_subdomain()
2118 struct generic_pm_domain *parent, *subdomain; in of_genpd_add_subdomain() local
2129 subdomain = genpd_get_from_provider(subdomain_spec); in of_genpd_add_subdomain()
2130 if (IS_ERR(subdomain)) { in of_genpd_add_subdomain()
2131 ret = PTR_ERR(subdomain); in of_genpd_add_subdomain()
2135 ret = genpd_add_subdomain(parent, subdomain); in of_genpd_add_subdomain()