Lines Matching refs:ptr
43 typedef u32 *(run_fn_t)(struct resource *ptr, u32 *arg);
50 static void s3c_pm_run_res(struct resource *ptr, run_fn_t fn, u32 *arg) in s3c_pm_run_res() argument
52 while (ptr != NULL) { in s3c_pm_run_res()
53 if (ptr->child != NULL) in s3c_pm_run_res()
54 s3c_pm_run_res(ptr->child, fn, arg); in s3c_pm_run_res()
56 if ((ptr->flags & IORESOURCE_MEM) && in s3c_pm_run_res()
57 strcmp(ptr->name, "System RAM") == 0) { in s3c_pm_run_res()
59 (unsigned long)ptr->start, in s3c_pm_run_res()
60 (unsigned long)ptr->end); in s3c_pm_run_res()
61 arg = (fn)(ptr, arg); in s3c_pm_run_res()
64 ptr = ptr->sibling; in s3c_pm_run_res()
144 static inline int in_region(void *ptr, int size, void *what, size_t whatsz) in in_region() argument
146 if ((what+whatsz) < ptr) in in_region()
149 if (what > (ptr+size)) in in_region()
170 void *ptr; in s3c_pm_runcheck() local
182 ptr = phys_to_virt(addr); in s3c_pm_runcheck()
184 if (in_region(ptr, left, stkpage, 4096)) { in s3c_pm_runcheck()
189 if (in_region(ptr, left, crcs, crc_size)) { in s3c_pm_runcheck()
196 calc = crc32_le(~0, ptr, left); in s3c_pm_runcheck()