Lines Matching refs:rcar_i2c
19 struct rcar_i2c { struct
54 static const struct rcar_i2c *i2c_dev[CONFIF_SYS_RCAR_I2C_NUM_CONTROLLERS] = { argument
55 (struct rcar_i2c *)CONFIG_SYS_RCAR_I2C0_BASE,
56 (struct rcar_i2c *)CONFIG_SYS_RCAR_I2C1_BASE,
57 (struct rcar_i2c *)CONFIG_SYS_RCAR_I2C2_BASE,
58 (struct rcar_i2c *)CONFIG_SYS_RCAR_I2C3_BASE,
61 static void rcar_i2c_raw_rw_common(struct rcar_i2c *dev, u8 chip, uint addr) in rcar_i2c_raw_rw_common()
85 static void rcar_i2c_raw_rw_finish(struct rcar_i2c *dev) in rcar_i2c_raw_rw_finish()
94 rcar_i2c_raw_write(struct rcar_i2c *dev, u8 chip, uint addr, u8 *val, int size) in rcar_i2c_raw_write()
117 rcar_i2c_raw_read(struct rcar_i2c *dev, u8 chip, uint addr) in rcar_i2c_raw_read()
206 struct rcar_i2c *dev = (struct rcar_i2c *)i2c_dev[adap->hwadapnr]; in rcar_i2c_init()
238 struct rcar_i2c *dev = (struct rcar_i2c *)i2c_dev[adap->hwadapnr]; in rcar_i2c_read()
250 struct rcar_i2c *dev = (struct rcar_i2c *)i2c_dev[adap->hwadapnr]; in rcar_i2c_write()
263 struct rcar_i2c *dev = (struct rcar_i2c *)i2c_dev[adap->hwadapnr]; in rcar_i2c_set_bus_speed()