Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 25 of 40) sorted by relevance

12

/hardware/interfaces/bluetooth/1.0/default/
Dhci_packetizer.cc54 ssize_t bytes_read = TEMP_FAILURE_RETRY( in OnDataReady() local
57 if (bytes_read == 0) { in OnDataReady()
63 if (bytes_read < 0) { in OnDataReady()
67 bytes_read_ += bytes_read; in OnDataReady()
81 ssize_t bytes_read = TEMP_FAILURE_RETRY(read( in OnDataReady() local
85 if (bytes_read == 0) { in OnDataReady()
91 if (bytes_read < 0) { in OnDataReady()
95 bytes_remaining_ -= bytes_read; in OnDataReady()
96 bytes_read_ += bytes_read; in OnDataReady()
Dh4_protocol.cc75 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, 1)); in OnDataReady() local
76 if (bytes_read != 1) { in OnDataReady()
77 if (bytes_read == 0) { in OnDataReady()
82 } else if (bytes_read < 0) { in OnDataReady()
87 static_cast<unsigned int>(bytes_read)); in OnDataReady()
Dbluetooth_address.cc56 int bytes_read = read(addr_fd, address, kStringLength); in get_local_address() local
57 if (bytes_read == -1) { in get_local_address()
/hardware/qcom/audio/hal/audio_extn/
Daudiozoom.c124 int bytes_read; in audio_extn_audiozoom_parse_info() local
152 bytes_read = fread(buf, 1, kBufSize, file); in audio_extn_audiozoom_parse_info()
153 if (bytes_read < 0) { in audio_extn_audiozoom_parse_info()
154 ALOGE("%s: fread failed, bytes read = %d", __func__, bytes_read); in audio_extn_audiozoom_parse_info()
155 ret = bytes_read; in audio_extn_audiozoom_parse_info()
159 if (XML_ParseBuffer(parser, bytes_read, in audio_extn_audiozoom_parse_info()
160 bytes_read == 0) == XML_STATUS_ERROR) { in audio_extn_audiozoom_parse_info()
167 if (bytes_read == 0) in audio_extn_audiozoom_parse_info()
Dsndmonitor.c159 ssize_t bytes_read; in enum_sndcards() local
179 while ((bytes_read = getline(&line, &len, fp) != -1)) { in enum_sndcards()
/hardware/knowles/athletico/sound_trigger_hal/tests/
Dcrash_event_logger.c242 int bytes_read = 0; in dump_crash_log() local
277 bytes_read = read(inp_fp, buf, BUF_SIZE); in dump_crash_log()
278 if (bytes_read > 0) in dump_crash_log()
279 write(out_fp, buf, bytes_read); in dump_crash_log()
280 } while (bytes_read > 0); in dump_crash_log()
308 int bytes_read = 0; in dump_reg_access_hist_log() local
343 bytes_read = read(inp_fp, buf, BUF_SIZE); in dump_reg_access_hist_log()
344 if (bytes_read > 0) in dump_reg_access_hist_log()
345 write(out_fp, buf, bytes_read); in dump_reg_access_hist_log()
346 } while (bytes_read > 0); in dump_reg_access_hist_log()
[all …]
Dsetparamblk_test.c61 long file_len, bytes_read; in setparamblk_with_ack_test() local
79 bytes_read = fread(data, 1, file_len, fp); in setparamblk_with_ack_test()
80 if (bytes_read != file_len) { in setparamblk_with_ack_test()
Dtunnel_test_sensor.c74 int bytes_read = 0; in main() local
276 bytes_read += rft.format.frameSizeInBytes + min_bytes_req; in main()
286 ALOGD("bytes_read so far %d", bytes_read); in main()
Dtunnel_test.c88 int bytes_read = 0; local
373 bytes_read += rft.format.frameSizeInBytes + min_bytes_req;
383 ALOGE("bytes_read so far %d", bytes_read);
/hardware/qcom/wlan/qcwcn/wifi_hal/
Dring_buffer.cpp346 unsigned int bytes_read = 0; in rb_read() local
350 while (bytes_read < max_length) { in rb_read()
365 (max_length - bytes_read)) { in rb_read()
369 cur_cpy_len = max_length - bytes_read; in rb_read()
375 if (rbc->cur_valid_bytes <= bytes_read) { in rb_read()
381 (max_length - bytes_read)); in rb_read()
389 (max_length - bytes_read)); in rb_read()
392 memcpy((buf + bytes_read), in rb_read()
413 bytes_read += cur_cpy_len; in rb_read()
419 rbc->total_bytes_read += bytes_read; in rb_read()
[all …]
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/test/
Domx_vdec_test.cpp2831 int bytes_read=0; in Read_Buffer_From_DAT_File() local
2857 bytes_read = read(inputBufferFileFd, pBufHdr->pBuffer, frameSize); in Read_Buffer_From_DAT_File()
2860 frameSize, bytes_read); in Read_Buffer_From_DAT_File()
2862 if (bytes_read == 0 || bytes_read < frameSize ) { in Read_Buffer_From_DAT_File()
2870 return bytes_read; in Read_Buffer_From_DAT_File()
2875 int bytes_read = 0; in Read_Buffer_From_H264_Start_Code_File() local
2884 bytes_read = read(inputBufferFileFd, &dataptr[cnt], 1); in Read_Buffer_From_H264_Start_Code_File()
2885 if (!bytes_read) { in Read_Buffer_From_H264_Start_Code_File()
2899 bytes_read = read(inputBufferFileFd, &dataptr[cnt], 1); in Read_Buffer_From_H264_Start_Code_File()
2900 if (!bytes_read) { in Read_Buffer_From_H264_Start_Code_File()
[all …]
Ddecoder_driver_test.c1006 int bytes_read = 0; in read_frame() local
1023 bytes_read = fread(&dataptr[readOffset],1, 1,inputBufferFile); in read_frame()
1025 if ( !bytes_read) { in read_frame()
1079 bytes_read = Read_Buffer_From_DAT_File(&dataptr[readOffset], in read_frame()
1082 readOffset += bytes_read; in read_frame()
1098 int bytes_read=0; in Read_Buffer_From_DAT_File() local
1125 bytes_read = fread(dataptr, 1, frameSize, inputBufferFile); in Read_Buffer_From_DAT_File()
1127 if (bytes_read == 0 || bytes_read < frameSize ) { in Read_Buffer_From_DAT_File()
1131 return bytes_read; in Read_Buffer_From_DAT_File()
/hardware/st/nfc/1.0/adaptation/
Di2clayer.c188 size_t bytes_read = 1; in I2cWorkerThread() local
190 while((bytes_read > 0) && (length > 0)) in I2cWorkerThread()
192 bytes_read = read(cmdPipe[0],buffer,MAX_BUFFER_SIZE); in I2cWorkerThread()
193 length = length - bytes_read; in I2cWorkerThread()
/hardware/st/nfc/st21nfc/adaptation/
Di2clayer.cc190 size_t bytes_read = 1; in I2cWorkerThread() local
192 while ((bytes_read > 0) && (length > 0)) { in I2cWorkerThread()
193 bytes_read = read(cmdPipe[0], buffer, MAX_BUFFER_SIZE); in I2cWorkerThread()
194 length = length - bytes_read; in I2cWorkerThread()
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/test/
Domx_vdec_test.cpp2590 int bytes_read=0; in Read_Buffer_From_DAT_File() local
2615 bytes_read = read(inputBufferFileFd, pBufHdr->pBuffer, frameSize); in Read_Buffer_From_DAT_File()
2618 frameSize, bytes_read); in Read_Buffer_From_DAT_File()
2620 if(bytes_read == 0 || bytes_read < frameSize ) { in Read_Buffer_From_DAT_File()
2628 return bytes_read; in Read_Buffer_From_DAT_File()
2633 int bytes_read=0; in Read_Buffer_ArbitraryBytes() local
2635 bytes_read = read(inputBufferFileFd, pBufHdr->pBuffer, NUMBER_OF_ARBITRARYBYTES_READ); in Read_Buffer_ArbitraryBytes()
2636 if(bytes_read == 0) { in Read_Buffer_ArbitraryBytes()
2651 return bytes_read; in Read_Buffer_ArbitraryBytes()
2657 int bytes_read = 0; in Read_Buffer_From_Vop_Start_Code_File() local
[all …]
Ddecoder_driver_test.c1069 int bytes_read = 0; in read_frame() local
1088 bytes_read = fread(&dataptr[readOffset],1, 1,inputBufferFile); in read_frame()
1089 if( !bytes_read) in read_frame()
1151 bytes_read = Read_Buffer_From_DAT_File(&dataptr[readOffset], in read_frame()
1154 readOffset += bytes_read; in read_frame()
1169 int bytes_read=0; in Read_Buffer_From_DAT_File() local
1192 bytes_read = fread(dataptr, 1, frameSize, inputBufferFile); in Read_Buffer_From_DAT_File()
1194 if(bytes_read == 0 || bytes_read < frameSize ) { in Read_Buffer_From_DAT_File()
1197 return bytes_read; in Read_Buffer_From_DAT_File()
/hardware/qcom/audio/hal/
Dplatform_info.c1018 int bytes_read; in platform_info_init() local
1064 bytes_read = fread(buf, 1, kBufSize, file); in platform_info_init()
1065 if (bytes_read < 0) { in platform_info_init()
1066 ALOGE("%s: fread failed, bytes read = %d", __func__, bytes_read); in platform_info_init()
1067 ret = bytes_read; in platform_info_init()
1071 if (XML_ParseBuffer(parser, bytes_read, in platform_info_init()
1072 bytes_read == 0) == XML_STATUS_ERROR) { in platform_info_init()
1079 if (bytes_read == 0) in platform_info_init()
/hardware/knowles/athletico/sound_trigger_hal/
Dadnc_strm.c296 int bytes_read, bytes_rem; in adnc_strm_read() local
327 bytes_read = ia_read_tunnel_data(adnc_strm_dev->tun_hdl, in adnc_strm_read()
332 if (bytes_read <= 0) { in adnc_strm_read()
340 adnc_strm_dev->unparsed_avail_size += bytes_read; in adnc_strm_read()
/hardware/nxp/secure_element/ls_client/src/
DLsLib.cpp427 Os_info->bytes_read = 0; in LSC_loadapplet()
435 while (!feof(Os_info->fp) && (Os_info->bytes_read < Os_info->fls_size)) { in LSC_loadapplet()
578 while (!feof(Os_info->fp) && (Os_info->bytes_read < Os_info->fls_size)) { in LSC_Check_KeyIdentifier()
674 Os_info->bytes_read = Os_info->bytes_read + (wCount * 2); in LSC_ReadScript()
687 Os_info->bytes_read = Os_info->bytes_read + (wCount * 2); in LSC_ReadScript()
721 Os_info->bytes_read = Os_info->bytes_read + (wCount * 2); in LSC_ReadScript()
735 Os_info->bytes_read = Os_info->bytes_read + (wCount * 2); in LSC_ReadScript()
760 Os_info->bytes_read = in LSC_ReadScript()
761 Os_info->bytes_read + (wCount * 2) + 1; // not sure why 2 added in LSC_ReadScript()
764 Os_info->bytes_read, wIndex); in LSC_ReadScript()
/hardware/qcom/camera/msm8998/usbcamcore/src/
DQCameraMjpegDecode.cpp622 int bytes_to_read, bytes_read, rc; in decoder_input_req_handler() local
632 bytes_read = 0; in decoder_input_req_handler()
644 bytes_read = bytes_to_read; in decoder_input_req_handler()
648 return bytes_read; in decoder_input_req_handler()
/hardware/libhardware/include/hardware/
Dnvram.h276 uint8_t* buffer, uint64_t* bytes_read);
/hardware/qcom/display/msm8996/sdm/libs/core/fb/
Dhw_hdmi.cpp495 ssize_t bytes_read = 0; in ReadResolutionFile() local
498 bytes_read = Sys::pread_(fd, config_buffer, kPageSize, 0); in ReadResolutionFile()
502 DLOGI_IF(kTagDriverConfig, "bytes_read = %d", bytes_read); in ReadResolutionFile()
504 return (bytes_read > 0); in ReadResolutionFile()
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/test/
Dvideo_encoder_test.c1047 int bytes_read = 0; in read_frame() local
1060 bytes_read = fread(&dataptr[readOffset],1,length,inputBufferFile); in read_frame()
1063 return bytes_read; in read_frame()
/hardware/qcom/display/msm8998/sdm/libs/core/fb/
Dhw_hdmi.cpp579 ssize_t bytes_read = 0; in ReadResolutionFile() local
582 bytes_read = Sys::pread_(fd, config_buffer, kPageSize, 0); in ReadResolutionFile()
586 DLOGI_IF(kTagDriverConfig, "bytes_read = %d", bytes_read); in ReadResolutionFile()
588 return (bytes_read > 0); in ReadResolutionFile()
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/fb/
Dhw_hdmi.cpp591 ssize_t bytes_read = 0; in ReadResolutionFile() local
594 bytes_read = Sys::pread_(fd, config_buffer, kPageSize, 0); in ReadResolutionFile()
598 DLOGI_IF(kTagDriverConfig, "bytes_read = %d", bytes_read); in ReadResolutionFile()
600 return (bytes_read > 0); in ReadResolutionFile()

12