Lines Matching refs:adap
344 static struct i2c_regs *davinci_get_base(struct i2c_adapter *adap) in davinci_get_base() argument
346 switch (adap->hwadapnr) { in davinci_get_base()
359 printf("wrong hwadapnr: %d\n", adap->hwadapnr); in davinci_get_base()
365 static uint davinci_i2c_setspeed(struct i2c_adapter *adap, uint speed) in davinci_i2c_setspeed() argument
367 struct i2c_regs *i2c_base = davinci_get_base(adap); in davinci_i2c_setspeed()
370 adap->speed = speed; in davinci_i2c_setspeed()
376 static void davinci_i2c_init(struct i2c_adapter *adap, int speed, in davinci_i2c_init() argument
379 struct i2c_regs *i2c_base = davinci_get_base(adap); in davinci_i2c_init()
381 adap->speed = speed; in davinci_i2c_init()
387 static int davinci_i2c_read(struct i2c_adapter *adap, uint8_t chip, in davinci_i2c_read() argument
390 struct i2c_regs *i2c_base = davinci_get_base(adap); in davinci_i2c_read()
394 static int davinci_i2c_write(struct i2c_adapter *adap, uint8_t chip, in davinci_i2c_write() argument
397 struct i2c_regs *i2c_base = davinci_get_base(adap); in davinci_i2c_write()
402 static int davinci_i2c_probe_chip(struct i2c_adapter *adap, uint8_t chip) in davinci_i2c_probe_chip() argument
404 struct i2c_regs *i2c_base = davinci_get_base(adap); in davinci_i2c_probe_chip()