Lines Matching refs:ctl_addr
233 static int scpsys_sram_enable(struct scp_domain *scpd, void __iomem *ctl_addr) in scpsys_sram_enable() argument
239 val = readl(ctl_addr); in scpsys_sram_enable()
241 writel(val, ctl_addr); in scpsys_sram_enable()
253 int ret = readl_poll_timeout(ctl_addr, tmp, in scpsys_sram_enable()
263 static int scpsys_sram_disable(struct scp_domain *scpd, void __iomem *ctl_addr) in scpsys_sram_disable() argument
269 val = readl(ctl_addr); in scpsys_sram_disable()
271 writel(val, ctl_addr); in scpsys_sram_disable()
274 return readl_poll_timeout(ctl_addr, tmp, in scpsys_sram_disable()
307 void __iomem *ctl_addr = scp->base + scpd->data->ctl_offs; in scpsys_power_on() local
320 val = readl(ctl_addr); in scpsys_power_on()
322 writel(val, ctl_addr); in scpsys_power_on()
324 writel(val, ctl_addr); in scpsys_power_on()
333 writel(val, ctl_addr); in scpsys_power_on()
336 writel(val, ctl_addr); in scpsys_power_on()
339 writel(val, ctl_addr); in scpsys_power_on()
341 ret = scpsys_sram_enable(scpd, ctl_addr); in scpsys_power_on()
365 void __iomem *ctl_addr = scp->base + scpd->data->ctl_offs; in scpsys_power_off() local
373 ret = scpsys_sram_disable(scpd, ctl_addr); in scpsys_power_off()
378 val = readl(ctl_addr); in scpsys_power_off()
380 writel(val, ctl_addr); in scpsys_power_off()
383 writel(val, ctl_addr); in scpsys_power_off()
386 writel(val, ctl_addr); in scpsys_power_off()
389 writel(val, ctl_addr); in scpsys_power_off()
392 writel(val, ctl_addr); in scpsys_power_off()