Lines Matching +full:suspend +full:- +full:in +full:- +full:wait
1 // SPDX-License-Identifier: GPL-2.0-or-later
24 #include <linux/suspend.h>
26 #include <asm/dcr-native.h>
43 unsigned int suspend; member
54 [CPM_IDLE_WAIT] = { 1, "wait" }, /* default */
84 /* set wait state MSR */ in cpm_idle_wait()
99 /* go to wait state so that CPM0_ER[CPU] can take effect */ in cpm_idle_sleep()
137 *(s-1) = '\n'; /* convert the last space to a newline */ in cpm_idle_show()
139 return s - buf; in cpm_idle_show()
151 len = p ? p - buf : n; in cpm_idle_store()
160 return -EINVAL; in cpm_idle_store()
173 ret = sysfs_create_file(&dev->kobj, in cpm_idle_config_sysfs()
194 return !!cpm.suspend; in cpm_suspend_valid()
222 cpm_suspend_standby(cpm.suspend); in cpm_suspend_enter()
259 ret = -EINVAL; in cpm_init()
269 ret = -EINVAL; in cpm_init()
278 ret = -EINVAL; in cpm_init()
284 * CPM registers in the following order (ER,FR,SR). The in cpm_init()
285 * others have them in the following order (SR,ER,FR). in cpm_init()
288 if (cpm_get_uint_property(np, "er-offset") == 0) { in cpm_init()
300 cpm.unused = cpm_get_uint_property(np, "unused-units"); in cpm_init()
301 cpm.idle_doze = cpm_get_uint_property(np, "idle-doze"); in cpm_init()
303 cpm.suspend = cpm_get_uint_property(np, "suspend"); in cpm_init()
317 if (cpm.standby || cpm.suspend) in cpm_init()