Lines Matching refs:sh_i2c
18 struct sh_i2c { struct
47 static const struct sh_i2c *i2c_dev[CONFIG_SYS_I2C_SH_NUM_CONTROLLERS] = {
48 (struct sh_i2c *)CONFIG_SYS_I2C_SH_BASE0,
50 (struct sh_i2c *)CONFIG_SYS_I2C_SH_BASE1,
53 (struct sh_i2c *)CONFIG_SYS_I2C_SH_BASE2,
56 (struct sh_i2c *)CONFIG_SYS_I2C_SH_BASE3,
59 (struct sh_i2c *)CONFIG_SYS_I2C_SH_BASE4,
67 static void sh_irq_dte(struct sh_i2c *dev) in sh_irq_dte()
78 static int sh_irq_dte_with_tack(struct sh_i2c *dev) in sh_irq_dte_with_tack()
92 static void sh_irq_busy(struct sh_i2c *dev) in sh_irq_busy()
103 static int sh_i2c_set_addr(struct sh_i2c *dev, u8 chip, u8 addr, int stop) in sh_i2c_set_addr()
139 static void sh_i2c_finish(struct sh_i2c *dev) in sh_i2c_finish()
146 sh_i2c_raw_write(struct sh_i2c *dev, u8 chip, uint addr, u8 val) in sh_i2c_raw_write()
168 static int sh_i2c_raw_read(struct sh_i2c *dev, u8 chip, u8 addr) in sh_i2c_raw_read()
243 struct sh_i2c *dev = (struct sh_i2c *)i2c_dev[adap->hwadapnr]; in sh_i2c_read()
260 struct sh_i2c *dev = (struct sh_i2c *)i2c_dev[adap->hwadapnr]; in sh_i2c_write()
282 struct sh_i2c *dev = (struct sh_i2c *)i2c_dev[adap->hwadapnr]; in sh_i2c_set_bus_speed()