Lines Matching +full:domain +full:- +full:idle +full:- +full:states
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * pm_domain.h - Definitions and headers related to device power domains.
33 * ->power_on|off(), doesn't sleep. Hence, these
35 * enables genpd to power on/off the PM domain,
41 * GENPD_FLAG_ALWAYS_ON: Instructs genpd to always keep the PM domain
44 * GENPD_FLAG_ACTIVE_WAKEUP: Instructs genpd to keep the PM domain powered
52 * deploy idle power management support for CPUs
55 * last-man-standing algorithm, for the CPUs in the
56 * PM domain.
58 * GENPD_FLAG_RPM_ALWAYS_ON: Instructs genpd to always keep the PM domain
63 * optimal idle state.
74 GENPD_STATE_ON = 0, /* PM domain is on */
75 GENPD_STATE_OFF, /* PM domain is off */
86 bool (*power_down_ok)(struct dev_pm_domain *domain);
121 struct dev_pm_domain domain; /* PM domain operations */ member
123 struct list_head parent_links; /* Links with PM domain as a parent */
124 struct list_head child_links; /* Links with PM domain as a child */
129 struct fwnode_handle *provider; /* Identity of the domain provider */
133 enum gpd_status status; /* Current state of the domain */
140 int (*power_off)(struct generic_pm_domain *domain);
141 int (*power_on)(struct generic_pm_domain *domain);
149 int (*attach_dev)(struct generic_pm_domain *domain,
151 void (*detach_dev)(struct generic_pm_domain *domain,
154 struct genpd_power_state *states; member
155 void (*free_states)(struct genpd_power_state *states,
157 unsigned int state_count; /* number of states */
174 return container_of(pd, struct generic_pm_domain, domain); in pd_to_genpd()
183 /* Sub-domain's per-master domain performance state */
222 return to_gpd_data(dev->power.subsys_data->domain_data); in dev_gpd_data()
250 return ERR_PTR(-ENOSYS); in dev_gpd_data()
255 return -ENOSYS; in pm_genpd_add_device()
259 return -ENOSYS; in pm_genpd_remove_device()
264 return -ENOSYS; in pm_genpd_add_subdomain()
269 return -ENOSYS; in pm_genpd_remove_subdomain()
274 return -ENOSYS; in pm_genpd_init()
278 return -EOPNOTSUPP; in pm_genpd_remove()
284 return -EOPNOTSUPP; in dev_pm_genpd_set_performance_state()
290 return -EOPNOTSUPP; in dev_pm_genpd_add_notifier()
295 return -EOPNOTSUPP; in dev_pm_genpd_remove_notifier()
320 /* OF PM domain providers */
345 struct genpd_power_state **states, int *n);
358 return -EOPNOTSUPP; in of_genpd_add_provider_simple()
364 return -EOPNOTSUPP; in of_genpd_add_provider_onecell()
372 return -ENODEV; in of_genpd_add_device()
378 return -ENODEV; in of_genpd_add_subdomain()
384 return -ENODEV; in of_genpd_remove_subdomain()
388 struct genpd_power_state **states, int *n) in of_genpd_parse_idle_states() argument
390 return -ENODEV; in of_genpd_parse_idle_states()
420 return ERR_PTR(-EOPNOTSUPP); in of_genpd_remove_last()