Lines Matching refs:pmc_cache

72 } pmc_cache;  variable
115 regmap_read(pmcreg, AT91_PMC_SCSR, &pmc_cache.scsr); in pmc_suspend()
116 regmap_read(pmcreg, AT91_PMC_PCSR, &pmc_cache.pcsr0); in pmc_suspend()
117 regmap_read(pmcreg, AT91_CKGR_UCKR, &pmc_cache.uckr); in pmc_suspend()
118 regmap_read(pmcreg, AT91_CKGR_MOR, &pmc_cache.mor); in pmc_suspend()
119 regmap_read(pmcreg, AT91_CKGR_MCFR, &pmc_cache.mcfr); in pmc_suspend()
120 regmap_read(pmcreg, AT91_CKGR_PLLAR, &pmc_cache.pllar); in pmc_suspend()
121 regmap_read(pmcreg, AT91_PMC_MCKR, &pmc_cache.mckr); in pmc_suspend()
122 regmap_read(pmcreg, AT91_PMC_USB, &pmc_cache.usb); in pmc_suspend()
123 regmap_read(pmcreg, AT91_PMC_IMR, &pmc_cache.imr); in pmc_suspend()
124 regmap_read(pmcreg, AT91_PMC_PCSR1, &pmc_cache.pcsr1); in pmc_suspend()
130 &pmc_cache.pcr[registered_ids[i]]); in pmc_suspend()
134 regmap_read(pmcreg, AT91_PMC_PCKR(num), &pmc_cache.pckr[num]); in pmc_suspend()
157 if (pmc_cache.mckr != tmp) in pmc_resume()
160 if (pmc_cache.pllar != tmp) in pmc_resume()
163 regmap_write(pmcreg, AT91_PMC_SCER, pmc_cache.scsr); in pmc_resume()
164 regmap_write(pmcreg, AT91_PMC_PCER, pmc_cache.pcsr0); in pmc_resume()
165 regmap_write(pmcreg, AT91_CKGR_UCKR, pmc_cache.uckr); in pmc_resume()
166 regmap_write(pmcreg, AT91_CKGR_MOR, pmc_cache.mor); in pmc_resume()
167 regmap_write(pmcreg, AT91_CKGR_MCFR, pmc_cache.mcfr); in pmc_resume()
168 regmap_write(pmcreg, AT91_PMC_USB, pmc_cache.usb); in pmc_resume()
169 regmap_write(pmcreg, AT91_PMC_IMR, pmc_cache.imr); in pmc_resume()
170 regmap_write(pmcreg, AT91_PMC_PCER1, pmc_cache.pcsr1); in pmc_resume()
174 pmc_cache.pcr[registered_ids[i]] | in pmc_resume()
179 regmap_write(pmcreg, AT91_PMC_PCKR(num), pmc_cache.pckr[num]); in pmc_resume()
182 if (pmc_cache.uckr & AT91_PMC_UPLLEN) in pmc_resume()