Lines Matching refs:num_msgs
34 uint8_t num_msgs; member
236 static inline int i2c_smartbond_set_msg_flags(struct i2c_msg *msgs, uint8_t num_msgs) in i2c_smartbond_set_msg_flags() argument
241 for (uint8_t i = 1; i <= num_msgs; i++) { in i2c_smartbond_set_msg_flags()
242 if (i < num_msgs) { in i2c_smartbond_set_msg_flags()
258 uint8_t num_msgs, uint16_t addr) in i2c_smartbond_prep_transfer() argument
264 ret = i2c_smartbond_set_msg_flags(msgs, num_msgs); in i2c_smartbond_prep_transfer()
272 data->num_msgs = num_msgs; in i2c_smartbond_prep_transfer()
342 static int i2c_smartbond_transfer(const struct device *dev, struct i2c_msg *msgs, uint8_t num_msgs, in i2c_smartbond_transfer() argument
352 ret = i2c_smartbond_prep_transfer(dev, msgs, num_msgs, addr); in i2c_smartbond_transfer()
357 for (; data->num_msgs > 0; data->num_msgs--, data->msgs++) { in i2c_smartbond_transfer()
419 uint8_t num_msgs, uint16_t addr, i2c_callback_t cb, in i2c_smartbond_transfer_cb() argument
441 ret = i2c_smartbond_prep_transfer(dev, msgs, num_msgs, addr); in i2c_smartbond_transfer_cb()
491 data->num_msgs--; in i2c_smartbond_async_msg_done()
492 if (data->num_msgs > 0) { in i2c_smartbond_async_msg_done()