Lines Matching refs:adap
195 static struct mvtwsi_registers *twsi_get_base(struct i2c_adapter *adap) in twsi_get_base() argument
197 switch (adap->hwadapnr) { in twsi_get_base()
223 printf("Missing mvtwsi controller %d base\n", adap->hwadapnr); in twsi_get_base()
687 static void twsi_i2c_init(struct i2c_adapter *adap, int speed, in twsi_i2c_init() argument
690 struct mvtwsi_registers *twsi = twsi_get_base(adap); in twsi_i2c_init()
694 static uint twsi_i2c_set_bus_speed(struct i2c_adapter *adap, in twsi_i2c_set_bus_speed() argument
697 struct mvtwsi_registers *twsi = twsi_get_base(adap); in twsi_i2c_set_bus_speed()
702 static int twsi_i2c_probe(struct i2c_adapter *adap, uchar chip) in twsi_i2c_probe() argument
704 struct mvtwsi_registers *twsi = twsi_get_base(adap); in twsi_i2c_probe()
708 static int twsi_i2c_read(struct i2c_adapter *adap, uchar chip, uint addr, in twsi_i2c_read() argument
711 struct mvtwsi_registers *twsi = twsi_get_base(adap); in twsi_i2c_read()
723 static int twsi_i2c_write(struct i2c_adapter *adap, uchar chip, uint addr, in twsi_i2c_write() argument
726 struct mvtwsi_registers *twsi = twsi_get_base(adap); in twsi_i2c_write()