Lines Matching defs:ops
19 #define SET_SDA(ops, val) ops->set_sda(ops->data, val) argument
20 #define SET_SCL(ops, val) ops->set_scl(ops->data, val) argument
21 #define GET_SDA(ops) ops->get_sda(ops->data) argument
22 #define GET_SCL(ops) ops->get_scl(ops->data) argument
24 rt_inline void i2c_delay(struct rt_i2c_bit_ops *ops) in i2c_delay()
29 rt_inline void i2c_delay2(struct rt_i2c_bit_ops *ops) in i2c_delay2()
34 #define SDA_L(ops) SET_SDA(ops, 0) argument
35 #define SDA_H(ops) SET_SDA(ops, 1) argument
36 #define SCL_L(ops) SET_SCL(ops, 0) argument
41 static rt_err_t SCL_H(struct rt_i2c_bit_ops *ops) in SCL_H()
71 static void i2c_start(struct rt_i2c_bit_ops *ops) in i2c_start()
88 static void i2c_restart(struct rt_i2c_bit_ops *ops) in i2c_restart()
98 static void i2c_stop(struct rt_i2c_bit_ops *ops) in i2c_stop()
108 rt_inline rt_bool_t i2c_waitack(struct rt_i2c_bit_ops *ops) in i2c_waitack()
135 struct rt_i2c_bit_ops *ops = bus->priv; in i2c_writeb() local
162 struct rt_i2c_bit_ops *ops = bus->priv; in i2c_readb() local
225 struct rt_i2c_bit_ops *ops = bus->priv; in i2c_send_ack_or_nack() local
285 struct rt_i2c_bit_ops *ops = bus->priv; in i2c_send_address() local
309 struct rt_i2c_bit_ops *ops = bus->priv; in i2c_bit_send_address() local
372 struct rt_i2c_bit_ops *ops = bus->priv; in i2c_bit_xfer() local