Lines Matching refs:adap
736 struct mxc_i2c_bus *i2c_get_base(struct i2c_adapter *adap) in i2c_get_base() argument
738 return &mxc_i2c_buses[adap->hwadapnr]; in i2c_get_base()
741 static int mxc_i2c_read(struct i2c_adapter *adap, uint8_t chip, in mxc_i2c_read() argument
745 return bus_i2c_read(i2c_get_base(adap), chip, addr, alen, buffer, len); in mxc_i2c_read()
748 static int mxc_i2c_write(struct i2c_adapter *adap, uint8_t chip, in mxc_i2c_write() argument
752 return bus_i2c_write(i2c_get_base(adap), chip, addr, alen, buffer, len); in mxc_i2c_write()
758 static int mxc_i2c_probe(struct i2c_adapter *adap, uint8_t chip) in mxc_i2c_probe() argument
760 return bus_i2c_write(i2c_get_base(adap), chip, 0, 0, NULL, 0); in mxc_i2c_probe()
806 static void mxc_i2c_init(struct i2c_adapter *adap, int speed, int slaveaddr) in mxc_i2c_init() argument
808 bus_i2c_init(adap->hwadapnr, speed, slaveaddr, NULL, NULL); in mxc_i2c_init()
814 static u32 mxc_i2c_set_bus_speed(struct i2c_adapter *adap, uint speed) in mxc_i2c_set_bus_speed() argument
816 return bus_i2c_set_bus_speed(i2c_get_base(adap), speed); in mxc_i2c_set_bus_speed()