Lines Matching refs:i2cstat
94 uint8_t i2cstat; member
113 s->i2cstat &= ~I2CSTAT_LAST_BIT; in exynos4210_i2c_data_receive()
123 s->i2cstat &= ~I2CSTAT_LAST_BIT; in exynos4210_i2c_data_send()
126 s->i2cstat |= I2CSTAT_LAST_BIT; in exynos4210_i2c_data_send()
142 value = s->i2cstat; in exynos4210_i2c_read()
150 if (EXYNOS4_I2C_MODE(s->i2cstat) == I2CMODE_MASTER_Rx && in exynos4210_i2c_read()
151 (s->i2cstat & I2CSTAT_START_BUSY) && in exynos4210_i2c_read()
186 s->i2cstat &= ~I2CSTAT_START_BUSY; in exynos4210_i2c_write()
189 if (s->i2cstat & I2CSTAT_START_BUSY) { in exynos4210_i2c_write()
191 if (EXYNOS4_I2C_MODE(s->i2cstat) == I2CMODE_MASTER_Tx) { in exynos4210_i2c_write()
193 } else if (EXYNOS4_I2C_MODE(s->i2cstat) == in exynos4210_i2c_write()
205 s->i2cstat = in exynos4210_i2c_write()
206 (s->i2cstat & I2CSTAT_START_BUSY) | (v & ~I2CSTAT_START_BUSY); in exynos4210_i2c_write()
208 if (!(s->i2cstat & I2CSTAT_OUTPUT_EN)) { in exynos4210_i2c_write()
209 s->i2cstat &= ~I2CSTAT_START_BUSY; in exynos4210_i2c_write()
216 if (!I2C_IN_MASTER_MODE(s->i2cstat)) { in exynos4210_i2c_write()
221 s->i2cstat &= ~I2CSTAT_LAST_BIT; in exynos4210_i2c_write()
222 s->i2cstat |= I2CSTAT_START_BUSY; /* Line is busy */ in exynos4210_i2c_write()
228 s->i2cstat |= I2CSTAT_LAST_BIT; in exynos4210_i2c_write()
229 } else if (EXYNOS4_I2C_MODE(s->i2cstat) == I2CMODE_MASTER_Rx) { in exynos4210_i2c_write()
236 s->i2cstat &= ~I2CSTAT_START_BUSY; in exynos4210_i2c_write()
242 if ((s->i2cstat & I2CSTAT_OUTPUT_EN) == 0) { in exynos4210_i2c_write()
247 if (s->i2cstat & I2CSTAT_OUTPUT_EN) { in exynos4210_i2c_write()
250 if (EXYNOS4_I2C_MODE(s->i2cstat) == I2CMODE_MASTER_Tx && in exynos4210_i2c_write()
251 (s->i2cstat & I2CSTAT_START_BUSY) && in exynos4210_i2c_write()
278 VMSTATE_UINT8(i2cstat, Exynos4210I2CState),
292 s->i2cstat = 0x00; in exynos4210_i2c_reset()