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.
65 * GENPD_FLAG_OPP_TABLE_FW: The genpd provider supports performance states,
79 GENPD_STATE_ON = 0, /* PM domain is on */
80 GENPD_STATE_OFF, /* PM domain is off */
91 bool (*power_down_ok)(struct dev_pm_domain *domain);
125 struct dev_pm_domain domain; /* PM domain operations */ member
127 struct list_head parent_links; /* Links with PM domain as a parent */
128 struct list_head child_links; /* Links with PM domain as a child */
133 struct fwnode_handle *provider; /* Identity of the domain provider */
137 enum gpd_status status; /* Current state of the domain */
144 int (*power_off)(struct generic_pm_domain *domain);
145 int (*power_on)(struct generic_pm_domain *domain);
151 int (*attach_dev)(struct generic_pm_domain *domain,
153 void (*detach_dev)(struct generic_pm_domain *domain,
156 struct genpd_power_state *states; member
157 void (*free_states)(struct genpd_power_state *states,
159 unsigned int state_count; /* number of states */
176 return container_of(pd, struct generic_pm_domain, domain); in pd_to_genpd()
185 /* Sub-domain's per-master domain performance state */
224 return to_gpd_data(dev->power.subsys_data->domain_data); in dev_gpd_data()
252 return ERR_PTR(-ENOSYS); in dev_gpd_data()
257 return -ENOSYS; in pm_genpd_add_device()
261 return -ENOSYS; in pm_genpd_remove_device()
266 return -ENOSYS; in pm_genpd_add_subdomain()
271 return -ENOSYS; in pm_genpd_remove_subdomain()
276 return -ENOSYS; in pm_genpd_init()
280 return -EOPNOTSUPP; in pm_genpd_remove()
286 return -EOPNOTSUPP; in dev_pm_genpd_set_performance_state()
292 return -EOPNOTSUPP; in dev_pm_genpd_add_notifier()
297 return -EOPNOTSUPP; in dev_pm_genpd_remove_notifier()
322 /* OF PM domain providers */
347 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()
413 return ERR_PTR(-EOPNOTSUPP); in of_genpd_remove_last()