Lines Matching refs:mvtwsi_registers
53 struct mvtwsi_registers { struct
66 struct mvtwsi_registers { struct
86 struct mvtwsi_registers *base; argument
192 static struct mvtwsi_registers *twsi_get_base(struct i2c_adapter *adap) in twsi_get_base()
197 return (struct mvtwsi_registers *)CONFIG_I2C_MVTWSI_BASE0; in twsi_get_base()
201 return (struct mvtwsi_registers *)CONFIG_I2C_MVTWSI_BASE1; in twsi_get_base()
205 return (struct mvtwsi_registers *)CONFIG_I2C_MVTWSI_BASE2; in twsi_get_base()
209 return (struct mvtwsi_registers *)CONFIG_I2C_MVTWSI_BASE3; in twsi_get_base()
213 return (struct mvtwsi_registers *)CONFIG_I2C_MVTWSI_BASE4; in twsi_get_base()
217 return (struct mvtwsi_registers *)CONFIG_I2C_MVTWSI_BASE5; in twsi_get_base()
265 static int twsi_wait(struct mvtwsi_registers *twsi, int expected_status, in twsi_wait()
302 static int twsi_start(struct mvtwsi_registers *twsi, int expected_status, in twsi_start()
325 static int twsi_send(struct mvtwsi_registers *twsi, u8 byte, in twsi_send()
350 static int twsi_recv(struct mvtwsi_registers *twsi, u8 *byte, int ack_flag, in twsi_recv()
381 static int twsi_stop(struct mvtwsi_registers *twsi, uint tick) in twsi_stop()
428 static void twsi_reset(struct mvtwsi_registers *twsi) in twsi_reset()
447 static uint __twsi_i2c_set_bus_speed(struct mvtwsi_registers *twsi, in __twsi_i2c_set_bus_speed()
490 static void __twsi_i2c_init(struct mvtwsi_registers *twsi, int speed, in __twsi_i2c_init()
529 static int i2c_begin(struct mvtwsi_registers *twsi, int expected_start_status, in i2c_begin()
561 static int __twsi_i2c_probe_chip(struct mvtwsi_registers *twsi, uchar chip, in __twsi_i2c_probe_chip()
600 static int __twsi_i2c_read(struct mvtwsi_registers *twsi, uchar chip, in __twsi_i2c_read()
649 static int __twsi_i2c_write(struct mvtwsi_registers *twsi, uchar chip, in __twsi_i2c_write()
676 struct mvtwsi_registers *twsi = twsi_get_base(adap); in twsi_i2c_init()
683 struct mvtwsi_registers *twsi = twsi_get_base(adap); in twsi_i2c_set_bus_speed()
690 struct mvtwsi_registers *twsi = twsi_get_base(adap); in twsi_i2c_probe()
697 struct mvtwsi_registers *twsi = twsi_get_base(adap); in twsi_i2c_read()
712 struct mvtwsi_registers *twsi = twsi_get_base(adap); in twsi_i2c_write()
802 static void twsi_disable_i2c_slave(struct mvtwsi_registers *twsi)
809 struct mvtwsi_registers *twsi = devfdt_get_addr_ptr(bus);