Lines Matching refs:adap
397 static struct i2c_regs *i2c_get_base(struct i2c_adapter *adap) in i2c_get_base() argument
399 switch (adap->hwadapnr) { in i2c_get_base()
415 printf("Wrong I2C-adapter number %d\n", adap->hwadapnr); in i2c_get_base()
421 static unsigned int dw_i2c_set_bus_speed(struct i2c_adapter *adap, in dw_i2c_set_bus_speed() argument
424 adap->speed = speed; in dw_i2c_set_bus_speed()
425 return __dw_i2c_set_bus_speed(i2c_get_base(adap), NULL, speed); in dw_i2c_set_bus_speed()
428 static void dw_i2c_init(struct i2c_adapter *adap, int speed, int slaveaddr) in dw_i2c_init() argument
430 __dw_i2c_init(i2c_get_base(adap), speed, slaveaddr); in dw_i2c_init()
433 static int dw_i2c_read(struct i2c_adapter *adap, u8 dev, uint addr, in dw_i2c_read() argument
436 return __dw_i2c_read(i2c_get_base(adap), dev, addr, alen, buffer, len); in dw_i2c_read()
439 static int dw_i2c_write(struct i2c_adapter *adap, u8 dev, uint addr, in dw_i2c_write() argument
442 return __dw_i2c_write(i2c_get_base(adap), dev, addr, alen, buffer, len); in dw_i2c_write()
446 static int dw_i2c_probe(struct i2c_adapter *adap, u8 dev) in dw_i2c_probe() argument
448 struct i2c_regs *i2c_base = i2c_get_base(adap); in dw_i2c_probe()
457 dw_i2c_init(adap, adap->speed, adap->slaveaddr); in dw_i2c_probe()