Lines Matching refs:msgs
22 struct rtio_sqe *i3c_rtio_copy(struct rtio *r, struct rtio_iodev *iodev, const struct i3c_msg *msgs, in i3c_rtio_copy() argument
37 if (msgs[i].flags & I3C_MSG_READ) { in i3c_rtio_copy()
38 rtio_sqe_prep_read(sqe, iodev, RTIO_PRIO_NORM, msgs[i].buf, msgs[i].len, in i3c_rtio_copy()
41 rtio_sqe_prep_write(sqe, iodev, RTIO_PRIO_NORM, msgs[i].buf, msgs[i].len, in i3c_rtio_copy()
46 ((msgs[i].flags & I3C_MSG_STOP) ? RTIO_IODEV_I3C_STOP : 0) | in i3c_rtio_copy()
47 ((msgs[i].flags & I3C_MSG_RESTART) ? RTIO_IODEV_I3C_RESTART : 0) | in i3c_rtio_copy()
48 ((msgs[i].flags & I3C_MSG_HDR) ? RTIO_IODEV_I3C_HDR : 0) | in i3c_rtio_copy()
49 ((msgs[i].flags & I3C_MSG_NBCH) ? RTIO_IODEV_I3C_NBCH : 0) | in i3c_rtio_copy()
50 RTIO_IODEV_I3C_HDR_MODE_SET(msgs[i].hdr_mode) | in i3c_rtio_copy()
51 RTIO_IODEV_I3C_HDR_CMD_CODE_SET(msgs[i].hdr_cmd_code); in i3c_rtio_copy()
126 int i3c_rtio_transfer(struct i3c_rtio *ctx, struct i3c_msg *msgs, uint8_t num_msgs, in i3c_rtio_transfer() argument
139 sqe = i3c_rtio_copy(r, iodev, msgs, num_msgs); in i3c_rtio_transfer()