Lines Matching refs:i2c_regs
27 struct i2c_regs *regs;
39 static int _wait_for_bus(struct i2c_regs *i2c_base) in _wait_for_bus()
60 static int _poll_i2c_irq(struct i2c_regs *i2c_base, int mask) in _poll_i2c_irq()
75 static void _flush_rx(struct i2c_regs *i2c_base) in _flush_rx()
87 static uint _davinci_i2c_setspeed(struct i2c_regs *i2c_base, in _davinci_i2c_setspeed()
102 static void _davinci_i2c_init(struct i2c_regs *i2c_base, in _davinci_i2c_init()
125 static int _davinci_i2c_read(struct i2c_regs *i2c_base, uint8_t chip, in _davinci_i2c_read()
223 static int _davinci_i2c_write(struct i2c_regs *i2c_base, uint8_t chip, in _davinci_i2c_write()
305 static int _davinci_i2c_probe_chip(struct i2c_regs *i2c_base, uint8_t chip) in _davinci_i2c_probe_chip()
342 static struct i2c_regs *davinci_get_base(struct i2c_adapter *adap) in davinci_get_base()
347 return (struct i2c_regs *)I2C2_BASE; in davinci_get_base()
351 return (struct i2c_regs *)I2C1_BASE; in davinci_get_base()
354 return (struct i2c_regs *)I2C_BASE; in davinci_get_base()
365 struct i2c_regs *i2c_base = davinci_get_base(adap); in davinci_i2c_setspeed()
377 struct i2c_regs *i2c_base = davinci_get_base(adap); in davinci_i2c_init()
388 struct i2c_regs *i2c_base = davinci_get_base(adap); in davinci_i2c_read()
395 struct i2c_regs *i2c_base = davinci_get_base(adap); in davinci_i2c_write()
402 struct i2c_regs *i2c_base = davinci_get_base(adap); in davinci_i2c_probe_chip()
472 i2c_bus->regs = (struct i2c_regs *)devfdt_get_addr(dev);