Lines Matching refs:ops
51 #define SETBITS(x) ops->ibo_set_bits(v, (x))
52 #define DIR(x) ops->ibo_set_dir(v, (x))
53 #define READ ops->ibo_read_bits(v)
55 #define SDA ops->ibo_bits[I2C_BIT_SDA] /* i2c signal */
56 #define SCL ops->ibo_bits[I2C_BIT_SCL] /* i2c signal */
57 #define OUTPUT ops->ibo_bits[I2C_BIT_OUTPUT] /* SDA is output */
58 #define INPUT ops->ibo_bits[I2C_BIT_INPUT] /* SDA is input */
67 i2c_wait_for_scl(void *v, i2c_bitbang_ops_t ops)
76 i2c_bitbang_send_stop(v, 0, ops);
84 i2c_bitbang_send_start(void *v, int flags, i2c_bitbang_ops_t ops)
93 if (i2c_wait_for_scl(v, ops) != 0)
105 i2c_bitbang_send_stop(void *v, int flags, i2c_bitbang_ops_t ops)
121 i2c_bitbang_ops_t ops)
131 (void) i2c_bitbang_send_start(v, flags, ops);
134 flags & ~I2C_F_STOP, ops));
143 (void) i2c_bitbang_send_start(v, flags, ops);
145 flags & ~I2C_F_STOP, ops);
152 flags & ~I2C_F_STOP, ops));
159 i2c_bitbang_read_byte(void *v, uint8_t *valp, int flags, i2c_bitbang_ops_t ops)
179 if (i2c_wait_for_scl(v, ops) != 0)
196 if (i2c_wait_for_scl(v, ops) != 0)
208 (void) i2c_bitbang_send_stop(v, flags, ops);
215 i2c_bitbang_write_byte(void *v, uint8_t val, int flags, i2c_bitbang_ops_t ops)
234 if (i2c_wait_for_scl(v, ops))
249 if (i2c_wait_for_scl(v, ops) != 0)
261 (void) i2c_bitbang_send_stop(v, flags, ops);