Lines Matching refs:sh_i2c
19 struct sh_i2c { struct
48 static const struct sh_i2c *i2c_dev[CONFIG_SYS_I2C_SH_NUM_CONTROLLERS] = {
49 (struct sh_i2c *)CONFIG_SYS_I2C_SH_BASE0,
51 (struct sh_i2c *)CONFIG_SYS_I2C_SH_BASE1,
54 (struct sh_i2c *)CONFIG_SYS_I2C_SH_BASE2,
57 (struct sh_i2c *)CONFIG_SYS_I2C_SH_BASE3,
60 (struct sh_i2c *)CONFIG_SYS_I2C_SH_BASE4,
68 static void sh_irq_dte(struct sh_i2c *dev) in sh_irq_dte()
79 static int sh_irq_dte_with_tack(struct sh_i2c *dev) in sh_irq_dte_with_tack()
93 static void sh_irq_busy(struct sh_i2c *dev) in sh_irq_busy()
104 static int sh_i2c_set_addr(struct sh_i2c *dev, u8 chip, u8 addr, int stop) in sh_i2c_set_addr()
140 static void sh_i2c_finish(struct sh_i2c *dev) in sh_i2c_finish()
147 sh_i2c_raw_write(struct sh_i2c *dev, u8 chip, uint addr, u8 val) in sh_i2c_raw_write()
169 static int sh_i2c_raw_read(struct sh_i2c *dev, u8 chip, u8 addr) in sh_i2c_raw_read()
244 struct sh_i2c *dev = (struct sh_i2c *)i2c_dev[adap->hwadapnr]; in sh_i2c_read()
261 struct sh_i2c *dev = (struct sh_i2c *)i2c_dev[adap->hwadapnr]; in sh_i2c_write()
283 struct sh_i2c *dev = (struct sh_i2c *)i2c_dev[adap->hwadapnr]; in sh_i2c_set_bus_speed()