Lines Matching defs:ptr
21 * @ptr: Pointer to an array of registers.
22 * @count: Size of the ptr array.
27 void s3c_pm_do_save(struct sleep_save *ptr, int count)
29 for (; count > 0; count--, ptr++) {
30 ptr->val = readl_relaxed(ptr->reg);
31 S3C_PMDBG("saved %p value %08lx\n", ptr->reg, ptr->val);
37 * @ptr: Pointer to an array of registers.
38 * @count: Size of the ptr array.
46 void s3c_pm_do_restore(const struct sleep_save *ptr, int count)
48 for (; count > 0; count--, ptr++) {
50 ptr->reg, ptr->val, readl_relaxed(ptr->reg));
52 writel_relaxed(ptr->val, ptr->reg);
58 * @ptr: Pointer to an array of registers.
59 * @count: Size of the ptr array.
69 void s3c_pm_do_restore_core(const struct sleep_save *ptr, int count)
71 for (; count > 0; count--, ptr++)
72 writel_relaxed(ptr->val, ptr->reg);