Lines Matching defs:i2c_bus
136 static uint8_t i2c_imx_get_clk(struct mxc_i2c_bus *i2c_bus, unsigned int rate) in i2c_imx_get_clk()
174 static int bus_i2c_set_bus_speed(struct mxc_i2c_bus *i2c_bus, int speed) in bus_i2c_set_bus_speed()
198 static int wait_for_sr_state(struct mxc_i2c_bus *i2c_bus, unsigned state) in wait_for_sr_state()
232 static int tx_byte(struct mxc_i2c_bus *i2c_bus, u8 byte) in tx_byte()
262 static void i2c_imx_stop(struct mxc_i2c_bus *i2c_bus) in i2c_imx_stop()
281 static int i2c_init_transfer_(struct mxc_i2c_bus *i2c_bus, u8 chip, in i2c_init_transfer_()
341 int i2c_idle_bus(struct mxc_i2c_bus *i2c_bus) in i2c_idle_bus()
359 int i2c_idle_bus(struct mxc_i2c_bus *i2c_bus) in i2c_idle_bus()
434 static int i2c_init_transfer(struct mxc_i2c_bus *i2c_bus, u8 chip, in i2c_init_transfer()
467 static int i2c_write_data(struct mxc_i2c_bus *i2c_bus, u8 chip, const u8 *buf, in i2c_write_data()
495 static int i2c_read_data(struct mxc_i2c_bus *i2c_bus, uchar chip, uchar *buf, in i2c_read_data()
597 static int bus_i2c_read(struct mxc_i2c_bus *i2c_bus, u8 chip, u32 addr, in bus_i2c_read()
645 static int bus_i2c_write(struct mxc_i2c_bus *i2c_bus, u8 chip, u32 addr, in bus_i2c_write()