Lines Matching defs: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)
48 while (ptr != NULL) {
49 if (ptr->child != NULL)
50 s3c_pm_run_res(ptr->child, fn, arg);
52 if ((ptr->flags & IORESOURCE_SYSTEM_RAM)
55 (unsigned long)ptr->start,
56 (unsigned long)ptr->end);
57 arg = (fn)(ptr, arg);
60 ptr = ptr->sibling;
136 * return TRUE if the area defined by ptr..ptr+size contains the
140 static inline int in_region(void *ptr, int size, void *what, size_t whatsz)
142 if ((what+whatsz) < ptr)
145 if (what > (ptr+size))
166 void *ptr;
178 ptr = phys_to_virt(addr);
180 if (in_region(ptr, left, stkpage, 4096)) {
185 if (in_region(ptr, left, crcs, crc_size)) {
192 calc = crc32_le(~0, ptr, left);