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 */
215 return to_gpd_data(dev->power.subsys_data->domain_data); in dev_gpd_data()
227 int dev_pm_genpd_set_performance_state(struct device *dev, unsigned int state);
241 return ERR_PTR(-ENOSYS); in dev_gpd_data()
246 return -ENOSYS; in pm_genpd_add_device()
250 return -ENOSYS; in pm_genpd_remove_device()
255 return -ENOSYS; in pm_genpd_add_subdomain()
260 return -ENOSYS; in pm_genpd_remove_subdomain()
265 return -ENOSYS; in pm_genpd_init()
269 return -EOPNOTSUPP; in pm_genpd_remove()
273 unsigned int state) in dev_pm_genpd_set_performance_state() argument
275 return -EOPNOTSUPP; in dev_pm_genpd_set_performance_state()
281 return -EOPNOTSUPP; in dev_pm_genpd_add_notifier()
286 return -EOPNOTSUPP; in dev_pm_genpd_remove_notifier()
304 /* OF PM domain providers */
342 return -EOPNOTSUPP; in of_genpd_add_provider_simple()
348 return -EOPNOTSUPP; in of_genpd_add_provider_onecell()
356 return -ENODEV; in of_genpd_add_device()
362 return -ENODEV; in of_genpd_add_subdomain()
368 return -ENODEV; in of_genpd_remove_subdomain()
374 return -ENODEV; in of_genpd_parse_idle_states()
404 return ERR_PTR(-EOPNOTSUPP); in of_genpd_remove_last()