Lines Matching refs:ctrl
85 u32 wdata, addr, ctrl; in i2c_sendbytes() local
113 ctrl = bus->i2c_period | (1 << 12) | (1 << 2); in i2c_sendbytes()
116 ctrl |= I2C_NOSTOP | I2C_EXTEND; in i2c_sendbytes()
118 ctrl |= I2C_NOSTOP; in i2c_sendbytes()
122 cx_write(bus->reg_ctrl, ctrl); in i2c_sendbytes()
132 if (!(ctrl & I2C_NOSTOP)) in i2c_sendbytes()
139 ctrl = bus->i2c_period | (1 << 12) | (1 << 2); in i2c_sendbytes()
142 ctrl |= I2C_NOSTOP | I2C_EXTEND; in i2c_sendbytes()
144 ctrl |= I2C_NOSTOP; in i2c_sendbytes()
148 cx_write(bus->reg_ctrl, ctrl); in i2c_sendbytes()
159 if (!(ctrl & I2C_NOSTOP)) in i2c_sendbytes()
179 u32 ctrl, cnt; in i2c_readbytes() local
207 ctrl = bus->i2c_period | (1 << 12) | (1 << 2) | 1; in i2c_readbytes()
210 ctrl |= I2C_NOSTOP | I2C_EXTEND; in i2c_readbytes()
213 cx_write(bus->reg_ctrl, ctrl); in i2c_readbytes()
224 if (!(ctrl & I2C_NOSTOP)) in i2c_readbytes()