Lines Matching refs:msg

629 					struct pldm_msg *msg)  in encode_query_device_identifiers_req()  argument
631 if (msg == NULL) { in encode_query_device_identifiers_req()
640 PLDM_QUERY_DEVICE_IDENTIFIERS, msg); in encode_query_device_identifiers_req()
644 int decode_query_device_identifiers_resp(const struct pldm_msg *msg, in decode_query_device_identifiers_resp() argument
651 if (msg == NULL || completion_code == NULL || in decode_query_device_identifiers_resp()
657 *completion_code = msg->payload[0]; in decode_query_device_identifiers_resp()
668 (struct pldm_query_device_identifiers_resp *)msg->payload; in decode_query_device_identifiers_resp()
686 (uint8_t *)(msg->payload + in decode_query_device_identifiers_resp()
694 struct pldm_msg *msg) in encode_get_firmware_parameters_req() argument
696 if (msg == NULL) { in encode_get_firmware_parameters_req()
705 PLDM_GET_FIRMWARE_PARAMETERS, msg); in encode_get_firmware_parameters_req()
710 const struct pldm_msg *msg, size_t payload_length, in decode_get_firmware_parameters_resp() argument
716 if (msg == NULL || resp_data == NULL || in decode_get_firmware_parameters_resp()
723 resp_data->completion_code = msg->payload[0]; in decode_get_firmware_parameters_resp()
733 (struct pldm_get_firmware_parameters_resp *)msg->payload; in decode_get_firmware_parameters_resp()
775 msg->payload + sizeof(struct pldm_get_firmware_parameters_resp); in decode_get_firmware_parameters_resp()
781 msg->payload + in decode_get_firmware_parameters_resp()
793 msg->payload + in decode_get_firmware_parameters_resp()
885 struct pldm_msg *msg) in encode_query_downstream_devices_req() argument
887 if (msg == NULL) { in encode_query_downstream_devices_req()
892 PLDM_QUERY_DOWNSTREAM_DEVICES, msg); in encode_query_downstream_devices_req()
897 const struct pldm_msg *msg, size_t payload_length, in decode_query_downstream_devices_resp() argument
904 if (msg == NULL || resp_data == NULL || !payload_length) { in decode_query_downstream_devices_resp()
909 msg->payload, payload_length); in decode_query_downstream_devices_resp()
953 enum transfer_op_flag transfer_operation_flag, struct pldm_msg *msg, in encode_query_downstream_identifiers_req() argument
960 if (msg == NULL) { in encode_query_downstream_identifiers_req()
973 rc = pack_pldm_header(&header, &(msg->hdr)); in encode_query_downstream_identifiers_req()
980 msg->payload, payload_length); in encode_query_downstream_identifiers_req()
999 const struct pldm_msg *msg, size_t payload_length, in decode_query_downstream_identifiers_resp() argument
1007 if (msg == NULL || resp_data == NULL || downstream_devices == NULL || in decode_query_downstream_identifiers_resp()
1013 msg->payload, payload_length); in decode_query_downstream_identifiers_resp()
1058 enum transfer_op_flag transfer_operation_flag, struct pldm_msg *msg, in encode_get_downstream_firmware_params_req() argument
1065 if (msg == NULL) { in encode_get_downstream_firmware_params_req()
1071 msg->payload, payload_length); in encode_get_downstream_firmware_params_req()
1085 rc = pack_pldm_header_errno(&header, &msg->hdr); in encode_get_downstream_firmware_params_req()
1099 const struct pldm_msg *msg, size_t payload_length, in decode_get_downstream_firmware_params_resp() argument
1107 if (msg == NULL || resp_data == NULL || in decode_get_downstream_firmware_params_resp()
1113 msg->payload, payload_length); in decode_get_downstream_firmware_params_resp()
1287 struct pldm_msg *msg, size_t payload_length) in encode_request_update_req() argument
1290 msg == NULL) { in encode_request_update_req()
1318 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_request_update_req()
1324 (struct pldm_request_update_req *)msg->payload; in encode_request_update_req()
1333 memcpy(msg->payload + sizeof(struct pldm_request_update_req), in encode_request_update_req()
1340 int decode_request_update_resp(const struct pldm_msg *msg, in decode_request_update_resp() argument
1345 if (msg == NULL || completion_code == NULL || in decode_request_update_resp()
1351 *completion_code = msg->payload[0]; in decode_request_update_resp()
1361 (struct pldm_request_update_resp *)msg->payload; in decode_request_update_resp()
1378 struct pldm_msg *msg, size_t payload_length) in encode_pass_component_table_req() argument
1380 if (comp_ver_str == NULL || comp_ver_str->ptr == NULL || msg == NULL) { in encode_pass_component_table_req()
1407 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_pass_component_table_req()
1413 (struct pldm_pass_component_table_req *)msg->payload; in encode_pass_component_table_req()
1423 memcpy(msg->payload + sizeof(struct pldm_pass_component_table_req), in encode_pass_component_table_req()
1430 int decode_pass_component_table_resp(const struct pldm_msg *msg, in decode_pass_component_table_resp() argument
1436 if (msg == NULL || completion_code == NULL || comp_resp == NULL || in decode_pass_component_table_resp()
1441 *completion_code = msg->payload[0]; in decode_pass_component_table_resp()
1451 (struct pldm_pass_component_table_resp *)msg->payload; in decode_pass_component_table_resp()
1474 struct pldm_msg *msg, size_t payload_length) in encode_update_component_req() argument
1476 if (comp_ver_str == NULL || comp_ver_str->ptr == NULL || msg == NULL) { in encode_update_component_req()
1503 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_update_component_req()
1509 (struct pldm_update_component_req *)msg->payload; in encode_update_component_req()
1520 memcpy(msg->payload + sizeof(struct pldm_update_component_req), in encode_update_component_req()
1527 int decode_update_component_resp(const struct pldm_msg *msg, in decode_update_component_resp() argument
1535 if (msg == NULL || completion_code == NULL || in decode_update_component_resp()
1543 *completion_code = msg->payload[0]; in decode_update_component_resp()
1553 (struct pldm_update_component_resp *)msg->payload; in decode_update_component_resp()
1575 int decode_request_firmware_data_req(const struct pldm_msg *msg, in decode_request_firmware_data_req() argument
1579 if (msg == NULL || offset == NULL || length == NULL) { in decode_request_firmware_data_req()
1586 (struct pldm_request_firmware_data_req *)msg->payload; in decode_request_firmware_data_req()
1600 struct pldm_msg *msg, in encode_request_firmware_data_resp() argument
1603 if (msg == NULL || !payload_length) { in encode_request_firmware_data_resp()
1612 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_request_firmware_data_resp()
1617 msg->payload[0] = completion_code; in encode_request_firmware_data_resp()
1623 int decode_transfer_complete_req(const struct pldm_msg *msg, in decode_transfer_complete_req() argument
1627 if (msg == NULL || transfer_result == NULL) { in decode_transfer_complete_req()
1635 *transfer_result = msg->payload[0]; in decode_transfer_complete_req()
1641 struct pldm_msg *msg, size_t payload_length) in encode_transfer_complete_resp() argument
1643 if (msg == NULL) { in encode_transfer_complete_resp()
1656 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_transfer_complete_resp()
1661 msg->payload[0] = completion_code; in encode_transfer_complete_resp()
1667 int decode_verify_complete_req(const struct pldm_msg *msg, in decode_verify_complete_req() argument
1670 if (msg == NULL || verify_result == NULL) { in decode_verify_complete_req()
1678 *verify_result = msg->payload[0]; in decode_verify_complete_req()
1684 struct pldm_msg *msg, size_t payload_length) in encode_verify_complete_resp() argument
1686 if (msg == NULL) { in encode_verify_complete_resp()
1699 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_verify_complete_resp()
1704 msg->payload[0] = completion_code; in encode_verify_complete_resp()
1710 int decode_apply_complete_req(const struct pldm_msg *msg, size_t payload_length, in decode_apply_complete_req() argument
1714 if (msg == NULL || apply_result == NULL || in decode_apply_complete_req()
1724 (struct pldm_apply_complete_req *)msg->payload; in decode_apply_complete_req()
1740 struct pldm_msg *msg, size_t payload_length) in encode_apply_complete_resp() argument
1742 if (msg == NULL) { in encode_apply_complete_resp()
1755 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_apply_complete_resp()
1760 msg->payload[0] = completion_code; in encode_apply_complete_resp()
1768 struct pldm_msg *msg, size_t payload_length) in encode_activate_firmware_req() argument
1770 if (msg == NULL) { in encode_activate_firmware_req()
1788 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_activate_firmware_req()
1794 (struct pldm_activate_firmware_req *)msg->payload; in encode_activate_firmware_req()
1802 int decode_activate_firmware_resp(const struct pldm_msg *msg, in decode_activate_firmware_resp() argument
1807 if (msg == NULL || completion_code == NULL || in decode_activate_firmware_resp()
1812 *completion_code = msg->payload[0]; in decode_activate_firmware_resp()
1822 (struct pldm_activate_firmware_resp *)msg->payload; in decode_activate_firmware_resp()
1831 int encode_get_status_req(uint8_t instance_id, struct pldm_msg *msg, in encode_get_status_req() argument
1834 if (msg == NULL) { in encode_get_status_req()
1847 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_get_status_req()
1856 int decode_get_status_resp(const struct pldm_msg *msg, size_t payload_length, in decode_get_status_resp() argument
1863 if (msg == NULL || completion_code == NULL || current_state == NULL || in decode_get_status_resp()
1871 *completion_code = msg->payload[0]; in decode_get_status_resp()
1880 (struct pldm_get_status_resp *)msg->payload; in decode_get_status_resp()
1924 struct pldm_msg *msg, in encode_cancel_update_component_req() argument
1927 if (msg == NULL) { in encode_cancel_update_component_req()
1940 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_cancel_update_component_req()
1949 int decode_cancel_update_component_resp(const struct pldm_msg *msg, in decode_cancel_update_component_resp() argument
1953 if (msg == NULL || completion_code == NULL) { in decode_cancel_update_component_resp()
1961 *completion_code = msg->payload[0]; in decode_cancel_update_component_resp()
1966 int encode_cancel_update_req(uint8_t instance_id, struct pldm_msg *msg, in encode_cancel_update_req() argument
1969 if (msg == NULL) { in encode_cancel_update_req()
1982 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_cancel_update_req()
1991 int decode_cancel_update_resp(const struct pldm_msg *msg, size_t payload_length, in decode_cancel_update_resp() argument
1996 if (msg == NULL || completion_code == NULL || in decode_cancel_update_resp()
2002 *completion_code = msg->payload[0]; in decode_cancel_update_resp()
2011 (struct pldm_cancel_update_resp *)msg->payload; in decode_cancel_update_resp()