Lines Matching refs:pxa_cpu_pm_fns
21 struct pxa_cpu_pm_fns *pxa_cpu_pm_fns; variable
36 if (state != PM_SUSPEND_STANDBY && pxa_cpu_pm_fns->save) { in pxa_pm_enter()
37 pxa_cpu_pm_fns->save(sleep_save); in pxa_pm_enter()
39 for (i = 0; i < pxa_cpu_pm_fns->save_count - 1; i++) in pxa_pm_enter()
44 pxa_cpu_pm_fns->enter(state); in pxa_pm_enter()
46 if (state != PM_SUSPEND_STANDBY && pxa_cpu_pm_fns->restore) { in pxa_pm_enter()
48 for (i = 0; i < pxa_cpu_pm_fns->save_count - 1; i++) in pxa_pm_enter()
55 pxa_cpu_pm_fns->enter(state); in pxa_pm_enter()
57 pxa_cpu_pm_fns->restore(sleep_save); in pxa_pm_enter()
69 if (pxa_cpu_pm_fns) in pxa_pm_valid()
70 return pxa_cpu_pm_fns->valid(state); in pxa_pm_valid()
79 if (pxa_cpu_pm_fns && pxa_cpu_pm_fns->prepare) in pxa_pm_prepare()
80 ret = pxa_cpu_pm_fns->prepare(); in pxa_pm_prepare()
87 if (pxa_cpu_pm_fns && pxa_cpu_pm_fns->finish) in pxa_pm_finish()
88 pxa_cpu_pm_fns->finish(); in pxa_pm_finish()
100 if (!pxa_cpu_pm_fns) { in pxa_pm_init()
105 sleep_save = kmalloc_array(pxa_cpu_pm_fns->save_count, in pxa_pm_init()