sleep_save
sleep_save = kmalloc_array(pxa_cpu_pm_fns->save_count,
sizeof(*sleep_save),
if (!sleep_save)
static unsigned long *sleep_save;
pxa_cpu_pm_fns->save(sleep_save);
sleep_save_checksum += sleep_save[i];
checksum += sleep_save[i];
pxa_cpu_pm_fns->restore(sleep_save);
#define SAVE(x) sleep_save[SLEEP_SAVE_##x] = x
#define RESTORE(x) x = sleep_save[SLEEP_SAVE_##x]
static void pxa25x_cpu_pm_save(unsigned long *sleep_save)
static void pxa25x_cpu_pm_restore(unsigned long *sleep_save)
static void pxa27x_cpu_pm_save(unsigned long *sleep_save)
sleep_save[SLEEP_SAVE_MDREFR] = __raw_readl(MDREFR);
static void pxa27x_cpu_pm_restore(unsigned long *sleep_save)
__raw_writel(sleep_save[SLEEP_SAVE_MDREFR], MDREFR);
#define SAVE(x) sleep_save[SLEEP_SAVE_##x] = x
#define RESTORE(x) x = sleep_save[SLEEP_SAVE_##x]
static struct sleep_save irq_save[] = {
void s3c_pm_do_save(struct sleep_save *ptr, int count)
void s3c_pm_do_restore(const struct sleep_save *ptr, int count)
void s3c_pm_do_restore_core(const struct sleep_save *ptr, int count)
extern void s3c_pm_do_save(struct sleep_save *ptr, int count);
extern void s3c_pm_do_restore(const struct sleep_save *ptr, int count);
extern void s3c_pm_do_restore_core(const struct sleep_save *ptr, int count);
static struct sleep_save core_save[] = {
static struct sleep_save misc_save[] = {
static void s3c_pm_do_save(struct sleep_save *ptr, int count)
static void s3c_pm_do_restore_core(const struct sleep_save *ptr, int count)
static struct sleep_save s5pv210_core_save[] = {
#define SAVE(x) sleep_save[SLEEP_SAVE_##x] = x
#define RESTORE(x) x = sleep_save[SLEEP_SAVE_##x]
unsigned long gpio, sleep_save[SLEEP_SAVE_COUNT];