Lines Matching +full:domain +full:- +full:idle +full:- +full:state
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);
111 struct dev_pm_domain domain; /* PM domain operations */ member
113 struct list_head parent_links; /* Links with PM domain as a parent */
114 struct list_head child_links; /* Links with PM domain as a child */
118 struct fwnode_handle *provider; /* Identity of the domain provider */
122 enum gpd_status status; /* Current state of the domain */
126 unsigned int performance_state; /* Aggregated max performance state */
128 int (*power_off)(struct generic_pm_domain *domain);
129 int (*power_on)(struct generic_pm_domain *domain);
135 unsigned int state);
138 ktime_t next_wakeup; /* Maintained by the domain governor */
142 int (*attach_dev)(struct generic_pm_domain *domain,
144 void (*detach_dev)(struct generic_pm_domain *domain,
151 unsigned int state_idx; /* state that genpd will go to when off */
167 return container_of(pd, struct generic_pm_domain, domain); in pd_to_genpd()
176 /* Sub-domain's per-master domain performance state */
213 return to_gpd_data(dev->power.subsys_data->domain_data); in dev_gpd_data()
225 int dev_pm_genpd_set_performance_state(struct device *dev, unsigned int state);
239 return ERR_PTR(-ENOSYS); in dev_gpd_data()
244 return -ENOSYS; in pm_genpd_add_device()
248 return -ENOSYS; in pm_genpd_remove_device()
253 return -ENOSYS; in pm_genpd_add_subdomain()
258 return -ENOSYS; in pm_genpd_remove_subdomain()
263 return -ENOSYS; in pm_genpd_init()
267 return -ENOTSUPP; in pm_genpd_remove()
271 unsigned int state) in dev_pm_genpd_set_performance_state() argument
273 return -ENOTSUPP; in dev_pm_genpd_set_performance_state()
279 return -ENOTSUPP; in dev_pm_genpd_add_notifier()
284 return -ENOTSUPP; in dev_pm_genpd_remove_notifier()
302 /* OF PM domain providers */
340 return -ENOTSUPP; in of_genpd_add_provider_simple()
346 return -ENOTSUPP; in of_genpd_add_provider_onecell()
354 return -ENODEV; in of_genpd_add_device()
360 return -ENODEV; in of_genpd_add_subdomain()
366 return -ENODEV; in of_genpd_remove_subdomain()
372 return -ENODEV; in of_genpd_parse_idle_states()
402 return ERR_PTR(-ENOTSUPP); in of_genpd_remove_last()