Lines Matching refs:hdr
65 struct scmi_smt_header *hdr = (void *)smt->buf; in scmi_write_msg_to_smt() local
71 if (!(hdr->channel_status & SCMI_SHMEM_CHAN_STAT_CHANNEL_FREE)) { in scmi_write_msg_to_smt()
76 if (smt->size < (sizeof(*hdr) + msg->in_msg_sz) || in scmi_write_msg_to_smt()
77 smt->size < (sizeof(*hdr) + msg->out_msg_sz)) { in scmi_write_msg_to_smt()
83 hdr->channel_status &= ~SCMI_SHMEM_CHAN_STAT_CHANNEL_FREE; in scmi_write_msg_to_smt()
84 hdr->length = msg->in_msg_sz + sizeof(hdr->msg_header); in scmi_write_msg_to_smt()
85 hdr->msg_header = SMT_HEADER_TOKEN(0) | in scmi_write_msg_to_smt()
90 memcpy_toio(hdr->msg_payload, msg->in_msg, msg->in_msg_sz); in scmi_write_msg_to_smt()
102 struct scmi_smt_header *hdr = (void *)smt->buf; in scmi_read_resp_from_smt() local
104 if (!(hdr->channel_status & SCMI_SHMEM_CHAN_STAT_CHANNEL_FREE)) { in scmi_read_resp_from_smt()
109 if (hdr->channel_status & SCMI_SHMEM_CHAN_STAT_CHANNEL_ERROR) { in scmi_read_resp_from_smt()
114 if (hdr->length > msg->out_msg_sz + sizeof(hdr->msg_header)) { in scmi_read_resp_from_smt()
120 msg->out_msg_sz = hdr->length - sizeof(hdr->msg_header); in scmi_read_resp_from_smt()
121 memcpy_fromio(msg->out_msg, hdr->msg_payload, msg->out_msg_sz); in scmi_read_resp_from_smt()
131 struct scmi_smt_header *hdr = (void *)smt->buf; in scmi_clear_smt_channel() local
133 hdr->channel_status &= ~SCMI_SHMEM_CHAN_STAT_CHANNEL_ERROR; in scmi_clear_smt_channel()