Lines Matching +full:separately +full:- +full:defined
1 // SPDX-License-Identifier: GPL-2.0
3 // originally in linux/arch/arm/plat-s3c24xx/pm.c
5 // Copyright (c) 2004-2008 Simtec Electronics
9 // S3C Power Mangament - suspend/resume memory corruption check.
18 #include <linux/soc/samsung/s3c-pm.h>
21 #error CONFIG_SAMSUNG_PM_CHECK_CHUNKSIZE must be a positive non-zero value
29 * CONFIG_SAMSUNG_PM_CHECK_CHUNKSIZE defines the block-size for the CRC,
49 if (ptr->child != NULL) in s3c_pm_run_res()
50 s3c_pm_run_res(ptr->child, fn, arg); in s3c_pm_run_res()
52 if ((ptr->flags & IORESOURCE_SYSTEM_RAM) in s3c_pm_run_res()
55 (unsigned long)ptr->start, in s3c_pm_run_res()
56 (unsigned long)ptr->end); in s3c_pm_run_res()
60 ptr = ptr->sibling; in s3c_pm_run_res()
73 size += CHECK_CHUNKSIZE-1; in s3c_pm_countram()
77 (unsigned long)res->start, (unsigned long)res->end, size); in s3c_pm_countram()
108 for (addr = res->start; addr < res->end; in s3c_pm_makecheck()
110 left = res->end - addr; in s3c_pm_makecheck()
136 * return TRUE if the area defined by ptr..ptr+size contains the
152 * s3c_pm_runcheck() - helper to check a resource on restore.
171 for (addr = res->start; addr < res->end; in s3c_pm_runcheck()
173 left = res->end - addr; in s3c_pm_runcheck()
209 * s3c_pm_check_restore() - memory check called on resume
221 * s3c_pm_check_cleanup() - free memory resources
224 * memory check code. We do this separately from the