Lines Matching refs:sr
111 u32 sr = __raw_readl(iop3xx_adap->ioaddr + SR_OFFSET); in iop3xx_i2c_irq_handler() local
113 if ((sr &= iop3xx_adap->SR_enabled)) { in iop3xx_i2c_irq_handler()
114 __raw_writel(sr, iop3xx_adap->ioaddr + SR_OFFSET); in iop3xx_i2c_irq_handler()
115 iop3xx_adap->SR_received |= sr; in iop3xx_i2c_irq_handler()
123 iop3xx_i2c_error(u32 sr) in iop3xx_i2c_error() argument
127 if ((sr & IOP3XX_ISR_BERRD)) { in iop3xx_i2c_error()
131 if ((sr & IOP3XX_ISR_ALD)) { in iop3xx_i2c_error()
142 u32 sr; in iop3xx_i2c_get_srstat() local
145 sr = iop3xx_adap->SR_received; in iop3xx_i2c_get_srstat()
149 return sr; in iop3xx_i2c_get_srstat()
164 unsigned sr = 0; in iop3xx_i2c_wait_event() local
172 (done = compare(sr = iop3xx_i2c_get_srstat(iop3xx_adap), flags)), in iop3xx_i2c_wait_event()
175 if ((rc = iop3xx_i2c_error(sr)) < 0) { in iop3xx_i2c_wait_event()
176 *status = sr; in iop3xx_i2c_wait_event()
179 *status = sr; in iop3xx_i2c_wait_event()
184 *status = sr; in iop3xx_i2c_wait_event()