Lines Matching refs:I2C_ADAP
123 ret = i2c_mux_set(I2C_ADAP, in i2c_mux_set_all()
140 if (I2C_ADAP->init_done == 0) in i2c_mux_disconnect_all()
145 (I2C_ADAP->init_done != 0)) { in i2c_mux_disconnect_all()
155 ret = I2C_ADAP->write(I2C_ADAP, chip, 0, 0, &buf, 1); in i2c_mux_disconnect_all()
179 I2C_ADAP->init(I2C_ADAP, speed, slaveaddr); in i2c_init_bus()
182 I2C_ADAP->init_done = 1; in i2c_init_bus()
183 I2C_ADAP->speed = speed; in i2c_init_bus()
184 I2C_ADAP->slaveaddr = slaveaddr; in i2c_init_bus()
242 if ((bus == I2C_BUS) && (I2C_ADAP->init_done > 0)) in i2c_set_bus_num()
262 if (I2C_ADAP->init_done == 0) in i2c_set_bus_num()
263 i2c_init_bus(bus, I2C_ADAP->speed, I2C_ADAP->slaveaddr); in i2c_set_bus_num()
277 return I2C_ADAP->probe(I2C_ADAP, chip); in i2c_probe()
295 return I2C_ADAP->read(I2C_ADAP, chip, addr, alen, buffer, len); in i2c_read()
301 return I2C_ADAP->write(I2C_ADAP, chip, addr, alen, buffer, len); in i2c_write()
308 if (I2C_ADAP->set_bus_speed == NULL) in i2c_set_bus_speed()
310 ret = I2C_ADAP->set_bus_speed(I2C_ADAP, speed); in i2c_set_bus_speed()
312 I2C_ADAP->speed = (ret == 0) ? speed : 0; in i2c_set_bus_speed()
319 struct i2c_adapter *cur = I2C_ADAP; in i2c_get_bus_speed()