Lines Matching defs:ops
21 #define SET_SDA(ops, val) ops->set_sda(ops->data, val) argument
22 #define SET_SCL(ops, val) ops->set_scl(ops->data, val) argument
23 #define GET_SDA(ops) ops->get_sda(ops->data) argument
24 #define GET_SCL(ops) ops->get_scl(ops->data) argument
26 rt_inline void i2c_delay(struct rt_i2c_bit_ops *ops) in i2c_delay()
31 rt_inline void i2c_delay2(struct rt_i2c_bit_ops *ops) in i2c_delay2()
36 #define SDA_L(ops) SET_SDA(ops, 0) argument
37 #define SDA_H(ops) SET_SDA(ops, 1) argument
38 #define SCL_L(ops) SET_SCL(ops, 0) argument
43 static rt_err_t SCL_H(struct rt_i2c_bit_ops *ops) in SCL_H()
73 static void i2c_start(struct rt_i2c_bit_ops *ops) in i2c_start()
90 static void i2c_restart(struct rt_i2c_bit_ops *ops) in i2c_restart()
100 static void i2c_stop(struct rt_i2c_bit_ops *ops) in i2c_stop()
110 rt_inline rt_bool_t i2c_waitack(struct rt_i2c_bit_ops *ops) in i2c_waitack()
137 struct rt_i2c_bit_ops *ops = (struct rt_i2c_bit_ops *)bus->priv; in i2c_writeb() local
164 struct rt_i2c_bit_ops *ops = (struct rt_i2c_bit_ops *)bus->priv; in i2c_readb() local
227 struct rt_i2c_bit_ops *ops = (struct rt_i2c_bit_ops *)bus->priv; in i2c_send_ack_or_nack() local
287 struct rt_i2c_bit_ops *ops = (struct rt_i2c_bit_ops *)bus->priv; in i2c_send_address() local
311 struct rt_i2c_bit_ops *ops = (struct rt_i2c_bit_ops *)bus->priv; in i2c_bit_send_address() local
374 struct rt_i2c_bit_ops *ops = (struct rt_i2c_bit_ops *)bus->priv; in i2c_bit_xfer() local