Searched refs:i2c_stat (Results 1 – 2 of 2) sorted by relevance
141 u32 i2c_stat = readl(siic->base + SIRFSOC_I2C_STATUS); in i2c_sirfsoc_irq() local143 if (i2c_stat & SIRFSOC_I2C_STAT_ERR) { in i2c_sirfsoc_irq()148 if (i2c_stat & SIRFSOC_I2C_STAT_NACK) in i2c_sirfsoc_irq()164 } else if (i2c_stat & SIRFSOC_I2C_STAT_CMD_DONE) { in i2c_sirfsoc_irq()
1224 int i2c_stat; in stb0899_i2c_gate_ctrl() local1227 i2c_stat = stb0899_read_reg(state, STB0899_I2CRPT); in stb0899_i2c_gate_ctrl()1228 if (i2c_stat < 0) in stb0899_i2c_gate_ctrl()1233 i2c_stat |= STB0899_I2CTON; in stb0899_i2c_gate_ctrl()1234 if (stb0899_write_reg(state, STB0899_I2CRPT, i2c_stat) < 0) in stb0899_i2c_gate_ctrl()1238 i2c_stat &= ~STB0899_I2CTON; in stb0899_i2c_gate_ctrl()1239 if (stb0899_write_reg(state, STB0899_I2CRPT, i2c_stat) < 0) in stb0899_i2c_gate_ctrl()