Lines Matching full:msg

10 int encode_get_date_time_req(uint8_t instance_id, struct pldm_msg *msg)  in encode_get_date_time_req()  argument
12 if (msg == NULL) { in encode_get_date_time_req()
21 return pack_pldm_header(&header, &(msg->hdr)); in encode_get_date_time_req()
28 struct pldm_msg *msg) in encode_get_date_time_resp() argument
30 if (msg == NULL) { in encode_get_date_time_resp()
40 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_get_date_time_resp()
46 (struct pldm_get_date_time_resp *)msg->payload; in encode_get_date_time_resp()
61 int decode_get_date_time_resp(const struct pldm_msg *msg, size_t payload_length, in decode_get_date_time_resp() argument
66 if (msg == NULL || seconds == NULL || minutes == NULL || in decode_get_date_time_resp()
72 *completion_code = msg->payload[0]; in decode_get_date_time_resp()
82 (struct pldm_get_date_time_resp *)msg->payload; in decode_get_date_time_resp()
97 uint8_t month, uint16_t year, struct pldm_msg *msg, in encode_set_date_time_req() argument
100 if (msg == NULL) { in encode_set_date_time_req()
117 uint8_t rc = pack_pldm_header(&header, &msg->hdr); in encode_set_date_time_req()
123 (struct pldm_set_date_time_req *)msg->payload; in encode_set_date_time_req()
135 int decode_set_date_time_req(const struct pldm_msg *msg, size_t payload_length, in decode_set_date_time_req() argument
139 if (msg == NULL || seconds == NULL || minutes == NULL || in decode_set_date_time_req()
148 (struct pldm_set_date_time_req *)msg->payload; in decode_set_date_time_req()
166 struct pldm_msg *msg, size_t payload_length) in encode_set_date_time_resp() argument
168 if (msg == NULL) { in encode_set_date_time_resp()
181 uint8_t rc = pack_pldm_header(&header, &msg->hdr); in encode_set_date_time_resp()
187 (struct pldm_only_cc_resp *)msg->payload; in encode_set_date_time_resp()
194 int decode_set_date_time_resp(const struct pldm_msg *msg, size_t payload_length, in decode_set_date_time_resp() argument
197 if (msg == NULL || completion_code == NULL) { in decode_set_date_time_resp()
201 *completion_code = msg->payload[0]; in decode_set_date_time_resp()
217 size_t payload_length, struct pldm_msg *msg) in encode_get_bios_table_resp() argument
219 if (msg == NULL) { in encode_get_bios_table_resp()
229 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_get_bios_table_resp()
235 (struct pldm_get_bios_table_resp *)msg->payload; in encode_get_bios_table_resp()
255 struct pldm_msg *msg) in encode_get_bios_table_req() argument
257 if (msg == NULL) { in encode_get_bios_table_req()
267 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_get_bios_table_req()
273 (struct pldm_get_bios_table_req *)msg->payload; in encode_get_bios_table_req()
282 int decode_get_bios_table_req(const struct pldm_msg *msg, size_t payload_length, in decode_get_bios_table_req() argument
286 if (msg == NULL || transfer_op_flag == NULL || table_type == NULL || in decode_get_bios_table_req()
296 (struct pldm_get_bios_table_req *)msg->payload; in decode_get_bios_table_req()
305 int decode_get_bios_table_resp(const struct pldm_msg *msg, in decode_get_bios_table_resp() argument
312 if (msg == NULL || transfer_flag == NULL || in decode_get_bios_table_resp()
321 (struct pldm_get_bios_table_resp *)msg->payload; in decode_get_bios_table_resp()
342 uint16_t attribute_handle, struct pldm_msg *msg) in encode_get_bios_attribute_current_value_by_handle_req() argument
344 if (msg == NULL) { in encode_get_bios_attribute_current_value_by_handle_req()
354 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_get_bios_attribute_current_value_by_handle_req()
361 msg->payload; in encode_get_bios_attribute_current_value_by_handle_req()
371 const struct pldm_msg *msg, size_t payload_length, in decode_get_bios_attribute_current_value_by_handle_resp() argument
375 if (msg == NULL || transfer_flag == NULL || in decode_get_bios_attribute_current_value_by_handle_resp()
382 msg->payload; in decode_get_bios_attribute_current_value_by_handle_resp()
406 const struct pldm_msg *msg, size_t payload_length, in decode_get_bios_attribute_current_value_by_handle_req() argument
410 if (msg == NULL || transfer_handle == NULL || in decode_get_bios_attribute_current_value_by_handle_req()
421 msg->payload; in decode_get_bios_attribute_current_value_by_handle_req()
436 struct pldm_msg *msg) in encode_get_bios_current_value_by_handle_resp() argument
438 if (msg == NULL || attribute_data == NULL) { in encode_get_bios_current_value_by_handle_resp()
448 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_get_bios_current_value_by_handle_resp()
455 msg->payload; in encode_get_bios_current_value_by_handle_resp()
472 struct pldm_msg *msg, size_t payload_length) in encode_set_bios_attribute_current_value_req() argument
474 if (msg == NULL || attribute_data == NULL) { in encode_set_bios_attribute_current_value_req()
493 uint8_t rc = pack_pldm_header(&header, &msg->hdr); in encode_set_bios_attribute_current_value_req()
499 (struct pldm_set_bios_attribute_current_value_req *)msg->payload; in encode_set_bios_attribute_current_value_req()
508 int decode_set_bios_attribute_current_value_resp(const struct pldm_msg *msg, in decode_set_bios_attribute_current_value_resp() argument
513 if (msg == NULL || completion_code == NULL || in decode_set_bios_attribute_current_value_resp()
518 *completion_code = msg->payload[0]; in decode_set_bios_attribute_current_value_resp()
529 msg->payload; in decode_set_bios_attribute_current_value_resp()
538 const struct pldm_msg *msg, size_t payload_length, in decode_set_bios_attribute_current_value_req() argument
542 if (msg == NULL || transfer_handle == NULL || transfer_flag == NULL || in decode_set_bios_attribute_current_value_req()
551 (struct pldm_set_bios_attribute_current_value_req *)msg->payload; in decode_set_bios_attribute_current_value_req()
564 struct pldm_msg *msg) in encode_set_bios_attribute_current_value_resp() argument
566 if (msg == NULL) { in encode_set_bios_attribute_current_value_resp()
575 uint8_t rc = pack_pldm_header(&header, &msg->hdr); in encode_set_bios_attribute_current_value_resp()
582 msg->payload; in encode_set_bios_attribute_current_value_resp()
593 struct pldm_msg *msg, size_t payload_length) in encode_set_bios_table_req() argument
595 if (msg == NULL || table_data == NULL) { in encode_set_bios_table_req()
617 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_set_bios_table_req()
623 (struct pldm_set_bios_table_req *)msg->payload; in encode_set_bios_table_req()
633 int decode_set_bios_table_resp(const struct pldm_msg *msg, in decode_set_bios_table_resp() argument
637 if (msg == NULL || completion_code == NULL || in decode_set_bios_table_resp()
642 *completion_code = msg->payload[0]; in decode_set_bios_table_resp()
652 (struct pldm_set_bios_table_resp *)msg->payload; in decode_set_bios_table_resp()
662 struct pldm_msg *msg) in encode_set_bios_table_resp() argument
664 if (msg == NULL) { in encode_set_bios_table_resp()
674 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_set_bios_table_resp()
680 (struct pldm_set_bios_table_resp *)msg->payload; in encode_set_bios_table_resp()
688 int decode_set_bios_table_req(const struct pldm_msg *msg, size_t payload_length, in decode_set_bios_table_req() argument
692 if (msg == NULL || transfer_handle == NULL || transfer_flag == NULL || in decode_set_bios_table_req()
702 (struct pldm_set_bios_table_req *)msg->payload; in decode_set_bios_table_req()