Lines Matching full:control
75 static int mv64x60_i2c_control(int control, int status) in mv64x60_i2c_control() argument
77 out_le32((u32 *)(ctlr_base + MV64x60_I2C_REG_CONTROL), control & 0xff); in mv64x60_i2c_control()
81 static int mv64x60_i2c_read_byte(int control, int status) in mv64x60_i2c_read_byte() argument
83 out_le32((u32 *)(ctlr_base + MV64x60_I2C_REG_CONTROL), control & 0xff); in mv64x60_i2c_read_byte()
89 static int mv64x60_i2c_write_byte(int data, int control, int status) in mv64x60_i2c_write_byte() argument
92 out_le32((u32 *)(ctlr_base + MV64x60_I2C_REG_CONTROL), control & 0xff); in mv64x60_i2c_write_byte()
101 int control; in mv64x60_i2c_read() local
118 control = MV64x60_I2C_CONTROL_START | MV64x60_I2C_CONTROL_TWSIEN; in mv64x60_i2c_read()
120 if (mv64x60_i2c_control(control, status) < 0) in mv64x60_i2c_read()
125 control = MV64x60_I2C_CONTROL_TWSIEN; in mv64x60_i2c_read()
127 if (mv64x60_i2c_write_byte(data, control, status) < 0) in mv64x60_i2c_read()
131 control = MV64x60_I2C_CONTROL_TWSIEN; in mv64x60_i2c_read()
134 if (mv64x60_i2c_write_byte(offset >> 8, control, status) < 0) in mv64x60_i2c_read()
137 if (mv64x60_i2c_write_byte(offset, control, status) < 0) in mv64x60_i2c_read()
141 control = MV64x60_I2C_CONTROL_START | MV64x60_I2C_CONTROL_TWSIEN; in mv64x60_i2c_read()
143 if (mv64x60_i2c_control(control, status) < 0) in mv64x60_i2c_read()
148 control = MV64x60_I2C_CONTROL_TWSIEN; in mv64x60_i2c_read()
150 if (mv64x60_i2c_write_byte(data, control, status) < 0) in mv64x60_i2c_read()
154 control = MV64x60_I2C_CONTROL_ACK | MV64x60_I2C_CONTROL_TWSIEN; in mv64x60_i2c_read()
158 data = mv64x60_i2c_read_byte(control, status); in mv64x60_i2c_read()
167 control = MV64x60_I2C_CONTROL_TWSIEN; in mv64x60_i2c_read()
169 data = mv64x60_i2c_read_byte(control, status); in mv64x60_i2c_read()
175 control = MV64x60_I2C_CONTROL_STOP | MV64x60_I2C_CONTROL_TWSIEN; in mv64x60_i2c_read()
177 if (mv64x60_i2c_control(control, status) < 0) in mv64x60_i2c_read()