Lines Matching full:header
62 struct intel_gsc_mtl_header *header = exec_res->pkt_vaddr; in gsccs_send_message() local
71 max_msg_size = PXP43_MAX_HECI_INOUT_SIZE - sizeof(*header); in gsccs_send_message()
83 memset(header, 0, sizeof(*header)); in gsccs_send_message()
84 intel_gsc_uc_heci_cmd_emit_mtl_header(header, HECI_MEADDRESS_PXP, in gsccs_send_message()
85 msg_in_size + sizeof(*header), in gsccs_send_message()
90 header->flags |= GSC_INFLAG_MSG_CLEANUP; in gsccs_send_message()
93 header->gsc_message_handle = *gsc_msg_handle_retry; in gsccs_send_message()
97 memcpy(exec_res->pkt_vaddr + sizeof(*header), msg_in, msg_in_size); in gsccs_send_message()
100 pkt.size_in = header->message_size; in gsccs_send_message()
102 pkt.size_out = msg_out_size_max + sizeof(*header); in gsccs_send_message()
108 * We use offset PXP43_MAX_HECI_INOUT_SIZE for reply location so point header there. in gsccs_send_message()
110 header = exec_res->pkt_vaddr + PXP43_MAX_HECI_INOUT_SIZE; in gsccs_send_message()
111 header->validity_marker = 0; in gsccs_send_message()
122 if (header->validity_marker != GSC_HECI_VALIDITY_MARKER) { in gsccs_send_message()
127 if (header->status != 0) { in gsccs_send_message()
129 header->status); in gsccs_send_message()
133 if (header->flags & GSC_OUTFLAG_MSG_PENDING) { in gsccs_send_message()
141 *gsc_msg_handle_retry = header->gsc_message_handle; in gsccs_send_message()
146 reply_size = header->message_size - sizeof(*header); in gsccs_send_message()
154 memcpy(msg_out, exec_res->pkt_vaddr + PXP43_MAX_HECI_INOUT_SIZE + sizeof(*header), in gsccs_send_message()
216 msg_in.header.api_version = PXP_APIVER(4, 3); in intel_pxp_gsccs_create_session()
217 msg_in.header.command_id = PXP43_CMDID_INIT_SESSION; in intel_pxp_gsccs_create_session()
218 msg_in.header.stream_id = (FIELD_PREP(PXP43_INIT_SESSION_APPID, arb_session_id) | in intel_pxp_gsccs_create_session()
221 msg_in.header.buffer_len = sizeof(msg_in) - sizeof(msg_in.header); in intel_pxp_gsccs_create_session()
229 } else if (msg_out.header.status != 0) { in intel_pxp_gsccs_create_session()
230 if (is_fw_err_platform_config(pxp, msg_out.header.status)) { in intel_pxp_gsccs_create_session()
233 arb_session_id, msg_out.header.status, in intel_pxp_gsccs_create_session()
234 fw_err_to_string(msg_out.header.status)); in intel_pxp_gsccs_create_session()
237 arb_session_id, msg_out.header.status, in intel_pxp_gsccs_create_session()
238 fw_err_to_string(msg_out.header.status)); in intel_pxp_gsccs_create_session()
240 msg_in.header.command_id, msg_in.header.api_version); in intel_pxp_gsccs_create_session()
258 msg_in.header.api_version = PXP_APIVER(4, 3); in intel_pxp_gsccs_end_arb_fw_session()
259 msg_in.header.command_id = PXP42_CMDID_INVALIDATE_STREAM_KEY; in intel_pxp_gsccs_end_arb_fw_session()
260 msg_in.header.buffer_len = sizeof(msg_in) - sizeof(msg_in.header); in intel_pxp_gsccs_end_arb_fw_session()
262 msg_in.header.stream_id = FIELD_PREP(PXP_CMDHDR_EXTDATA_SESSION_VALID, 1); in intel_pxp_gsccs_end_arb_fw_session()
263 msg_in.header.stream_id |= FIELD_PREP(PXP_CMDHDR_EXTDATA_APP_TYPE, 0); in intel_pxp_gsccs_end_arb_fw_session()
264 msg_in.header.stream_id |= FIELD_PREP(PXP_CMDHDR_EXTDATA_SESSION_ID, session_id); in intel_pxp_gsccs_end_arb_fw_session()
272 } else if (msg_out.header.status != 0) { in intel_pxp_gsccs_end_arb_fw_session()
273 if (is_fw_err_platform_config(pxp, msg_out.header.status)) { in intel_pxp_gsccs_end_arb_fw_session()
276 session_id, msg_out.header.status, in intel_pxp_gsccs_end_arb_fw_session()
277 fw_err_to_string(msg_out.header.status)); in intel_pxp_gsccs_end_arb_fw_session()
280 session_id, msg_out.header.status, in intel_pxp_gsccs_end_arb_fw_session()
281 fw_err_to_string(msg_out.header.status)); in intel_pxp_gsccs_end_arb_fw_session()
283 msg_in.header.command_id, msg_in.header.api_version); in intel_pxp_gsccs_end_arb_fw_session()