Lines Matching refs:ctrl
82 u32 wdata, addr, ctrl; in i2c_sendbytes() local
108 ctrl = bus->i2c_period | (1 << 12) | (1 << 2); in i2c_sendbytes()
111 ctrl |= I2C_NOSTOP | I2C_EXTEND; in i2c_sendbytes()
113 ctrl |= I2C_NOSTOP; in i2c_sendbytes()
117 cx_write(bus->reg_ctrl, ctrl); in i2c_sendbytes()
123 if (!(ctrl & I2C_NOSTOP)) in i2c_sendbytes()
130 ctrl = bus->i2c_period | (1 << 12) | (1 << 2); in i2c_sendbytes()
133 ctrl |= I2C_NOSTOP | I2C_EXTEND; in i2c_sendbytes()
135 ctrl |= I2C_NOSTOP; in i2c_sendbytes()
139 cx_write(bus->reg_ctrl, ctrl); in i2c_sendbytes()
145 if (!(ctrl & I2C_NOSTOP)) in i2c_sendbytes()
163 u32 ctrl, cnt; in i2c_readbytes() local
193 ctrl = bus->i2c_period | (1 << 12) | (1 << 2) | 1; in i2c_readbytes()
196 ctrl |= I2C_NOSTOP | I2C_EXTEND; in i2c_readbytes()
199 cx_write(bus->reg_ctrl, ctrl); in i2c_readbytes()
206 if (!(ctrl & I2C_NOSTOP)) in i2c_readbytes()