Lines Matching refs:msgs
26 __maybe_unused static bool emul_bmi160_i2c_is_touching_reg(struct i2c_msg *msgs, int num_msgs, in emul_bmi160_i2c_is_touching_reg() argument
32 if (msgs[0].len != 1) { in emul_bmi160_i2c_is_touching_reg()
35 if (i2c_is_read_op(msgs)) { in emul_bmi160_i2c_is_touching_reg()
39 uint8_t start_reg = msgs[0].buf[0]; in emul_bmi160_i2c_is_touching_reg()
40 uint8_t read_len = msgs[1].len; in emul_bmi160_i2c_is_touching_reg()
54 __maybe_unused static bool emul_bmi160_i2c_is_reading_reg(struct i2c_msg *msgs, int num_msgs, in emul_bmi160_i2c_is_reading_reg() argument
57 if (!emul_bmi160_i2c_is_touching_reg(msgs, num_msgs, reg)) { in emul_bmi160_i2c_is_reading_reg()
60 return i2c_is_read_op(&msgs[1]); in emul_bmi160_i2c_is_reading_reg()
72 __maybe_unused static bool emul_bmi160_i2c_is_writing_reg(struct i2c_msg *msgs, int num_msgs, in emul_bmi160_i2c_is_writing_reg() argument
75 if (!emul_bmi160_i2c_is_touching_reg(msgs, num_msgs, reg)) { in emul_bmi160_i2c_is_writing_reg()
78 return !i2c_is_read_op(&msgs[1]); in emul_bmi160_i2c_is_writing_reg()