Lines Matching refs: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()
487 uint8_t rc = pack_pldm_header(&header, &msg->hdr); in encode_set_bios_attribute_current_value_req()
493 (struct pldm_set_bios_attribute_current_value_req *)msg->payload; in encode_set_bios_attribute_current_value_req()
502 int decode_set_bios_attribute_current_value_resp(const struct pldm_msg *msg, in decode_set_bios_attribute_current_value_resp() argument
507 if (msg == NULL || completion_code == NULL || in decode_set_bios_attribute_current_value_resp()
512 *completion_code = msg->payload[0]; in decode_set_bios_attribute_current_value_resp()
523 msg->payload; in decode_set_bios_attribute_current_value_resp()
532 const struct pldm_msg *msg, size_t payload_length, in decode_set_bios_attribute_current_value_req() argument
536 if (msg == NULL || transfer_handle == NULL || transfer_flag == NULL || in decode_set_bios_attribute_current_value_req()
545 (struct pldm_set_bios_attribute_current_value_req *)msg->payload; in decode_set_bios_attribute_current_value_req()
558 struct pldm_msg *msg) in encode_set_bios_attribute_current_value_resp() argument
560 if (msg == NULL) { in encode_set_bios_attribute_current_value_resp()
569 uint8_t rc = pack_pldm_header(&header, &msg->hdr); in encode_set_bios_attribute_current_value_resp()
576 msg->payload; in encode_set_bios_attribute_current_value_resp()
587 struct pldm_msg *msg, size_t payload_length) in encode_set_bios_table_req() argument
589 if (msg == NULL || table_data == NULL) { in encode_set_bios_table_req()
604 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_set_bios_table_req()
610 (struct pldm_set_bios_table_req *)msg->payload; in encode_set_bios_table_req()
620 int decode_set_bios_table_resp(const struct pldm_msg *msg, in decode_set_bios_table_resp() argument
624 if (msg == NULL || completion_code == NULL || in decode_set_bios_table_resp()
629 *completion_code = msg->payload[0]; in decode_set_bios_table_resp()
639 (struct pldm_set_bios_table_resp *)msg->payload; in decode_set_bios_table_resp()
649 struct pldm_msg *msg) in encode_set_bios_table_resp() argument
651 if (msg == NULL) { in encode_set_bios_table_resp()
661 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_set_bios_table_resp()
667 (struct pldm_set_bios_table_resp *)msg->payload; in encode_set_bios_table_resp()
675 int decode_set_bios_table_req(const struct pldm_msg *msg, size_t payload_length, in decode_set_bios_table_req() argument
679 if (msg == NULL || transfer_handle == NULL || transfer_flag == NULL || in decode_set_bios_table_req()
689 (struct pldm_set_bios_table_req *)msg->payload; in decode_set_bios_table_req()