Lines Matching defs:ptr
35 * @ptr: Pointer to an array of registers.
36 * @count: Size of the ptr array.
41 static void s3c_pm_do_save(struct sleep_save *ptr, int count)
43 for (; count > 0; count--, ptr++) {
44 ptr->val = readl_relaxed(ptr->reg);
45 S3C_PMDBG("saved %p value %08lx\n", ptr->reg, ptr->val);
51 * @ptr: Pointer to an array of registers.
52 * @count: Size of the ptr array.
60 static void s3c_pm_do_restore_core(const struct sleep_save *ptr, int count)
62 for (; count > 0; count--, ptr++)
63 writel_relaxed(ptr->val, ptr->reg);