Lines Matching refs:GSR
68 writel(GSR_CDONE | GSR_SDONE, ac97_reg_base + GSR); in pxa2xx_ac97_read()
73 if (wait_event_timeout(gsr_wq, (readl(ac97_reg_base + GSR) | gsr_bits) & GSR_SDONE, 1) <= 0 && in pxa2xx_ac97_read()
74 !((readl(ac97_reg_base + GSR) | gsr_bits) & GSR_SDONE)) { in pxa2xx_ac97_read()
76 __func__, reg, readl(ac97_reg_base + GSR) | gsr_bits); in pxa2xx_ac97_read()
82 writel(GSR_CDONE | GSR_SDONE, ac97_reg_base + GSR); in pxa2xx_ac97_read()
86 wait_event_timeout(gsr_wq, (readl(ac97_reg_base + GSR) | gsr_bits) & GSR_SDONE, 1); in pxa2xx_ac97_read()
109 writel(GSR_CDONE | GSR_SDONE, ac97_reg_base + GSR); in pxa2xx_ac97_write()
112 if (wait_event_timeout(gsr_wq, (readl(ac97_reg_base + GSR) | gsr_bits) & GSR_CDONE, 1) <= 0 && in pxa2xx_ac97_write()
113 !((readl(ac97_reg_base + GSR) | gsr_bits) & GSR_CDONE)) { in pxa2xx_ac97_write()
115 __func__, reg, readl(ac97_reg_base + GSR) | gsr_bits); in pxa2xx_ac97_write()
222 while (!((readl(ac97_reg_base + GSR) | gsr_bits) & (GSR_PCR | GSR_SCR)) && timeout--) in pxa2xx_ac97_try_warm_reset()
225 gsr = readl(ac97_reg_base + GSR) | gsr_bits; in pxa2xx_ac97_try_warm_reset()
259 while (!((readl(ac97_reg_base + GSR) | gsr_bits) & (GSR_PCR | GSR_SCR)) && timeout--) in pxa2xx_ac97_try_cold_reset()
262 gsr = readl(ac97_reg_base + GSR) | gsr_bits; in pxa2xx_ac97_try_cold_reset()
288 status = readl(ac97_reg_base + GSR); in pxa2xx_ac97_irq()
290 writel(status, ac97_reg_base + GSR); in pxa2xx_ac97_irq()