Lines Matching refs:adap
189 * @adap: Adapter to get the register base for.
192 static struct mvtwsi_registers *twsi_get_base(struct i2c_adapter *adap)
194 switch (adap->hwadapnr) {
220 printf("Missing mvtwsi controller %d base\n", adap->hwadapnr);
673 static void twsi_i2c_init(struct i2c_adapter *adap, int speed,
676 struct mvtwsi_registers *twsi = twsi_get_base(adap);
680 static uint twsi_i2c_set_bus_speed(struct i2c_adapter *adap,
683 struct mvtwsi_registers *twsi = twsi_get_base(adap);
688 static int twsi_i2c_probe(struct i2c_adapter *adap, uchar chip)
690 struct mvtwsi_registers *twsi = twsi_get_base(adap);
694 static int twsi_i2c_read(struct i2c_adapter *adap, uchar chip, uint addr,
697 struct mvtwsi_registers *twsi = twsi_get_base(adap);
709 static int twsi_i2c_write(struct i2c_adapter *adap, uchar chip, uint addr,
712 struct mvtwsi_registers *twsi = twsi_get_base(adap);