Home
last modified time | relevance | path

Searched refs:suspend_state_t (Results 1 – 25 of 69) sorted by relevance

123

/Linux-v5.4/kernel/power/
Dsuspend.c49 suspend_state_t mem_sleep_current = PM_SUSPEND_TO_IDLE;
50 suspend_state_t mem_sleep_default = PM_SUSPEND_MAX;
51 suspend_state_t pm_suspend_target_state;
161 static bool valid_state(suspend_state_t state) in valid_state()
185 suspend_state_t state; in mem_sleep_default_setup()
231 int suspend_valid_only_mem(suspend_state_t state) in suspend_valid_only_mem()
237 static bool sleep_state_supported(suspend_state_t state) in sleep_state_supported()
242 static int platform_suspend_prepare(suspend_state_t state) in platform_suspend_prepare()
248 static int platform_suspend_prepare_late(suspend_state_t state) in platform_suspend_prepare_late()
254 static int platform_suspend_prepare_noirq(suspend_state_t state) in platform_suspend_prepare_noirq()
[all …]
Dpower.h192 extern int suspend_devices_and_enter(suspend_state_t state);
196 static inline int suspend_devices_and_enter(suspend_state_t state) in suspend_devices_and_enter()
294 extern suspend_state_t pm_autosleep_state(void);
295 extern int pm_autosleep_set_state(suspend_state_t state);
302 static inline suspend_state_t pm_autosleep_state(void) { return PM_SUSPEND_ON; } in pm_autosleep_state()
Dautosleep.c16 static suspend_state_t autosleep_state;
75 suspend_state_t pm_autosleep_state(void) in pm_autosleep_state()
90 int pm_autosleep_set_state(suspend_state_t state) in pm_autosleep_set_state()
Dmain.c128 suspend_state_t i; in mem_sleep_show()
147 static suspend_state_t decode_suspend_state(const char *buf, size_t n) in decode_suspend_state()
149 suspend_state_t state; in decode_suspend_state()
169 suspend_state_t state; in mem_sleep_store()
557 suspend_state_t i; in state_show()
572 static suspend_state_t decode_state(const char *buf, size_t n) in decode_state()
575 suspend_state_t state; in decode_state()
602 suspend_state_t state; in state_store()
708 suspend_state_t state = pm_autosleep_state(); in autosleep_show()
729 suspend_state_t state = decode_state(buf, n); in autosleep_store()
/Linux-v5.4/include/linux/
Dsuspend.h34 typedef int __bitwise suspend_state_t; typedef
36 #define PM_SUSPEND_ON ((__force suspend_state_t) 0)
37 #define PM_SUSPEND_TO_IDLE ((__force suspend_state_t) 1)
38 #define PM_SUSPEND_STANDBY ((__force suspend_state_t) 2)
39 #define PM_SUSPEND_MEM ((__force suspend_state_t) 3)
41 #define PM_SUSPEND_MAX ((__force suspend_state_t) 4)
178 int (*valid)(suspend_state_t state);
179 int (*begin)(suspend_state_t state);
182 int (*enter)(suspend_state_t state);
201 extern suspend_state_t mem_sleep_current;
[all …]
/Linux-v5.4/include/linux/regulator/
Dcoupler.h50 suspend_state_t state);
58 suspend_state_t state);
64 suspend_state_t state);
76 suspend_state_t state) in regulator_check_consumers()
91 suspend_state_t state) in regulator_set_voltage_rdev()
Dmachine.h174 suspend_state_t initial_state; /* suspend state to set at init */
256 static inline int regulator_suspend_prepare(suspend_state_t state) in regulator_suspend_prepare()
/Linux-v5.4/arch/unicore32/include/mach/
Dpm.h18 int (*valid)(suspend_state_t state);
19 void (*enter)(suspend_state_t state);
31 extern int puv3_pm_enter(suspend_state_t state);
/Linux-v5.4/arch/arm/mach-pxa/
Dpm.h12 int (*valid)(suspend_state_t state);
13 void (*enter)(suspend_state_t state);
24 extern int pxa_pm_enter(suspend_state_t state);
Dpm.c24 int pxa_pm_enter(suspend_state_t state) in pxa_pm_enter()
69 static int pxa_pm_valid(suspend_state_t state) in pxa_pm_valid()
/Linux-v5.4/arch/arm/mach-shmobile/
Dsuspend.c19 static int shmobile_suspend_default_enter(suspend_state_t suspend_state) in shmobile_suspend_default_enter()
25 static int shmobile_suspend_begin(suspend_state_t state) in shmobile_suspend_begin()
/Linux-v5.4/arch/arm/mach-mvebu/
Dkirkwood-pm.c40 static int kirkwood_suspend_enter(suspend_state_t state) in kirkwood_suspend_enter()
52 static int kirkwood_pm_valid_standby(suspend_state_t state) in kirkwood_pm_valid_standby()
Dpm.c189 static int mvebu_pm_enter(suspend_state_t state) in mvebu_pm_enter()
204 static int mvebu_pm_valid(suspend_state_t state) in mvebu_pm_valid()
/Linux-v5.4/arch/nds32/kernel/
Dpm.c40 static int nds32_pm_valid(suspend_state_t state) in nds32_pm_valid()
52 static int nds32_pm_enter(suspend_state_t state) in nds32_pm_enter()
/Linux-v5.4/arch/powerpc/sysdev/
Dfsl_pmc.c32 static int pmc_suspend_enter(suspend_state_t state) in pmc_suspend_enter()
47 static int pmc_suspend_valid(suspend_state_t state) in pmc_suspend_valid()
/Linux-v5.4/arch/mips/loongson64/common/
Dpm.c121 static int loongson_pm_enter(suspend_state_t state) in loongson_pm_enter()
133 static int loongson_pm_valid_state(suspend_state_t state) in loongson_pm_valid_state()
/Linux-v5.4/arch/arm/mach-omap2/
Dpm.c78 static int omap_pm_enter(suspend_state_t suspend_state) in omap_pm_enter()
96 static int omap_pm_begin(suspend_state_t state) in omap_pm_begin()
/Linux-v5.4/arch/unicore32/kernel/
Dpm.c25 int puv3_pm_enter(suspend_state_t state) in puv3_pm_enter()
71 static int puv3_pm_valid(suspend_state_t state) in puv3_pm_valid()
/Linux-v5.4/arch/powerpc/platforms/52xx/
Dlite5200_pm.c23 static suspend_state_t lite5200_pm_target_state;
25 static int lite5200_pm_valid(suspend_state_t state) in lite5200_pm_valid()
36 static int lite5200_pm_begin(suspend_state_t state) in lite5200_pm_begin()
205 static int lite5200_pm_enter(suspend_state_t state) in lite5200_pm_enter()
/Linux-v5.4/arch/arm/mach-milbeaut/
Dplatsmp.c99 static int m10v_pm_valid(suspend_state_t state) in m10v_pm_valid()
118 static int m10v_pm_enter(suspend_state_t state) in m10v_pm_enter()
/Linux-v5.4/drivers/soc/ti/
Dpm33xx.c167 static int am33xx_pm_suspend(suspend_state_t suspend_state) in am33xx_pm_suspend()
231 static int am33xx_pm_enter(suspend_state_t suspend_state) in am33xx_pm_enter()
247 static int am33xx_pm_begin(suspend_state_t state) in am33xx_pm_begin()
306 static int am33xx_pm_valid(suspend_state_t state) in am33xx_pm_valid()
/Linux-v5.4/arch/arm/mach-ux500/
Dpm.c158 static int ux500_suspend_enter(suspend_state_t state) in ux500_suspend_enter()
164 static int ux500_suspend_valid(suspend_state_t state) in ux500_suspend_valid()
/Linux-v5.4/arch/x86/platform/olpc/
Dolpc-xo1-pm.c48 static int xo1_power_state_enter(suspend_state_t pm_state) in xo1_power_state_enter()
109 static int xo1_power_state_valid(suspend_state_t pm_state) in xo1_power_state_valid()
/Linux-v5.4/arch/arm/mach-mmp/
Dpm-mmp2.c158 static int mmp2_pm_enter(suspend_state_t state) in mmp2_pm_enter()
202 static int mmp2_pm_valid(suspend_state_t state) in mmp2_pm_valid()
/Linux-v5.4/arch/powerpc/platforms/pseries/
Dsuspend.c32 static int pseries_suspend_begin(suspend_state_t state) in pseries_suspend_begin()
92 static int pseries_suspend_enter(suspend_state_t state) in pseries_suspend_enter()

123