Home
last modified time | relevance | path

Searched refs:checksum (Results 1 – 25 of 36) sorted by relevance

12

/hardware/st/secure_element/ese-spi-driver/utils-lib/
DTpdu.cc57 uint8_t checksum[2]; in Tpdu_toByteArray() local
60 Tpdu_getChecksumBytes(structTpdu, checksum); in Tpdu_toByteArray()
61 baTpdu[checksumOffsetInTpdu] = checksum[0]; in Tpdu_toByteArray()
66 Tpdu_getChecksumBytes(structTpdu, checksum); in Tpdu_toByteArray()
67 baTpdu[checksumOffsetInTpdu] = checksum[0]; in Tpdu_toByteArray()
68 baTpdu[checksumOffsetInTpdu + 1] = checksum[1]; in Tpdu_toByteArray()
95 if (tpdu->checksum == in Tpdu_isChecksumOk()
148 tpdu->checksum = 0; in Tpdu_formTpdu()
155 tpdu->checksum = computeCrc(buffer, (TPDU_PROLOGUE_LENGTH + tpdu->len)); in Tpdu_formTpdu()
177 checksumBytes[0] = (uint8_t)tpdu->checksum; in Tpdu_getChecksumBytes()
[all …]
DAtp.cc68 tmpAtp.checksum = Atp_getChecksumValue(baAtp, CHECKSUM_OFFSET_IN_ATP); in Atp_setAtp()
72 tmpAtp.checksum) { in Atp_setAtp()
DAtp.h63 uint16_t checksum; member
DTpdu.h51 uint16_t checksum; member
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Dstorage_manager.c39 uint32_t checksum; member
130 uint32_t checksum; in inv_load_mpl_states() local
145 checksum = inv_checksum(data, len); in inv_load_mpl_states()
146 if (checksum != hd->checksum) in inv_load_mpl_states()
157 checksum = inv_checksum(data, hd->size); in inv_load_mpl_states()
158 if (checksum != hd->checksum) in inv_load_mpl_states()
190 hd->checksum = inv_checksum(cur, ds.hd[kk].size); in inv_save_mpl_states()
200 hd->checksum = inv_checksum(data + sizeof(struct data_header_t), in inv_save_mpl_states()
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Dstorage_manager.c39 uint32_t checksum; member
130 uint32_t checksum; in inv_load_mpl_states() local
145 checksum = inv_checksum(data, len); in inv_load_mpl_states()
146 if (checksum != hd->checksum) in inv_load_mpl_states()
157 checksum = inv_checksum(data, hd->size); in inv_load_mpl_states()
158 if (checksum != hd->checksum) in inv_load_mpl_states()
190 hd->checksum = inv_checksum(cur, ds.hd[kk].size); in inv_save_mpl_states()
200 hd->checksum = inv_checksum(data + sizeof(struct data_header_t), in inv_save_mpl_states()
/hardware/google/pixel/pixelstats/
DBatteryEEPROMReporter.cpp82 &hist.checksum); in checkAndReport()
107 int checksum = 0; in checkLogEvent() local
109 checksum = hist.cycle_cnt + hist.full_cap + hist.esr + hist.rslow in checkLogEvent()
115 if (checksum == hist.checksum) { in checkLogEvent()
144 hist.min_ibatt, hist.checksum); in reportEvent()
185 val.set<VendorAtomValue::intValue>(hist.checksum); in reportEvent()
/hardware/st/secure_element/ese-spi-driver/
DSpiLayerComm.cc342 respTpdu->checksum = Tpdu_getChecksumValue(rxBuffer, respTpdu->len, LRC); in SpiLayerComm_readTpdu()
345 respTpdu->checksum = Tpdu_getChecksumValue(rxBuffer, respTpdu->len, CRC); in SpiLayerComm_readTpdu()
DT1protocol.cc113 respTpdu->checksum) { in T1protocol_checkResponseTpduChecksum()
554 responseTpdu->checksum = 0x0000; in T1protocol_formSblockResponse()
559 responseTpdu->checksum = in T1protocol_formSblockResponse()
/hardware/google/pixel/pixelstats/include/pixelstats/
DBatteryEEPROMReporter.h97 uint16_t checksum; member
/hardware/st/secure_element2/secure_element/
DAndroid.bp27 "1.0/esehal/src/checksum.c",
106 "1.0/esehal/src/checksum.c",
188 "1.0/esehal/src/checksum.c",
275 "1.0/esehal/src/checksum.c",
354 "1.0/esehal/src/checksum.c",
436 "1.0/esehal/src/checksum.c",
/hardware/qcom/gps/msm8960/loc_api/libloc_api_50001/
Dloc_eng_nmea.cpp81 uint8_t checksum = 0; in loc_eng_nmea_put_checksum() local
87 checksum ^= *pNmea++; in loc_eng_nmea_put_checksum()
91 int checksumLength = snprintf(pNmea,(maxSize-length-1),"*%02X\r\n", checksum); in loc_eng_nmea_put_checksum()
/hardware/qcom/sdm845/gps/msm8960/loc_api/libloc_api_50001/
Dloc_eng_nmea.cpp81 uint8_t checksum = 0; in loc_eng_nmea_put_checksum() local
87 checksum ^= *pNmea++; in loc_eng_nmea_put_checksum()
91 int checksumLength = snprintf(pNmea,(maxSize-length-1),"*%02X\r\n", checksum); in loc_eng_nmea_put_checksum()
/hardware/qcom/gps/msm8996/loc_api/libloc_api_50001/
Dloc_eng_nmea.cpp81 uint8_t checksum = 0; in loc_eng_nmea_put_checksum() local
87 checksum ^= *pNmea++; in loc_eng_nmea_put_checksum()
92 int checksumLength = snprintf(pNmea,(maxSize-length-1),"*%02X\r\n", checksum); in loc_eng_nmea_put_checksum()
/hardware/qcom/sdm845/gps/msm8996/loc_api/libloc_api_50001/
Dloc_eng_nmea.cpp81 uint8_t checksum = 0; in loc_eng_nmea_put_checksum() local
87 checksum ^= *pNmea++; in loc_eng_nmea_put_checksum()
92 int checksumLength = snprintf(pNmea,(maxSize-length-1),"*%02X\r\n", checksum); in loc_eng_nmea_put_checksum()
/hardware/qcom/sdm845/gps/msm8909/loc_api/libloc_api_50001/
Dloc_eng_nmea.cpp81 uint8_t checksum = 0; in loc_eng_nmea_put_checksum() local
87 checksum ^= *pNmea++; in loc_eng_nmea_put_checksum()
91 int checksumLength = snprintf(pNmea,(maxSize-length-1),"*%02X\r\n", checksum); in loc_eng_nmea_put_checksum()
/hardware/qcom/gps/msm8909/loc_api/libloc_api_50001/
Dloc_eng_nmea.cpp81 uint8_t checksum = 0; in loc_eng_nmea_put_checksum() local
87 checksum ^= *pNmea++; in loc_eng_nmea_put_checksum()
91 int checksumLength = snprintf(pNmea,(maxSize-length-1),"*%02X\r\n", checksum); in loc_eng_nmea_put_checksum()
/hardware/qcom/gps/loc_api/libloc_api_50001/
Dloc_eng_nmea.cpp85 uint8_t checksum = 0; in loc_eng_nmea_put_checksum() local
91 checksum ^= *pNmea++; in loc_eng_nmea_put_checksum()
95 int checksumLength = snprintf(pNmea,(maxSize-length-1),"*%02X\r\n", checksum); in loc_eng_nmea_put_checksum()
/hardware/qcom/sdm845/gps/msm8994/loc_api/libloc_api_50001/
Dloc_eng_nmea.cpp86 uint8_t checksum = 0; in loc_eng_nmea_put_checksum() local
92 checksum ^= *pNmea++; in loc_eng_nmea_put_checksum()
96 int checksumLength = snprintf(pNmea,(maxSize-length-1),"*%02X\r\n", checksum); in loc_eng_nmea_put_checksum()
/hardware/qcom/sdm845/gps/loc_api/libloc_api_50001/
Dloc_eng_nmea.cpp85 uint8_t checksum = 0; in loc_eng_nmea_put_checksum() local
91 checksum ^= *pNmea++; in loc_eng_nmea_put_checksum()
95 int checksumLength = snprintf(pNmea,(maxSize-length-1),"*%02X\r\n", checksum); in loc_eng_nmea_put_checksum()
/hardware/qcom/gps/msm8994/loc_api/libloc_api_50001/
Dloc_eng_nmea.cpp86 uint8_t checksum = 0; in loc_eng_nmea_put_checksum() local
92 checksum ^= *pNmea++; in loc_eng_nmea_put_checksum()
96 int checksumLength = snprintf(pNmea,(maxSize-length-1),"*%02X\r\n", checksum); in loc_eng_nmea_put_checksum()
/hardware/qcom/sdm845/gps/msm8084/loc_api/libloc_api_50001/
Dloc_eng_nmea.cpp85 uint8_t checksum = 0; in loc_eng_nmea_put_checksum() local
91 checksum ^= *pNmea++; in loc_eng_nmea_put_checksum()
95 int checksumLength = snprintf(pNmea,(maxSize-length-1),"*%02X\r\n", checksum); in loc_eng_nmea_put_checksum()
/hardware/qcom/gps/msm8084/loc_api/libloc_api_50001/
Dloc_eng_nmea.cpp85 uint8_t checksum = 0; in loc_eng_nmea_put_checksum() local
91 checksum ^= *pNmea++; in loc_eng_nmea_put_checksum()
95 int checksumLength = snprintf(pNmea,(maxSize-length-1),"*%02X\r\n", checksum); in loc_eng_nmea_put_checksum()
/hardware/nxp/secure_element/snxxx/libese-spi/p73/lib/
DphNxpEseProto7816_3.h191 uint8_t checksum; /*!< ATR: Checksum (0 = LRC / 1 = CRC) */ member
/hardware/qcom/sdm845/gps/sdm845/utils/
Dloc_nmea.cpp185 uint8_t checksum = 0; in loc_nmea_put_checksum() local
193 checksum ^= *pNmea++; in loc_nmea_put_checksum()
198 int checksumLength = snprintf(pNmea,(maxSize-length-1),"*%02X\r\n", checksum); in loc_nmea_put_checksum()

12