/openbmc/libpldm/src/dsp/ |
H A D | firmware_update.c | 664 size_t payload_length, in encode_query_device_identifiers_req() argument 671 if (payload_length != PLDM_QUERY_DEVICE_IDENTIFIERS_REQ_BYTES) { in encode_query_device_identifiers_req() 681 size_t payload_length, in decode_query_device_identifiers_resp() argument 698 if (payload_length < in decode_query_device_identifiers_resp() 711 if (payload_length != in decode_query_device_identifiers_resp() 731 size_t *payload_length) in encode_query_device_identifiers_resp() argument 737 if (descriptors == NULL || msg == NULL || payload_length == NULL) { in encode_query_device_identifiers_resp() 751 rc = pldm_msgbuf_init_errno(buf, 0, msg->payload, *payload_length); in encode_query_device_identifiers_resp() 784 return pldm_msgbuf_destroy_used(buf, *payload_length, payload_length); in encode_query_device_identifiers_resp() 789 size_t payload_length, in encode_get_firmware_parameters_req() argument [all …]
|
H A D | bios.c | 61 int decode_get_date_time_resp(const struct pldm_msg *msg, size_t payload_length, in decode_get_date_time_resp() argument 77 if (payload_length != PLDM_GET_DATE_TIME_RESP_BYTES) { in decode_get_date_time_resp() 98 size_t payload_length) in encode_set_date_time_req() argument 103 if (payload_length != sizeof(struct pldm_set_date_time_req)) { 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 143 if (payload_length != sizeof(struct pldm_set_date_time_req)) { in decode_set_date_time_req() 166 struct pldm_msg *msg, size_t payload_length) in encode_set_date_time_resp() argument 171 if (payload_length != sizeof(struct pldm_only_cc_resp)) { 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 206 if (payload_length != sizeof(struct pldm_only_cc_resp)) { in decode_set_date_time_resp() [all …]
|
H A D | fru.c | 15 size_t payload_length) in encode_get_fru_record_table_metadata_req() argument 21 if (payload_length != PLDM_GET_FRU_RECORD_TABLE_METADATA_REQ_BYTES) { in encode_get_fru_record_table_metadata_req() 36 const struct pldm_msg *msg, size_t payload_length, in decode_get_fru_record_table_metadata_resp() argument 55 if (payload_length != PLDM_GET_FRU_RECORD_TABLE_METADATA_RESP_BYTES) { in decode_get_fru_record_table_metadata_resp() 117 size_t payload_length, in decode_get_fru_record_table_req() argument 126 if (payload_length != PLDM_GET_FRU_RECORD_TABLE_REQ_BYTES) { in decode_get_fru_record_table_req() 300 struct pldm_msg *msg, size_t payload_length) in encode_get_fru_record_by_option_req() argument 306 if (payload_length != in encode_get_fru_record_by_option_req() 336 const struct pldm_msg *msg, size_t payload_length, in decode_get_fru_record_by_option_req() argument 348 if (payload_length != in decode_get_fru_record_by_option_req() [all …]
|
H A D | platform.c | 241 size_t payload_length, in decode_set_state_effecter_states_resp() argument 253 if (payload_length > PLDM_SET_STATE_EFFECTER_STATES_RESP_BYTES) { in decode_set_state_effecter_states_resp() 263 size_t payload_length, in decode_set_state_effecter_states_req() argument 278 if (payload_length > PLDM_SET_STATE_EFFECTER_STATES_REQ_BYTES) { in decode_set_state_effecter_states_req() 284 msg->payload, payload_length); in decode_set_state_effecter_states_req() 310 int decode_get_pdr_req(const struct pldm_msg *msg, size_t payload_length, in decode_get_pdr_req() argument 325 if (payload_length != PLDM_GET_PDR_REQ_BYTES) { in decode_get_pdr_req() 330 payload_length); in decode_get_pdr_req() 444 const struct pldm_msg *msg, size_t payload_length, in decode_get_pdr_repository_info_resp() argument 464 msg->payload, payload_length); in decode_get_pdr_repository_info_resp() [all …]
|
H A D | base.c | 200 int decode_get_commands_req(const struct pldm_msg *msg, size_t payload_length, in decode_get_commands_req() argument 207 if (payload_length != PLDM_GET_COMMANDS_REQ_BYTES) { in decode_get_commands_req() 250 int decode_get_types_resp(const struct pldm_msg *msg, size_t payload_length, in decode_get_types_resp() argument 262 if (payload_length != PLDM_GET_TYPES_RESP_BYTES) { in decode_get_types_resp() 275 int decode_get_commands_resp(const struct pldm_msg *msg, size_t payload_length, in decode_get_commands_resp() argument 287 if (payload_length != PLDM_GET_COMMANDS_RESP_BYTES) { in decode_get_commands_resp() 364 int decode_get_version_req(const struct pldm_msg *msg, size_t payload_length, in decode_get_version_req() argument 368 if (payload_length != PLDM_GET_VERSION_REQ_BYTES) { in decode_get_version_req() 381 int decode_get_version_resp(const struct pldm_msg *msg, size_t payload_length, in decode_get_version_resp() argument 396 if (payload_length < PLDM_GET_VERSION_RESP_BYTES) { in decode_get_version_resp() [all …]
|
/openbmc/libpldm/include/libpldm/ |
H A D | firmware_update.h | 1136 size_t payload_length, 1156 size_t *payload_length); 1170 size_t payload_length, 1188 size_t payload_length, 1205 const struct pldm_msg *msg, size_t payload_length, 1242 struct pldm_msg *msg, size_t *payload_length); 1255 uint8_t *payload, size_t *payload_length); 1286 const struct pldm_msg *msg, size_t payload_length, 1307 struct pldm_msg *msg, size_t payload_length); 1322 const struct pldm_msg *msg, size_t payload_length, [all …]
|
H A D | bios.h | 238 int decode_get_date_time_resp(const struct pldm_msg *msg, size_t payload_length, 262 struct pldm_msg *msg, size_t payload_length); 280 const struct pldm_msg *msg, size_t payload_length, 305 struct pldm_msg *msg, size_t payload_length); 323 size_t payload_length, uint8_t *completion_code, 369 size_t payload_length, struct pldm_msg *msg); 395 int decode_get_bios_table_req(const struct pldm_msg *msg, size_t payload_length, 413 size_t payload_length, uint8_t *completion_code, 447 const struct pldm_msg *msg, size_t payload_length, 462 const struct pldm_msg *msg, size_t payload_length, [all …]
|
H A D | fru.h | 180 size_t payload_length); 204 const struct pldm_msg *msg, size_t payload_length, 252 size_t payload_length, 293 const struct pldm_msg *msg, size_t payload_length, 319 size_t payload_length); 343 size_t payload_length); 361 size_t payload_length, 388 const struct pldm_msg *msg, size_t payload_length, 437 struct pldm_msg *msg, size_t payload_length); 452 const struct pldm_msg *msg, size_t payload_length, [all …]
|
H A D | platform.h | 1328 size_t payload_length, 1346 size_t payload_length); 1383 size_t payload_length, 1431 int decode_get_pdr_req(const struct pldm_msg *msg, size_t payload_length, 1453 size_t payload_length, 1488 size_t payload_length, 1515 struct pldm_msg *msg, size_t payload_length); 1531 size_t payload_length, uint16_t *sensor_id, 1563 struct pldm_msg *msg, size_t payload_length); 1611 const struct pldm_msg *msg, size_t payload_length, [all …]
|
H A D | base.h | 397 int decode_get_types_resp(const struct pldm_msg *msg, size_t payload_length, 430 int decode_get_commands_resp(const struct pldm_msg *msg, size_t payload_length, 468 int decode_get_version_resp(const struct pldm_msg *msg, size_t payload_length, 489 int decode_get_tid_resp(const struct pldm_msg *msg, size_t payload_length, 520 int decode_get_commands_req(const struct pldm_msg *msg, size_t payload_length, 567 int decode_get_version_req(const struct pldm_msg *msg, size_t payload_length, 626 size_t payload_length, uint8_t *pldm_type,
|
/openbmc/linux/drivers/target/iscsi/ |
H A D | iscsi_target_erl0.c | 71 u32 payload_length = ntoh24(hdr->dlength); in iscsit_dataout_within_command_recovery_check() local 95 payload_length); in iscsit_dataout_within_command_recovery_check() 127 " 0x%08x\n", hdr->offset, payload_length, hdr->datasn); in iscsit_dataout_within_command_recovery_check() 128 return iscsit_dump_data_payload(conn, payload_length, 1); in iscsit_dataout_within_command_recovery_check() 138 u32 payload_length = ntoh24(hdr->dlength); in iscsit_dataout_check_unsolicited_sequence() local 142 ((be32_to_cpu(hdr->offset) + payload_length) > cmd->seq_end_offset)) { in iscsit_dataout_check_unsolicited_sequence() 146 be32_to_cpu(hdr->offset), payload_length, cmd->seq_start_offset, in iscsit_dataout_check_unsolicited_sequence() 151 first_burst_len = (cmd->first_burst_len + payload_length); in iscsit_dataout_check_unsolicited_sequence() 214 u32 payload_length = ntoh24(hdr->dlength); in iscsit_dataout_check_sequence() local 230 ((be32_to_cpu(hdr->offset) + payload_length) > cmd->seq_end_offset)) { in iscsit_dataout_check_sequence() [all …]
|
H A D | iscsi_target.c | 1005 int data_direction, payload_length; in iscsit_setup_scsi_cmd() local 1015 payload_length = ntoh24(hdr->dlength); in iscsit_setup_scsi_cmd() 1070 if (payload_length && !conn->sess->sess_ops->ImmediateData) { in iscsit_setup_scsi_cmd() 1072 " protocol error.\n", payload_length); in iscsit_setup_scsi_cmd() 1077 if ((be32_to_cpu(hdr->data_length) == payload_length) && in iscsit_setup_scsi_cmd() 1086 if (payload_length > be32_to_cpu(hdr->data_length)) { in iscsit_setup_scsi_cmd() 1088 " EDTL: %u, protocol error.\n", payload_length, in iscsit_setup_scsi_cmd() 1094 if (payload_length > conn->conn_ops->MaxXmitDataSegmentLength) { in iscsit_setup_scsi_cmd() 1097 payload_length, conn->conn_ops->MaxXmitDataSegmentLength); in iscsit_setup_scsi_cmd() 1102 if (payload_length > conn->sess->sess_ops->FirstBurstLength) { in iscsit_setup_scsi_cmd() [all …]
|
H A D | iscsi_target_nego.c | 164 u32 payload_length; in iscsi_target_check_login_request() local 168 payload_length = ntoh24(login_req->dlength); in iscsi_target_check_login_request() 239 if (payload_length > MAX_KEY_VALUE_PAIRS) { in iscsi_target_check_login_request() 757 u32 payload_length; in iscsi_target_do_authentication() local 764 payload_length = ntoh24(login_req->dlength); in iscsi_target_do_authentication() 774 payload_length, in iscsi_target_do_authentication() 852 u32 payload_length; in iscsi_target_handle_csg_zero() local 859 payload_length = ntoh24(login_req->dlength); in iscsi_target_handle_csg_zero() 869 payload_length, in iscsi_target_handle_csg_zero() 885 } else if (!payload_length) { in iscsi_target_handle_csg_zero() [all …]
|
/openbmc/linux/drivers/staging/wlan-ng/ |
H A D | p80211conv.c | 259 unsigned int payload_length; in skb_p80211_to_ether() local 270 payload_length = skb->len - WLAN_HDR_A3_LEN - WLAN_CRC_LEN; in skb_p80211_to_ether() 290 if (payload_length < WLAN_HDR_A4_LEN - WLAN_HDR_A3_LEN) { in skb_p80211_to_ether() 294 payload_length -= (WLAN_HDR_A4_LEN - WLAN_HDR_A3_LEN); in skb_p80211_to_ether() 303 if (payload_length <= 8) { in skb_p80211_to_ether() 309 payload_length - 8, -1, in skb_p80211_to_ether() 312 payload_length - 4); in skb_p80211_to_ether() 322 payload_length -= 8; in skb_p80211_to_ether() 339 if ((payload_length >= sizeof(struct wlan_ethhdr)) && in skb_p80211_to_ether() 343 pr_debug("802.3 ENCAP len: %d\n", payload_length); in skb_p80211_to_ether() [all …]
|
/openbmc/libpldm/include/libpldm/oem/ibm/ |
H A D | file_io.h | 136 int decode_rw_file_memory_req(const struct pldm_msg *msg, size_t payload_length, 184 size_t payload_length, uint8_t *completion_code, 227 int decode_get_file_table_req(const struct pldm_msg *msg, size_t payload_length, 275 size_t payload_length, uint8_t *completion_code, 330 int decode_read_file_req(const struct pldm_msg *msg, size_t payload_length, 359 int decode_read_file_resp(const struct pldm_msg *msg, size_t payload_length, 391 int decode_write_file_req(const struct pldm_msg *msg, size_t payload_length, 422 int decode_write_file_resp(const struct pldm_msg *msg, size_t payload_length, 474 size_t payload_length, 524 size_t payload_length, [all …]
|
H A D | host.h | 53 struct pldm_msg *msg, size_t payload_length); 71 size_t payload_length, 87 size_t payload_length, uint8_t *version_id); 103 struct pldm_msg *msg, size_t payload_length);
|
/openbmc/libpldm/src/oem/ibm/ |
H A D | host.c | 11 struct pldm_msg *msg, size_t payload_length) in encode_get_alert_status_req() argument 17 if (payload_length != PLDM_GET_ALERT_STATUS_REQ_BYTES) { in encode_get_alert_status_req() 38 size_t payload_length, in decode_get_alert_status_resp() argument 52 if (payload_length != PLDM_GET_ALERT_STATUS_RESP_BYTES) { in decode_get_alert_status_resp() 67 size_t payload_length, uint8_t *version_id) in decode_get_alert_status_req() argument 73 if (payload_length != PLDM_GET_ALERT_STATUS_REQ_BYTES) { in decode_get_alert_status_req() 85 struct pldm_msg *msg, size_t payload_length) in encode_get_alert_status_resp() argument 91 if (payload_length != PLDM_GET_ALERT_STATUS_RESP_BYTES) { in encode_get_alert_status_resp()
|
H A D | file_io.c | 9 int decode_rw_file_memory_req(const struct pldm_msg *msg, size_t payload_length, in decode_rw_file_memory_req() argument 18 if (payload_length != PLDM_RW_FILE_MEM_REQ_BYTES) { in decode_rw_file_memory_req() 93 size_t payload_length, uint8_t *completion_code, in decode_rw_file_memory_resp() argument 100 if (payload_length != PLDM_RW_FILE_MEM_RESP_BYTES) { in decode_rw_file_memory_resp() 115 int decode_get_file_table_req(const struct pldm_msg *msg, size_t payload_length, in decode_get_file_table_req() argument 124 if (payload_length != PLDM_GET_FILE_TABLE_REQ_BYTES) { in decode_get_file_table_req() 202 size_t payload_length, uint8_t *completion_code, in decode_get_file_table_resp() argument 214 if (payload_length <= PLDM_GET_FILE_TABLE_MIN_RESP_BYTES) { in decode_get_file_table_resp() 233 payload_length - PLDM_GET_FILE_TABLE_MIN_RESP_BYTES; in decode_get_file_table_resp() 239 int decode_read_file_req(const struct pldm_msg *msg, size_t payload_length, in decode_read_file_req() argument [all …]
|
H A D | platform.c | 13 size_t payload_length, in encode_bios_attribute_update_event_req() argument 32 if (payload_length < in encode_bios_attribute_update_event_req() 37 if (payload_length - (PLDM_PLATFORM_EVENT_MESSAGE_MIN_REQ_BYTES + in encode_bios_attribute_update_event_req()
|
/openbmc/libpldm/src/oem/meta/ |
H A D | file_io.c | 21 const struct pldm_msg *msg, size_t payload_length, in decode_oem_meta_file_io_write_req() argument 38 msg->payload, payload_length); in decode_oem_meta_file_io_write_req() 60 size_t payload_length, uint8_t *file_handle, in decode_oem_meta_file_io_req() argument 72 if (SIZE_MAX - sizeof(*request_msg) < payload_length) { in decode_oem_meta_file_io_req() 76 request_msg_len = sizeof(*request_msg) + payload_length; in decode_oem_meta_file_io_req() 79 rc = decode_oem_meta_file_io_write_req(msg, payload_length, request_msg, in decode_oem_meta_file_io_req() 99 size_t payload_length, in decode_oem_meta_file_io_read_req() argument 115 payload_length); in decode_oem_meta_file_io_read_req() 158 size_t resp_len, struct pldm_msg *responseMsg, size_t payload_length) in encode_oem_meta_file_io_read_resp() argument 188 responseMsg->payload, payload_length); in encode_oem_meta_file_io_read_resp()
|
/openbmc/libpldm/include/libpldm/oem/meta/ |
H A D | file_io.h | 114 const struct pldm_msg *msg, size_t payload_length, 127 size_t payload_length, uint8_t *file_handle, 138 size_t payload_length, 162 size_t resp_len, struct pldm_msg *responseMsg, size_t payload_length);
|
/openbmc/libpldm/abi/x86_64/ |
H A D | gcc.dump | 283 'name' => 'payload_length', 351 'name' => 'payload_length', 421 'name' => 'payload_length', 460 'name' => 'payload_length', 563 'name' => 'payload_length', 593 'name' => 'payload_length', 647 'name' => 'payload_length', 796 'name' => 'payload_length', 859 'name' => 'payload_length', 914 'name' => 'payload_length', [all …]
|
/openbmc/google-misc/subprojects/ncsid/src/platforms/nemora/portable/ |
H A D | ncsi_client.c | 100 header->payload_length = 0; // Caller is expected to set this if != 0. in set_header_fields() 135 cmd->hdr.payload_length = in ncsi_cmd_set_mac() 151 cmd->hdr.payload_length = htons( in ncsi_cmd_enable_broadcast_filter() 221 cmd->hdr.payload_length = in ncsi_oem_cmd_get_host_mac() 233 cmd->hdr.payload_length = in ncsi_oem_cmd_get_filter() 246 cmd->hdr.payload_length = in ncsi_oem_cmd_set_filter() 266 cmd->hdr.payload_length = in ncsi_oem_cmd_echo() 293 ntohs(response->hdr.payload_length) != in ncsi_validate_response()
|
/openbmc/linux/drivers/net/wwan/iosm/ |
H A D | iosm_ipc_flash.c | 15 u8 *payload, u32 payload_length) in ipc_flash_proc_format_ebl_pack() argument 20 if (payload_length + IOSM_EBL_HEAD_SIZE > pack_length) in ipc_flash_proc_format_ebl_pack() 24 flash_req->msg_length = cpu_to_le32(payload_length); in ipc_flash_proc_format_ebl_pack() 25 checksum += (payload_length >> IOSM_EBL_PAYL_SHIFT) + in ipc_flash_proc_format_ebl_pack() 26 (payload_length & IOSM_EBL_CKSM); in ipc_flash_proc_format_ebl_pack() 28 for (i = 0; i < payload_length; i++) in ipc_flash_proc_format_ebl_pack() 61 u16 pack_id, u8 *payload, u32 payload_length) in ipc_flash_send_data() argument 67 pack_id, payload, payload_length); in ipc_flash_send_data() 82 ret = ipc_imem_sys_devlink_write(ipc_devlink, payload, payload_length); in ipc_flash_send_data() 167 u8 *payload, u32 payload_length, u8 *mdm_rsp) in ipc_flash_send_receive() argument [all …]
|
/openbmc/libpldm/tests/oem/ibm/ |
H A D | fileio.cpp | 427 size_t payload_length = responseMsg.size() - hdrSize; in TEST() local 445 responsePtr, payload_length, &retCompletionCode, &retNextTransferHandle, in TEST() 491 size_t payload_length = requestMsg.size() - sizeof(pldm_msg_hdr); in TEST() local 509 auto rc = decode_read_file_req(requestPtr, payload_length, &retFileHandle, in TEST() 529 size_t payload_length = requestMsg.size() - sizeof(pldm_msg_hdr); in TEST() local 546 auto rc = decode_write_file_req(requestPtr, payload_length, &retFileHandle, in TEST() 566 size_t payload_length = responseMsg.size() - sizeof(pldm_msg_hdr); in TEST() local 582 decode_read_file_resp(responsePtr, payload_length, &retCompletionCode, in TEST() 597 size_t payload_length = responseMsg.size() - sizeof(pldm_msg_hdr); in TEST() local 612 auto rc = decode_write_file_resp(responsePtr, payload_length, in TEST() [all …]
|