Lines Matching refs:sr
118 u32 sr = __raw_readl(iop3xx_adap->ioaddr + SR_OFFSET); in iop3xx_i2c_irq_handler() local
120 if ((sr &= iop3xx_adap->SR_enabled)) { in iop3xx_i2c_irq_handler()
121 __raw_writel(sr, iop3xx_adap->ioaddr + SR_OFFSET); in iop3xx_i2c_irq_handler()
122 iop3xx_adap->SR_received |= sr; in iop3xx_i2c_irq_handler()
130 iop3xx_i2c_error(u32 sr) in iop3xx_i2c_error() argument
134 if ((sr & IOP3XX_ISR_BERRD)) { in iop3xx_i2c_error()
137 if ((sr & IOP3XX_ISR_ALD)) { in iop3xx_i2c_error()
147 u32 sr; in iop3xx_i2c_get_srstat() local
150 sr = iop3xx_adap->SR_received; in iop3xx_i2c_get_srstat()
154 return sr; in iop3xx_i2c_get_srstat()
169 unsigned sr = 0; in iop3xx_i2c_wait_event() local
177 (done = compare( sr = iop3xx_i2c_get_srstat(iop3xx_adap) ,flags )), in iop3xx_i2c_wait_event()
180 if ((rc = iop3xx_i2c_error(sr)) < 0) { in iop3xx_i2c_wait_event()
181 *status = sr; in iop3xx_i2c_wait_event()
184 *status = sr; in iop3xx_i2c_wait_event()
189 *status = sr; in iop3xx_i2c_wait_event()