Lines Matching refs:PM_READ
109 #define PM_READ(reg) readl(power->base + (reg)) macro
206 PM_WRITE(pm_reg, PM_READ(pm_reg) & ~PM_ISFUNC); in bcm2835_power_power_off()
209 PM_WRITE(pm_reg, PM_READ(pm_reg) & ~PM_ISPOW); in bcm2835_power_power_off()
212 PM_WRITE(pm_reg, PM_READ(pm_reg) & ~PM_POWUP); in bcm2835_power_power_off()
231 if (PM_READ(pm_reg) & PM_POWUP) in bcm2835_power_power_on()
241 (PM_READ(pm_reg) & ~PM_INRUSH_MASK) | in bcm2835_power_power_on()
246 while (!(powok = !!(PM_READ(pm_reg) & PM_POWOK))) { in bcm2835_power_power_on()
260 PM_WRITE(pm_reg, PM_READ(pm_reg) | PM_ISPOW); in bcm2835_power_power_on()
263 PM_WRITE(pm_reg, PM_READ(pm_reg) | PM_MEMREP); in bcm2835_power_power_on()
265 while (!(PM_READ(pm_reg) & PM_MRDONE)) { in bcm2835_power_power_on()
276 PM_WRITE(pm_reg, PM_READ(pm_reg) | PM_ISFUNC); in bcm2835_power_power_on()
281 PM_WRITE(pm_reg, PM_READ(pm_reg) & ~PM_ISPOW); in bcm2835_power_power_on()
283 PM_WRITE(pm_reg, PM_READ(pm_reg) & ~(PM_POWUP | PM_INRUSH_MASK)); in bcm2835_power_power_on()
309 PM_WRITE(pm_reg, PM_READ(pm_reg) | reset_flags); in bcm2835_asb_power_on()
338 PM_WRITE(pm_reg, PM_READ(pm_reg) & ~reset_flags); in bcm2835_asb_power_on()
368 PM_WRITE(pm_reg, PM_READ(pm_reg) & ~reset_flags); in bcm2835_asb_power_off()
426 PM_WRITE(PM_HDMI, PM_READ(PM_HDMI) | PM_HDMI_RSTDR); in bcm2835_power_pd_power_on()
427 PM_WRITE(PM_HDMI, PM_READ(PM_HDMI) | PM_HDMI_CTRLEN); in bcm2835_power_pd_power_on()
428 PM_WRITE(PM_HDMI, PM_READ(PM_HDMI) & ~PM_HDMI_LDOPD); in bcm2835_power_pd_power_on()
430 PM_WRITE(PM_HDMI, PM_READ(PM_HDMI) & ~PM_HDMI_RSTDR); in bcm2835_power_pd_power_on()
492 PM_WRITE(PM_HDMI, PM_READ(PM_HDMI) | PM_HDMI_LDOPD); in bcm2835_power_pd_power_off()
493 PM_WRITE(PM_HDMI, PM_READ(PM_HDMI) & ~PM_HDMI_CTRLEN); in bcm2835_power_pd_power_off()
583 return !PM_READ(PM_GRAFX & PM_V3DRSTN); in bcm2835_reset_status()
585 return !PM_READ(PM_IMAGE & PM_H264RSTN); in bcm2835_reset_status()
587 return !PM_READ(PM_IMAGE & PM_ISPRSTN); in bcm2835_reset_status()