Lines Matching full:subdomain

341 	 * Also note that link->performance_state (subdomain's performance state  in _genpd_reeval_performance_state()
344 * of the devices/sub-domains of the subdomain) and so can have a in _genpd_reeval_performance_state()
844 * (2) When the domain has a subdomain being powered on. in genpd_power_off()
1017 * genpd_power_off_work_fn - Power off PM domain whose subdomain count is 0.
2006 struct generic_pm_domain *subdomain) in genpd_add_subdomain() argument
2011 if (IS_ERR_OR_NULL(genpd) || IS_ERR_OR_NULL(subdomain) in genpd_add_subdomain()
2012 || genpd == subdomain) in genpd_add_subdomain()
2017 * context, ensure that the subdomain can also be in genpd_add_subdomain()
2020 if (!genpd_is_irq_safe(genpd) && genpd_is_irq_safe(subdomain)) { in genpd_add_subdomain()
2021 WARN(1, "Parent %s of subdomain %s must be IRQ safe\n", in genpd_add_subdomain()
2022 dev_name(&genpd->dev), subdomain->name); in genpd_add_subdomain()
2030 genpd_lock(subdomain); in genpd_add_subdomain()
2033 if (!genpd_status_on(genpd) && genpd_status_on(subdomain)) { in genpd_add_subdomain()
2039 if (itr->child == subdomain && itr->parent == genpd) { in genpd_add_subdomain()
2047 link->child = subdomain; in genpd_add_subdomain()
2048 list_add_tail(&link->child_node, &subdomain->child_links); in genpd_add_subdomain()
2049 if (genpd_status_on(subdomain)) in genpd_add_subdomain()
2054 genpd_unlock(subdomain); in genpd_add_subdomain()
2061 * pm_genpd_add_subdomain - Add a subdomain to an I/O PM domain.
2062 * @genpd: Leader PM domain to add the subdomain to.
2063 * @subdomain: Subdomain to be added.
2066 struct generic_pm_domain *subdomain) in pm_genpd_add_subdomain() argument
2071 ret = genpd_add_subdomain(genpd, subdomain); in pm_genpd_add_subdomain()
2079 * pm_genpd_remove_subdomain - Remove a subdomain from an I/O PM domain.
2080 * @genpd: Leader PM domain to remove the subdomain from.
2081 * @subdomain: Subdomain to be removed.
2084 struct generic_pm_domain *subdomain) in pm_genpd_remove_subdomain() argument
2089 if (IS_ERR_OR_NULL(genpd) || IS_ERR_OR_NULL(subdomain)) in pm_genpd_remove_subdomain()
2092 genpd_lock(subdomain); in pm_genpd_remove_subdomain()
2095 if (!list_empty(&subdomain->parent_links) || subdomain->device_count) { in pm_genpd_remove_subdomain()
2096 pr_warn("%s: unable to remove subdomain %s\n", in pm_genpd_remove_subdomain()
2097 dev_name(&genpd->dev), subdomain->name); in pm_genpd_remove_subdomain()
2103 if (link->child != subdomain) in pm_genpd_remove_subdomain()
2109 if (genpd_status_on(subdomain)) in pm_genpd_remove_subdomain()
2118 genpd_unlock(subdomain); in pm_genpd_remove_subdomain()
2351 * - Removes the PM domain as a subdomain to any parent domains,
2736 * of_genpd_add_subdomain - Add a subdomain to an I/O PM domain.
2738 * @subdomain_spec: OF phandle args to use for subdomain look-up
2740 * Looks-up a parent PM domain and subdomain based upon phandle args
2741 * provided and adds the subdomain to the parent PM domain. Returns a
2747 struct generic_pm_domain *parent, *subdomain; in of_genpd_add_subdomain() local
2758 subdomain = genpd_get_from_provider(subdomain_spec); in of_genpd_add_subdomain()
2759 if (IS_ERR(subdomain)) { in of_genpd_add_subdomain()
2760 ret = PTR_ERR(subdomain); in of_genpd_add_subdomain()
2764 ret = genpd_add_subdomain(parent, subdomain); in of_genpd_add_subdomain()
2774 * of_genpd_remove_subdomain - Remove a subdomain from an I/O PM domain.
2776 * @subdomain_spec: OF phandle args to use for subdomain look-up
2778 * Looks-up a parent PM domain and subdomain based upon phandle args
2779 * provided and removes the subdomain from the parent PM domain. Returns a
2785 struct generic_pm_domain *parent, *subdomain; in of_genpd_remove_subdomain() local
2796 subdomain = genpd_get_from_provider(subdomain_spec); in of_genpd_remove_subdomain()
2797 if (IS_ERR(subdomain)) { in of_genpd_remove_subdomain()
2798 ret = PTR_ERR(subdomain); in of_genpd_remove_subdomain()
2802 ret = pm_genpd_remove_subdomain(parent, subdomain); in of_genpd_remove_subdomain()