Lines Matching refs:sr
28 i2c_out(&ccsr_i2c->sr, I2C_SR_RST); in i2c_init()
35 unsigned char sr; in wait_for_state() local
40 sr = i2c_in(&ccsr_i2c->sr); in wait_for_state()
41 if (sr & I2C_SR_AL) { in wait_for_state()
42 i2c_out(&ccsr_i2c->sr, sr); in wait_for_state()
46 if ((sr & mask) == state) { in wait_for_state()
47 return (int)sr; in wait_for_state()
55 WARN("I2C: Timeout waiting for state 0x%x, sr = 0x%x\n", state, sr); in wait_for_state()
64 i2c_out(&ccsr_i2c->sr, I2C_SR_IF); in tx_byte()
109 i2c_out(&ccsr_i2c->sr, I2C_SR_IF); in i2c_write_addr()
157 i2c_out(&ccsr_i2c->sr, I2C_SR_IF); in read_data()
175 i2c_out(&ccsr_i2c->sr, I2C_SR_IF); in read_data()