Lines Matching refs:smt_hdr
111 struct smt_header *smt_hdr; in scmi_proccess_smt() local
122 smt_hdr = channel_to_smt_hdr(chan); in scmi_proccess_smt()
123 assert(smt_hdr); in scmi_proccess_smt()
125 smt_status = __atomic_load_n(&smt_hdr->status, __ATOMIC_RELAXED); in scmi_proccess_smt()
132 in_payload_size = __atomic_load_n(&smt_hdr->length, __ATOMIC_RELAXED) - in scmi_proccess_smt()
133 sizeof(smt_hdr->message_header); in scmi_proccess_smt()
142 smt_hdr->status & (SMT_STATUS_ERROR | SMT_STATUS_FREE)); in scmi_proccess_smt()
150 msg.out = (char *)smt_hdr->payload; in scmi_proccess_smt()
151 msg.out_size = chan->shm_size - sizeof(*smt_hdr); in scmi_proccess_smt()
156 memcpy(msg.in, smt_hdr->payload, in_payload_size); in scmi_proccess_smt()
158 msg.protocol_id = SMT_HDR_PROT_ID(smt_hdr->message_header); in scmi_proccess_smt()
159 msg.message_id = SMT_HDR_MSG_ID(smt_hdr->message_header); in scmi_proccess_smt()
165 smt_hdr->length = msg.out_size_out + sizeof(smt_hdr->message_header); in scmi_proccess_smt()
173 smt_hdr->status |= SMT_STATUS_ERROR | SMT_STATUS_FREE; in scmi_proccess_smt()
175 smt_hdr->status |= SMT_STATUS_FREE; in scmi_proccess_smt()