Lines Matching refs:sr
115 u32 sr = __raw_readl(iop3xx_adap->ioaddr + SR_OFFSET); in iop3xx_i2c_irq_handler() local
117 if ((sr &= iop3xx_adap->SR_enabled)) { in iop3xx_i2c_irq_handler()
118 __raw_writel(sr, iop3xx_adap->ioaddr + SR_OFFSET); in iop3xx_i2c_irq_handler()
119 iop3xx_adap->SR_received |= sr; in iop3xx_i2c_irq_handler()
127 iop3xx_i2c_error(u32 sr) in iop3xx_i2c_error() argument
131 if ((sr & IOP3XX_ISR_BERRD)) { in iop3xx_i2c_error()
134 if ((sr & IOP3XX_ISR_ALD)) { in iop3xx_i2c_error()
144 u32 sr; in iop3xx_i2c_get_srstat() local
147 sr = iop3xx_adap->SR_received; in iop3xx_i2c_get_srstat()
151 return sr; in iop3xx_i2c_get_srstat()
166 unsigned sr = 0; in iop3xx_i2c_wait_event() local
174 (done = compare( sr = iop3xx_i2c_get_srstat(iop3xx_adap) ,flags )), in iop3xx_i2c_wait_event()
177 if ((rc = iop3xx_i2c_error(sr)) < 0) { in iop3xx_i2c_wait_event()
178 *status = sr; in iop3xx_i2c_wait_event()
181 *status = sr; in iop3xx_i2c_wait_event()
186 *status = sr; in iop3xx_i2c_wait_event()