Lines Matching defs:data
80 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
95 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
104 0, effecterId, compEffecterCnt, stateField.data(), request);
133 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
160 memcpy(requestMsg.data() + hdrSize, &effecterIdLE, sizeof(effecterIdLE));
161 memcpy(requestMsg.data() + sizeof(effecterIdLE) + hdrSize, &compEffecterCnt,
163 memcpy(requestMsg.data() + sizeof(effecterIdLE) + sizeof(compEffecterCnt) +
168 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
172 &retCompEffecterCnt, retStateField.data());
199 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
217 // + size of record data and transfer CRC
221 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
225 recordData.data(), transferCRC, response);
238 memcmp(recordData.data(), resp->record_data, recordData.size()));
247 recordData.data(), transferCRC, response);
262 recordData.data(), transferCRC, nullptr);
284 auto req = reinterpret_cast<pldm_msg*>(requestMsg.data());
311 auto req = reinterpret_cast<pldm_msg*>(requestMsg.data());
329 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
355 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
391 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
440 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
468 alignas(pldm_msg) unsigned char data[sizeof(pldm_msg_hdr) +
474 pldm_msg* msg = new (data) pldm_msg();
477 sizeof(data) - sizeof(msg->hdr));
495 rc = decode_get_pdr_resp_safe(msg, sizeof(data) - sizeof(msg->hdr), resp,
571 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
626 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
681 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
729 data[sizeof(pldm_msg_hdr) + PLDM_GET_PDR_REPOSITORY_INFO_RESP_BYTES];
735 pldm_msg* msg = new (data) pldm_msg();
738 msg->payload, sizeof(data) - sizeof(msg->hdr));
756 msg, sizeof(data) - sizeof(msg->hdr), &resp);
815 auto req = reinterpret_cast<pldm_msg*>(requestMsg.data());
857 auto req = reinterpret_cast<pldm_msg*>(requestMsg.data());
883 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
908 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
931 memcpy(responseMsg.data() + hdrSize, &completion_code,
935 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
950 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
964 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
989 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
1000 0, PLDM_SUCCESS, comp_sensorCnt, stateField.data(), response);
1049 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
1062 &retcomp_sensorCnt, retstateField.data());
1085 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
1115 &retcomp_sensorCnt, retstateField.data());
1130 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
1169 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
1207 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
1231 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
1250 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
1280 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
1305 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
1327 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
1357 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
1367 memcpy(resp->event_class, eventClass.data(), numberEventClassReturned);
1379 EXPECT_EQ(0, memcmp(eventClass.data(), resp->event_class,
1404 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
1414 memcpy(resp->event_class, eventClass.data(), numberEventClassReturned);
1445 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
1454 memcpy(resp->event_class, eventClass.data(), numberEventClassReturned);
1694 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
1739 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
1766 response = reinterpret_cast<pldm_msg*>(responseMsg.data());
1813 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
1850 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
1879 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
1908 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
1937 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
2028 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
2088 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
2127 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
2174 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
2234 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
2263 auto req = reinterpret_cast<pldm_msg*>(requestMsg.data());
2298 auto req = reinterpret_cast<pldm_msg*>(requestMsg.data());
2323 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
2350 const void* data;
2370 data = nullptr;
2371 pldm_msgbuf_span_remaining(buf, &data, &len);
2378 EXPECT_EQ(0, memcmp(&eventData, data, len));
2395 data = nullptr;
2396 pldm_msgbuf_span_remaining(buf, &data, &len);
2403 EXPECT_EQ(0, memcmp(&eventData, data, len));
2454 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
2481 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
2510 (struct pldm_sensor_event_data*)eventDataArr.data();
2536 (struct pldm_sensor_event_data*)eventDataArr.data();
2548 reinterpret_cast<uint8_t*>(eventDataArr.data()),
2558 reinterpret_cast<uint8_t*>(eventDataArr.data()), eventDataArr.size(),
2565 reinterpret_cast<uint8_t*>(eventDataArr.data()), eventDataArr.size(),
2572 reinterpret_cast<uint8_t*>(eventDataArr.data()),
2597 reinterpret_cast<uint8_t*>(eventData.data()), eventData.size(),
2626 reinterpret_cast<uint8_t*>(eventData.data()), eventData.size(), NULL);
2631 reinterpret_cast<uint8_t*>(eventData.data()), eventData.size() - 1,
2640 reinterpret_cast<uint8_t*>(eventData.data()), eventData.size(),
2650 reinterpret_cast<uint8_t*>(eventData.data()), eventData.size(),
2671 &poll_event, reinterpret_cast<uint8_t*>(eventData.data()),
2681 reinterpret_cast<uint8_t*>(eventData.data()), eventData.size());
2719 &poll_event, reinterpret_cast<uint8_t*>(eventData.data()),
2726 &poll_event, reinterpret_cast<uint8_t*>(eventData.data()),
2738 (struct pldm_sensor_event_sensor_op_state*)eventDataArr.data();
2767 rc = decode_sensor_op_data(reinterpret_cast<uint8_t*>(sensorData.data()),
2773 rc = decode_sensor_op_data(reinterpret_cast<uint8_t*>(sensorData.data()),
2784 (struct pldm_sensor_event_state_sensor_state*)eventDataArr.data();
2818 rc = decode_state_sensor_data(reinterpret_cast<uint8_t*>(sensorData.data()),
2824 rc = decode_state_sensor_data(reinterpret_cast<uint8_t*>(sensorData.data()),
2835 (struct pldm_sensor_event_numeric_sensor_state*)eventDataArr.data();
2907 reinterpret_cast<uint8_t*>(sensorData.data()), sensorDataLength - 1,
2912 (struct pldm_sensor_event_numeric_sensor_state*)sensorData.data();
2916 reinterpret_cast<uint8_t*>(sensorData.data()), sensorDataLength,
2923 reinterpret_cast<uint8_t*>(sensorData.data()), sensorDataLength,
2936 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
2964 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
2993 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
3023 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
3058 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
3108 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
3165 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
3212 eventDataArr.data());
3296 reinterpret_cast<const uint8_t*>(eventData.data()), 0, &eventDataFormat,
3311 reinterpret_cast<const uint8_t*>(changeRecord.data()), 0,
3325 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
3357 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
3391 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
3412 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
3454 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
3504 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
3571 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
3613 auto msg = reinterpret_cast<const pldm_msg*>(req.data());
3647 auto msg = reinterpret_cast<const pldm_msg*>(req.data());
3670 auto msg = reinterpret_cast<const pldm_msg*>(req.data());
3695 auto msg = reinterpret_cast<const pldm_msg*>(req.data());
3734 auto msg = reinterpret_cast<const pldm_msg*>(req.data());
3758 auto msg = reinterpret_cast<const pldm_msg*>(req.data());
3770 auto request = new (requestMsg.data()) pldm_msg;
3797 auto response = new (responseMsg.data()) pldm_msg;
3809 auto response = new (responseMsg.data()) pldm_msg;
3840 auto response = new (responseMsg.data()) pldm_msg;
3865 auto response = new (responseMsg.data()) pldm_msg;
3899 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
3926 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
3944 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
3959 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
3979 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
4007 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
4060 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
4174 decode_numeric_sensor_pdr_data(pdr1.data(), pdr1.size(), &decodedPdr);
4301 decode_numeric_sensor_pdr_data(pdr1.data(), pdr1.size(), &decodedPdr);
4409 decode_numeric_sensor_pdr_data(pdr1.data(), pdr1.size(), &decodedPdr);
4517 decode_numeric_sensor_pdr_data(pdr1.data(), pdr1.size(), &decodedPdr);
4649 decode_numeric_sensor_pdr_data(pdr1.data(), pdr1.size(), &decodedPdr);
4781 decode_numeric_sensor_pdr_data(pdr1.data(), pdr1.size(), &decodedPdr);
4913 decode_numeric_sensor_pdr_data(pdr1.data(), pdr1.size(), &decodedPdr);
4933 // A corrupted PDR. The data after plusTolerance missed.
4983 decode_numeric_sensor_pdr_data(pdr1.data(), pdr1.size(), &decodedPdr);
5058 decode_numeric_effecter_pdr_data(pdr1.data(), pdr1.size(), &decodedPdr);
5174 decode_numeric_effecter_pdr_data(pdr1.data(), pdr1.size(), &decodedPdr);
5271 decode_numeric_effecter_pdr_data(pdr1.data(), pdr1.size(), &decodedPdr);
5368 decode_numeric_effecter_pdr_data(pdr1.data(), pdr1.size(), &decodedPdr);
5479 decode_numeric_effecter_pdr_data(pdr1.data(), pdr1.size(), &decodedPdr);
5590 decode_numeric_effecter_pdr_data(pdr1.data(), pdr1.size(), &decodedPdr);
5701 decode_numeric_effecter_pdr_data(pdr1.data(), pdr1.size(), &decodedPdr);
5732 auto request = reinterpret_cast<pldm_msg*>(requestMsg.data());
5792 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
5854 auto response = reinterpret_cast<pldm_msg*>(responseMsg.data());
5917 auto rc = decode_entity_auxiliary_names_pdr(pdr1.data(), pdr1.size(),
6028 auto rc = decode_entity_auxiliary_names_pdr(pdr1.data(), pdr1.size(),
6043 0x4, 0x0, // event data length
6044 0x44, 0x33, 0x22, 0x11 // data
6060 reinterpret_cast<const void*>(eventData.data()), eventData.size(),
6088 0x4, 0x0, // event data length
6089 0x44, 0x33, 0x22, 0x11 // data
6104 reinterpret_cast<const void*>(eventData.data()), eventData.size(), NULL,
6110 reinterpret_cast<uint8_t*>(eventData.data()), eventData.size() - 1,
6116 reinterpret_cast<uint8_t*>(eventData.data()), eventData.size(),
6122 reinterpret_cast<uint8_t*>(eventData.data()), eventData.size(),
6130 reinterpret_cast<const void*>(eventData.data()), eventData.size(),
6135 // Invalid cper event data size
6140 reinterpret_cast<const void*>(eventData.data()), eventData.size(),
6148 reinterpret_cast<const void*>(eventData.data()), eventData.size(),
6193 auto rc = decode_pldm_platform_file_descriptor_pdr(pdr1.data(), pdr1.size(),
6269 rc = decode_pldm_platform_file_descriptor_pdr(pdr1.data(), pdr1.size(),
6310 /* Expect error: Invalid input data length*/
6311 rc = decode_pldm_platform_file_descriptor_pdr(pdr1.data(), 1, &decodedPdr);
6353 * Expect error: The original length of the data buffer is larger than
6356 rc = decode_pldm_platform_file_descriptor_pdr(pdr1.data(), pdr1.size(),
6398 * Expect error: The original length of the data buffer is smaller than
6401 rc = decode_pldm_platform_file_descriptor_pdr(pdr1.data(), pdr1.size(),
6465 encode_pldm_platform_file_descriptor_pdr(&pdr, buffer.data(), &pdrLen);
6469 rc = decode_pldm_platform_file_descriptor_pdr(buffer.data(), buffer.size(),
6516 encode_pldm_platform_file_descriptor_pdr(&pdr, buffer.data(), &pdrLen),
6524 encode_pldm_platform_file_descriptor_pdr(&pdr, buffer.data(), &pdrLen),
6532 EXPECT_EQ(encode_pldm_platform_file_descriptor_pdr(NULL, pdrBuf.data(),
6556 encode_pldm_platform_file_descriptor_pdr(&pdr, buffer.data(), &pdrLen),
6573 encode_pldm_platform_file_descriptor_pdr(&pdr, buffer.data(), &pdrLen),
6580 encode_pldm_platform_file_descriptor_pdr(&pdr, buffer.data(), &pdrLen),
6594 encode_pldm_platform_file_descriptor_pdr(&pdr, buffer.data(), &pdrLen),
6607 encode_pldm_platform_file_descriptor_pdr(&pdr, buffer.data(), &pdrLen),
6619 EXPECT_EQ(encode_pldm_platform_file_descriptor_pdr(&pdr, buffer.data(),