Lines Matching refs:ptr
39 typedef u32 *(run_fn_t)(struct resource *ptr, u32 *arg);
46 static void s3c_pm_run_res(struct resource *ptr, run_fn_t fn, u32 *arg) in s3c_pm_run_res() argument
48 while (ptr != NULL) { in s3c_pm_run_res()
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()
57 arg = (fn)(ptr, arg); in s3c_pm_run_res()
60 ptr = ptr->sibling; in s3c_pm_run_res()
140 static inline int in_region(void *ptr, int size, void *what, size_t whatsz) in in_region() argument
142 if ((what+whatsz) < ptr) in in_region()
145 if (what > (ptr+size)) in in_region()
166 void *ptr; in s3c_pm_runcheck() local
178 ptr = phys_to_virt(addr); in s3c_pm_runcheck()
180 if (in_region(ptr, left, stkpage, 4096)) { in s3c_pm_runcheck()
185 if (in_region(ptr, left, crcs, crc_size)) { in s3c_pm_runcheck()
192 calc = crc32_le(~0, ptr, left); in s3c_pm_runcheck()