Home
last modified time | relevance | path

Searched refs:bytesRead (Results 1 – 17 of 17) sorted by relevance

/hardware/qcom/sm8150/media/libplatformconfig/
DConfigParser.cpp98 int bytesRead; in initAndParse() local
109 bytesRead = fread(buf, 1, BUF_SIZE, file); in initAndParse()
110 if (bytesRead < 0) { in initAndParse()
111 VIDC_PLAT_LOGH("%s: fread failed, bytes read = %d", __func__, bytesRead); in initAndParse()
112 err = bytesRead; in initAndParse()
116 if (XML_ParseBuffer(parser, bytesRead, in initAndParse()
117 bytesRead == 0) == XML_STATUS_ERROR) { in initAndParse()
123 if (bytesRead == 0) in initAndParse()
/hardware/qcom/sdm845/media/libplatformconfig/
DConfigParser.cpp97 int bytesRead; in initAndParse() local
108 bytesRead = fread(buf, 1, BUF_SIZE, file); in initAndParse()
109 if (bytesRead < 0) { in initAndParse()
110 VIDC_PLAT_LOGH("%s: fread failed, bytes read = %d", __func__, bytesRead); in initAndParse()
111 err = bytesRead; in initAndParse()
115 if (XML_ParseBuffer(parser, bytesRead, in initAndParse()
116 bytesRead == 0) == XML_STATUS_ERROR) { in initAndParse()
122 if (bytesRead == 0) in initAndParse()
/hardware/st/secure_element/ese-spi-driver/
DSpiLayerInterface.cc112 int bytesRead = SpiLayerComm_readTpdu(respTpdu); in SpiLayerInterface_transcieveTpdu() local
113 if (bytesRead < 0) { in SpiLayerInterface_transcieveTpdu()
114 STLOG_HAL_E("Error when reading from SPI interface (%d).", bytesRead); in SpiLayerInterface_transcieveTpdu()
117 STLOG_HAL_D("%d bytes read from SPI interface", bytesRead); in SpiLayerInterface_transcieveTpdu()
124 return bytesRead; in SpiLayerInterface_transcieveTpdu()
DSpiLayerComm.cc308 int bytesRead; in SpiLayerComm_readTpdu() local
310 bytesRead = SpiLayerDriver_read(rxBuffer, pendingBytes); in SpiLayerComm_readTpdu()
313 if (bytesRead != pendingBytes) { in SpiLayerComm_readTpdu()
314 STLOG_HAL_E("Tpdu bytes read does not match the expected %d %d", bytesRead, in SpiLayerComm_readTpdu()
335 STLOG_HAL_V("%s : bytesRead = %d", __func__, bytesRead); in SpiLayerComm_readTpdu()
336 return 3 + bytesRead; in SpiLayerComm_readTpdu()
DT1protocol.h283 Tpdu *lastRespTpduReceived, int *bytesRead);
349 Tpdu *lastRespTpduReceived, int *bytesRead);
DT1protocol.cc804 Tpdu* lastRespTpduReceived, int* bytesRead) { in T1protocol_doResendRequest() argument
821 *bytesRead = result; in T1protocol_doResendRequest()
970 Tpdu* lastRespTpduReceived, int* bytesRead) { in T1protocol_handleTpduResponse() argument
976 if (*bytesRead == 0) { in T1protocol_handleTpduResponse()
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/
Dml_stored_data.c44 inv_error_t inv_read_cal(unsigned char **calData, size_t *bytesRead) in inv_read_cal() argument
69 *bytesRead = fread(*calData, 1, fsize, fp); in inv_read_cal()
70 if (*bytesRead != fsize) { in inv_read_cal()
72 *bytesRead, fsize); in inv_read_cal()
76 MPL_LOGV("Bytes read = %d", *bytesRead); in inv_read_cal()
279 size_t bytesRead = 0; in inv_load_calibration() local
281 result = inv_read_cal(&calData, &bytesRead); in inv_load_calibration()
288 result = inv_load_mpl_states(calData, bytesRead); in inv_load_calibration()
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/
Dml_stored_data.c44 inv_error_t inv_read_cal(unsigned char **calData, size_t *bytesRead) in inv_read_cal() argument
69 *bytesRead = fread(*calData, 1, fsize, fp); in inv_read_cal()
70 if (*bytesRead != fsize) { in inv_read_cal()
72 *bytesRead, fsize); in inv_read_cal()
76 MPL_LOGV("Bytes read = %d", *bytesRead); in inv_read_cal()
279 size_t bytesRead = 0; in inv_load_calibration() local
281 result = inv_read_cal(&calData, &bytesRead); in inv_load_calibration()
288 result = inv_load_mpl_states(calData, bytesRead); in inv_load_calibration()
/hardware/st/nfc/st21nfc/adaptation/
Di2clayer.cc110 int bytesRead = i2cRead(fidI2c, buffer, 3); in I2cWorkerThread() local
112 if (bytesRead == 3) { in I2cWorkerThread()
122 bytesRead = i2cRead(fidI2c, buffer + 2, 1); in I2cWorkerThread()
123 if (bytesRead == 1) { in I2cWorkerThread()
130 bytesRead = i2cRead(fidI2c, buffer + 1, 2); in I2cWorkerThread()
131 if (bytesRead == 2) { in I2cWorkerThread()
141 bytesRead = 0; in I2cWorkerThread()
144 bytesRead = i2cRead(fidI2c, buffer + 3, remaining); in I2cWorkerThread()
146 if (bytesRead == remaining) { in I2cWorkerThread()
147 DispHal("RX DATA", buffer, 3 + bytesRead); in I2cWorkerThread()
[all …]
/hardware/st/nfc/1.0/adaptation/
Di2clayer.c111 int bytesRead = i2cRead(fidI2c, buffer, 3); in I2cWorkerThread() local
113 if (bytesRead == 3) { in I2cWorkerThread()
122 bytesRead = i2cRead(fidI2c, buffer + 2, 1); in I2cWorkerThread()
123 if (bytesRead == 1) { in I2cWorkerThread()
130 bytesRead = i2cRead(fidI2c, buffer + 1, 2); in I2cWorkerThread()
131 if (bytesRead == 2) { in I2cWorkerThread()
143 bytesRead = i2cRead(fidI2c, buffer + 3, remaining); in I2cWorkerThread()
144 if (bytesRead == remaining) { in I2cWorkerThread()
145 DispHal("RX DATA", buffer, 3 + bytesRead); in I2cWorkerThread()
146 HalSendUpstream(hHAL, buffer, 3 + bytesRead); in I2cWorkerThread()
/hardware/qcom/display/msm8994/libhwcomposer/
Dhwc_ad.cpp79 ssize_t bytesRead = read(adFd, opStr, sizeof(opStr) - 1); in adRead() local
80 if(bytesRead > 0) { in adRead()
81 opStr[bytesRead] = '\0'; in adRead()
85 } else if(bytesRead == 0) { in adRead()
/hardware/libhardware_legacy/audio/
DAudioDumpInterface.cpp489 ssize_t bytesRead = fread(buffer, bytes, 1, mFile); in read() local
490 if (bytesRead >=0 && bytesRead < bytes) { in read()
492 fread((uint8_t *)buffer+bytesRead, bytes-bytesRead, 1, mFile); in read()
/hardware/qcom/display/msm8994/libhdmi/
Dhdmi.cpp696 ssize_t bytesRead = read(connectedNode, opStr, sizeof(opStr) - 1); in getConnectedState() local
697 if(bytesRead > 0) { in getConnectedState()
698 opStr[bytesRead] = '\0'; in getConnectedState()
701 } else if(bytesRead == 0) { in getConnectedState()
/hardware/nxp/nfc/halimpl/dnld/
DphDnldNfc.cc1019 uint32_t bytesRead = 0; in phDnldNfc_LoadBinFW() local
1067 bytesRead = in phDnldNfc_LoadBinFW()
1069 if (bytesRead != fileSize) { in phDnldNfc_LoadBinFW()
1079 *pImgInfoLen = (uint16_t)(bytesRead & 0xFFFF); in phDnldNfc_LoadBinFW()
/hardware/qcom/camera/msm8998/usbcamcore/src/
DQualcommUsbCamera.cpp2766 int bytesRead = 0, fileSize = 0; in readFromFile() local
2772 return bytesRead; in readFromFile()
2778 return bytesRead; in readFromFile()
2781 bytesRead = fread(buffer, 1, bufferSize, fp); in readFromFile()
2782 ALOGD(" %s: bytesRead: %d", __func__, bytesRead); in readFromFile()
2784 return bytesRead; in readFromFile()
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/test/
Domx_vdec_test.cpp2712 int bytesRead = 0; in Read_Buffer_From_Mpeg2_Start_Code() local
2726 bytesRead = read(inputBufferFileFd, &pBufHdr->pBuffer[readOffset], 1); in Read_Buffer_From_Mpeg2_Start_Code()
2729 if (bytesRead == 0 || bytesRead == -1) { in Read_Buffer_From_Mpeg2_Start_Code()
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/test/
Domx_vdec_test.cpp3019 int bytesRead = 0; in Read_Buffer_From_Mpeg2_Start_Code() local
3033 bytesRead = read(inputBufferFileFd, &pBufHdr->pBuffer[readOffset], 1); in Read_Buffer_From_Mpeg2_Start_Code()
3036 if (bytesRead == 0 || bytesRead == -1) { in Read_Buffer_From_Mpeg2_Start_Code()