Lines Matching refs:xfer
33 static size_t msg_command_size(struct scmi_xfer *xfer) in msg_command_size() argument
35 return sizeof(struct scmi_msg_payld) + xfer->tx.len; in msg_command_size()
45 static size_t msg_response_size(struct scmi_xfer *xfer) in msg_response_size() argument
47 return sizeof(struct scmi_msg_payld) + sizeof(__le32) + xfer->rx.len; in msg_response_size()
56 static void msg_tx_prepare(struct scmi_msg_payld *msg, struct scmi_xfer *xfer) in msg_tx_prepare() argument
58 msg->msg_header = cpu_to_le32(pack_scmi_header(&xfer->hdr)); in msg_tx_prepare()
59 if (xfer->tx.buf) in msg_tx_prepare()
60 memcpy(msg->msg_payload, xfer->tx.buf, xfer->tx.len); in msg_tx_prepare()
83 size_t len, struct scmi_xfer *xfer) in msg_fetch_response() argument
87 xfer->hdr.status = le32_to_cpu(msg->msg_payload[0]); in msg_fetch_response()
88 xfer->rx.len = min_t(size_t, xfer->rx.len, in msg_fetch_response()
92 memcpy(xfer->rx.buf, &msg->msg_payload[1], xfer->rx.len); in msg_fetch_response()
104 size_t max_len, struct scmi_xfer *xfer) in msg_fetch_notification() argument
106 xfer->rx.len = min_t(size_t, max_len, in msg_fetch_notification()
110 memcpy(xfer->rx.buf, msg->msg_payload, xfer->rx.len); in msg_fetch_notification()