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.
32 * ->power_on|off(), doesn't sleep. Hence, these
34 * enables genpd to power on/off the PM domain,
40 * GENPD_FLAG_ALWAYS_ON: Instructs genpd to always keep the PM domain
43 * GENPD_FLAG_ACTIVE_WAKEUP: Instructs genpd to keep the PM domain powered
51 * deploy idle power management support for CPUs
54 * last-man-standing algorithm, for the CPUs in the
55 * PM domain.
57 * GENPD_FLAG_RPM_ALWAYS_ON: Instructs genpd to always keep the PM domain
62 * optimal idle state.
73 GENPD_STATE_ON = 0, /* PM domain is on */
74 GENPD_STATE_OFF, /* PM domain is off */
85 bool (*power_down_ok)(struct dev_pm_domain *domain);
119 struct dev_pm_domain domain; /* PM domain operations */ member
121 struct list_head parent_links; /* Links with PM domain as a parent */
122 struct list_head child_links; /* Links with PM domain as a child */
127 struct fwnode_handle *provider; /* Identity of the domain provider */
131 enum gpd_status status; /* Current state of the domain */
137 int (*power_off)(struct generic_pm_domain *domain);
138 int (*power_on)(struct generic_pm_domain *domain);
146 int (*attach_dev)(struct generic_pm_domain *domain,
148 void (*detach_dev)(struct generic_pm_domain *domain,
151 struct genpd_power_state *states; member
152 void (*free_states)(struct genpd_power_state *states,
154 unsigned int state_count; /* number of states */
171 return container_of(pd, struct generic_pm_domain, domain); in pd_to_genpd()
180 /* Sub-domain's per-master domain performance state */
219 return to_gpd_data(dev->power.subsys_data->domain_data); in dev_gpd_data()
245 return ERR_PTR(-ENOSYS); in dev_gpd_data()
250 return -ENOSYS; in pm_genpd_add_device()
254 return -ENOSYS; in pm_genpd_remove_device()
259 return -ENOSYS; in pm_genpd_add_subdomain()
264 return -ENOSYS; in pm_genpd_remove_subdomain()
269 return -ENOSYS; in pm_genpd_init()
273 return -EOPNOTSUPP; in pm_genpd_remove()
279 return -EOPNOTSUPP; in dev_pm_genpd_set_performance_state()
285 return -EOPNOTSUPP; in dev_pm_genpd_add_notifier()
290 return -EOPNOTSUPP; in dev_pm_genpd_remove_notifier()
308 /* OF PM domain providers */
333 struct genpd_power_state **states, int *n);
346 return -EOPNOTSUPP; in of_genpd_add_provider_simple()
352 return -EOPNOTSUPP; in of_genpd_add_provider_onecell()
360 return -ENODEV; in of_genpd_add_device()
366 return -ENODEV; in of_genpd_add_subdomain()
372 return -ENODEV; in of_genpd_remove_subdomain()
376 struct genpd_power_state **states, int *n) in of_genpd_parse_idle_states() argument
378 return -ENODEV; in of_genpd_parse_idle_states()
408 return ERR_PTR(-EOPNOTSUPP); in of_genpd_remove_last()