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);
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 */
128 int (*power_off)(struct generic_pm_domain *domain);
129 int (*power_on)(struct generic_pm_domain *domain);
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,
147 struct genpd_power_state *states; member
148 void (*free_states)(struct genpd_power_state *states,
150 unsigned int state_count; /* number of states */
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()
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()
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 */
329 struct genpd_power_state **states, int *n);
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()
372 struct genpd_power_state **states, int *n) in of_genpd_parse_idle_states() argument
374 return -ENODEV; in of_genpd_parse_idle_states()
404 return ERR_PTR(-EOPNOTSUPP); in of_genpd_remove_last()