Lines Matching refs:stat
91 int stat; in __i2c_probe_chip() local
101 while (!((stat = readl(&base->stat)) & LPC32XX_I2C_STAT_TDI)) in __i2c_probe_chip()
104 return (stat & LPC32XX_I2C_STAT_NAI) ? -1 : 0; in __i2c_probe_chip()
114 int stat, wlen; in __i2c_read() local
134 while (!((stat = readl(&base->stat)) & LPC32XX_I2C_STAT_TDI)) in __i2c_read()
137 writel(1, &base->stat); in __i2c_read()
147 stat = readl(&base->stat); in __i2c_read()
150 & (!(stat & LPC32XX_I2C_STAT_TFF))) { in __i2c_read()
158 & (!(stat & LPC32XX_I2C_STAT_RFE))) { in __i2c_read()
165 while (!((stat = readl(&base->stat)) & LPC32XX_I2C_STAT_TDI)) in __i2c_read()
168 writel(1, &base->stat); in __i2c_read()
181 int stat; in __i2c_write() local
196 stat = readl(&base->stat); in __i2c_write()
197 if (!(stat & LPC32XX_I2C_STAT_TFF)) { in __i2c_write()
208 stat = readl(&base->stat); in __i2c_write()
209 if (!(stat & LPC32XX_I2C_STAT_TFF)) { in __i2c_write()
220 while (!((stat = readl(&base->stat)) & LPC32XX_I2C_STAT_TDI)) in __i2c_write()
223 writel(1, &base->stat); in __i2c_write()