• Home
  • Raw
  • Download

Lines Matching full:subdomain

268 	 * Also note that link->performance_state (subdomain's performance state  in _genpd_reeval_performance_state()
271 * of the devices/sub-domains of the subdomain) and so can have a in _genpd_reeval_performance_state()
551 * (2) When the domain has a subdomain being powered on. in genpd_power_off()
716 * genpd_power_off_work_fn - Power off PM domain whose subdomain count is 0.
1733 struct generic_pm_domain *subdomain) in genpd_add_subdomain() argument
1738 if (IS_ERR_OR_NULL(genpd) || IS_ERR_OR_NULL(subdomain) in genpd_add_subdomain()
1739 || genpd == subdomain) in genpd_add_subdomain()
1744 * context, ensure that the subdomain can also be in genpd_add_subdomain()
1747 if (!genpd_is_irq_safe(genpd) && genpd_is_irq_safe(subdomain)) { in genpd_add_subdomain()
1748 WARN(1, "Parent %s of subdomain %s must be IRQ safe\n", in genpd_add_subdomain()
1749 genpd->name, subdomain->name); in genpd_add_subdomain()
1757 genpd_lock(subdomain); in genpd_add_subdomain()
1760 if (!genpd_status_on(genpd) && genpd_status_on(subdomain)) { in genpd_add_subdomain()
1766 if (itr->child == subdomain && itr->parent == genpd) { in genpd_add_subdomain()
1774 link->child = subdomain; in genpd_add_subdomain()
1775 list_add_tail(&link->child_node, &subdomain->child_links); in genpd_add_subdomain()
1776 if (genpd_status_on(subdomain)) in genpd_add_subdomain()
1781 genpd_unlock(subdomain); in genpd_add_subdomain()
1788 * pm_genpd_add_subdomain - Add a subdomain to an I/O PM domain.
1789 * @genpd: Leader PM domain to add the subdomain to.
1790 * @subdomain: Subdomain to be added.
1793 struct generic_pm_domain *subdomain) in pm_genpd_add_subdomain() argument
1798 ret = genpd_add_subdomain(genpd, subdomain); in pm_genpd_add_subdomain()
1806 * pm_genpd_remove_subdomain - Remove a subdomain from an I/O PM domain.
1807 * @genpd: Leader PM domain to remove the subdomain from.
1808 * @subdomain: Subdomain to be removed.
1811 struct generic_pm_domain *subdomain) in pm_genpd_remove_subdomain() argument
1816 if (IS_ERR_OR_NULL(genpd) || IS_ERR_OR_NULL(subdomain)) in pm_genpd_remove_subdomain()
1819 genpd_lock(subdomain); in pm_genpd_remove_subdomain()
1822 if (!list_empty(&subdomain->parent_links) || subdomain->device_count) { in pm_genpd_remove_subdomain()
1823 pr_warn("%s: unable to remove subdomain %s\n", in pm_genpd_remove_subdomain()
1824 genpd->name, subdomain->name); in pm_genpd_remove_subdomain()
1830 if (link->child != subdomain) in pm_genpd_remove_subdomain()
1836 if (genpd_status_on(subdomain)) in pm_genpd_remove_subdomain()
1845 genpd_unlock(subdomain); in pm_genpd_remove_subdomain()
2008 * - Removes the PM domain as a subdomain to any parent domains,
2397 * of_genpd_add_subdomain - Add a subdomain to an I/O PM domain.
2399 * @subdomain_spec: OF phandle args to use for subdomain look-up
2401 * Looks-up a parent PM domain and subdomain based upon phandle args
2402 * provided and adds the subdomain to the parent PM domain. Returns a
2408 struct generic_pm_domain *parent, *subdomain; in of_genpd_add_subdomain() local
2419 subdomain = genpd_get_from_provider(subdomain_spec); in of_genpd_add_subdomain()
2420 if (IS_ERR(subdomain)) { in of_genpd_add_subdomain()
2421 ret = PTR_ERR(subdomain); in of_genpd_add_subdomain()
2425 ret = genpd_add_subdomain(parent, subdomain); in of_genpd_add_subdomain()
2435 * of_genpd_remove_subdomain - Remove a subdomain from an I/O PM domain.
2437 * @subdomain_spec: OF phandle args to use for subdomain look-up
2439 * Looks-up a parent PM domain and subdomain based upon phandle args
2440 * provided and removes the subdomain from the parent PM domain. Returns a
2446 struct generic_pm_domain *parent, *subdomain; in of_genpd_remove_subdomain() local
2457 subdomain = genpd_get_from_provider(subdomain_spec); in of_genpd_remove_subdomain()
2458 if (IS_ERR(subdomain)) { in of_genpd_remove_subdomain()
2459 ret = PTR_ERR(subdomain); in of_genpd_remove_subdomain()
2463 ret = pm_genpd_remove_subdomain(parent, subdomain); in of_genpd_remove_subdomain()