Lines Matching +full:keep +full:- +full:power +full:- +full:in +full:- +full:suspend

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * pm_domain.h - Definitions and headers related to device power domains.
25 * PD_FLAG_NO_DEV_LINK: As the default behaviour creates a device-link
29 * PD_FLAG_DEV_LINK_ON: Add the DL_FLAG_RPM_ACTIVE to power-on the
31 * device-links.
35 * index in the array of the pd_names. If pd_names
60 * These flags may be set in the struct generic_pm_domain's flags field by a
68 * ->power_on|off(), doesn't sleep. Hence, these
70 * enables genpd to power on/off the PM domain,
76 * GENPD_FLAG_ALWAYS_ON: Instructs genpd to always keep the PM domain
79 * GENPD_FLAG_ACTIVE_WAKEUP: Instructs genpd to keep the PM domain powered
80 * on, in case any of its attached devices is used
81 * in the wakeup path to serve system wakeups.
87 * deploy idle power management support for CPUs
90 * last-man-standing algorithm, for the CPUs in the
93 * GENPD_FLAG_RPM_ALWAYS_ON: Instructs genpd to always keep the PM domain
94 * powered on except for system suspend.
102 * described in DT, but are given directly by FW.
106 * get their genpd-names directly from FW.
167 struct list_head gpd_list_node; /* Node in the global PM domains list */
177 atomic_t sd_count; /* Number of subdomains with power "on" */
181 unsigned int suspended_count; /* System suspend device counter */
182 unsigned int prepared_count; /* Suspend counter of prepared devices */
188 struct raw_notifier_head power_notifiers; /* Power on/off notifiers */
234 /* Sub-domain's per-master domain performance state */
275 return to_gpd_data(dev->power.subsys_data->domain_data); in dev_gpd_data()
306 return ERR_PTR(-ENOSYS); in dev_gpd_data()
311 return -ENOSYS; in pm_genpd_add_device()
315 return -ENOSYS; in pm_genpd_remove_device()
320 return -ENOSYS; in pm_genpd_add_subdomain()
325 return -ENOSYS; in pm_genpd_remove_subdomain()
330 return -ENOSYS; in pm_genpd_init()
334 return -EOPNOTSUPP; in pm_genpd_remove()
339 return ERR_PTR(-EOPNOTSUPP); in dev_to_genpd_dev()
345 return -EOPNOTSUPP; in dev_pm_genpd_set_performance_state()
351 return -EOPNOTSUPP; in dev_pm_genpd_add_notifier()
356 return -EOPNOTSUPP; in dev_pm_genpd_remove_notifier()
371 return -EOPNOTSUPP; in dev_pm_genpd_set_hwmode()
427 return -EOPNOTSUPP; in of_genpd_add_provider_simple()
433 return -EOPNOTSUPP; in of_genpd_add_provider_onecell()
441 return -ENODEV; in of_genpd_add_device()
447 return -ENODEV; in of_genpd_add_subdomain()
453 return -ENODEV; in of_genpd_remove_subdomain()
459 return -ENODEV; in of_genpd_parse_idle_states()
482 return ERR_PTR(-EOPNOTSUPP); in of_genpd_remove_last()