Lines Matching refs:adap
342 static struct i2c_regs *davinci_get_base(struct i2c_adapter *adap) in davinci_get_base() argument
344 switch (adap->hwadapnr) { in davinci_get_base()
357 printf("wrong hwadapnr: %d\n", adap->hwadapnr); in davinci_get_base()
363 static uint davinci_i2c_setspeed(struct i2c_adapter *adap, uint speed) in davinci_i2c_setspeed() argument
365 struct i2c_regs *i2c_base = davinci_get_base(adap); in davinci_i2c_setspeed()
368 adap->speed = speed; in davinci_i2c_setspeed()
374 static void davinci_i2c_init(struct i2c_adapter *adap, int speed, in davinci_i2c_init() argument
377 struct i2c_regs *i2c_base = davinci_get_base(adap); in davinci_i2c_init()
379 adap->speed = speed; in davinci_i2c_init()
385 static int davinci_i2c_read(struct i2c_adapter *adap, uint8_t chip, in davinci_i2c_read() argument
388 struct i2c_regs *i2c_base = davinci_get_base(adap); in davinci_i2c_read()
392 static int davinci_i2c_write(struct i2c_adapter *adap, uint8_t chip, in davinci_i2c_write() argument
395 struct i2c_regs *i2c_base = davinci_get_base(adap); in davinci_i2c_write()
400 static int davinci_i2c_probe_chip(struct i2c_adapter *adap, uint8_t chip) in davinci_i2c_probe_chip() argument
402 struct i2c_regs *i2c_base = davinci_get_base(adap); in davinci_i2c_probe_chip()