Home
last modified time | relevance | path

Searched refs:pFile (Results 1 – 13 of 13) sorted by relevance

/hardware/ti/omap4-aah/camera/OMXCameraAdapter/
DOMXDccDataSave.cpp139 FILE *pFile; in parseDCCsubDir() local
158 pFile = parseDCCsubDir(pSubDir, path); in parseDCCsubDir()
160 if (pFile) { in parseDCCsubDir()
163 return pFile; in parseDCCsubDir()
167 pFile = fopen(path, "rb"); in parseDCCsubDir()
168 if (pFile) { in parseDCCsubDir()
176 if (fread(&dccFileIDword, sizeof(OMX_U32), 1, pFile) != 1) { in parseDCCsubDir()
186 fclose(pFile); in parseDCCsubDir()
191 pFile = fopen(path, "rb+"); in parseDCCsubDir()
192 if (!pFile) in parseDCCsubDir()
[all …]
DOMXDCC.cpp164 FILE *pFile; in readDCCdir() local
187 pFile = fopen(temp.string(), "rb"); in readDCCdir()
188 if (pFile == NULL) { in readDCCdir()
191 fseek(pFile, 0, SEEK_END); in readDCCdir()
192 lSize = ftell(pFile); in readDCCdir()
193 rewind(pFile); in readDCCdir()
198 result = fread(buffer, 1, lSize, pFile); in readDCCdir()
207 fclose(pFile); in readDCCdir()
/hardware/ti/omap4-aah/security/smc_pa_ctrl/
Dsmc_pa_ctrl_linux.c72 FILE* pFile = NULL; in readLocalFile() local
102 pFile = fopen(pFileName, "rb"); in readLocalFile()
103 if (pFile == NULL) in readLocalFile()
109 nBytesRead = fread(pBuffer, 1, statFile.st_size, pFile); in readLocalFile()
117 nResult = fclose(pFile); in readLocalFile()
119 pFile = NULL; in readLocalFile()
143 if (pFile != NULL) in readLocalFile()
145 fclose(pFile); in readLocalFile()
/hardware/ti/omap4xxx/security/smc_pa_ctrl/
Dsmc_pa_ctrl_linux.c72 FILE* pFile = NULL; in readLocalFile() local
102 pFile = fopen(pFileName, "rb"); in readLocalFile()
103 if (pFile == NULL) in readLocalFile()
109 nBytesRead = fread(pBuffer, 1, statFile.st_size, pFile); in readLocalFile()
117 nResult = fclose(pFile); in readLocalFile()
119 pFile = NULL; in readLocalFile()
143 if (pFile != NULL) in readLocalFile()
145 fclose(pFile); in readLocalFile()
/hardware/ti/omap4xxx/security/tf_daemon/
Ddelegation_client.c654 FILE* pFile; in partitionRead() local
659 pFile = g_pPartitionFiles[nPartitionID]; in partitionRead()
661 if (pFile == NULL) in partitionRead()
667 if (fseek(pFile, nSectorIndex*g_nSectorSize, SEEK_SET) != 0) in partitionRead()
675 pFile) != 1) in partitionRead()
677 if (feof(pFile)) in partitionRead()
698 FILE* pFile; in partitionWrite() local
703 pFile = g_pPartitionFiles[nPartitionID]; in partitionWrite()
705 if (pFile == NULL) in partitionWrite()
711 if (fseek(pFile, nSectorIndex*g_nSectorSize, SEEK_SET) != 0) in partitionWrite()
[all …]
Dsmc_properties_parser.c429 FILE* pFile = NULL; in static_readFile() local
433 if ((pFile = fopen(pFilename, "rb")) == NULL) in static_readFile()
439 if (fseek(pFile, 0, SEEK_END) != 0) in static_readFile()
445 nFilesize = ftell(pFile); in static_readFile()
452 rewind(pFile); in static_readFile()
464 if (fread(pBuff, sizeof(uint8_t), (size_t)nFilesize, pFile) != (size_t)nFilesize) in static_readFile()
479 fclose(pFile); in static_readFile()
525 void* pFile; in SMCPropParseConfigFile() local
535 nError=static_readFile(pConfigFilename,&pFile,&nFileLength); in SMCPropParseConfigFile()
547 nError=SMCPropYacc(pFile,nFileLength,pConfFile); in SMCPropParseConfigFile()
[all …]
/hardware/ti/omap4-aah/security/tf_daemon/
Ddelegation_client.c697 FILE* pFile; in partitionRead() local
702 pFile = g_pPartitionFiles[nPartitionID]; in partitionRead()
704 if (pFile == NULL) in partitionRead()
710 if (fseek(pFile, nSectorIndex*g_nSectorSize, SEEK_SET) != 0) in partitionRead()
718 pFile) != 1) in partitionRead()
720 if (feof(pFile)) in partitionRead()
781 FILE* pFile; in partitionWrite() local
786 pFile = g_pPartitionFiles[nPartitionID]; in partitionWrite()
788 if (pFile == NULL) in partitionWrite()
794 if (fseek(pFile, nSectorIndex*g_nSectorSize, SEEK_SET) != 0) in partitionWrite()
[all …]
Dsmc_properties_parser.c480 FILE* pFile = NULL; in static_readFile() local
484 if ((pFile = fopen(pFilename, "rb")) == NULL) in static_readFile()
490 if (fseek(pFile, 0, SEEK_END) != 0) in static_readFile()
496 nFilesize = ftell(pFile); in static_readFile()
503 rewind(pFile); in static_readFile()
515 if (fread(pBuff, sizeof(uint8_t), (size_t)nFilesize, pFile) != (size_t)nFilesize) in static_readFile()
530 fclose(pFile); in static_readFile()
576 void* pFile; in SMCPropParseConfigFile() local
586 nError=static_readFile(pConfigFilename,&pFile,&nFileLength); in SMCPropParseConfigFile()
598 nError=SMCPropYacc(pFile,nFileLength,pConfFile,NULL); in SMCPropParseConfigFile()
[all …]
/hardware/ti/omap4xxx/domx/omx_proxy_component/omx_camera/src/
Domx_proxy_camera.c553 FILE *pFile; in read_DCCdir() local
582 pFile = fopen(temp, "rb"); in read_DCCdir()
583 if (pFile == NULL) in read_DCCdir()
589 fseek(pFile, 0, SEEK_END); in read_DCCdir()
590 lSize = ftell(pFile); in read_DCCdir()
591 rewind(pFile); in read_DCCdir()
599 lSize, pFile); in read_DCCdir()
613 fclose(pFile); in read_DCCdir()
/hardware/ti/omap4-aah/domx/omx_proxy_component/omx_camera/src/
Domx_proxy_camera.c759 FILE *pFile; in read_DCCdir() local
788 pFile = fopen(temp, "rb"); in read_DCCdir()
789 if (pFile == NULL) in read_DCCdir()
795 fseek(pFile, 0, SEEK_END); in read_DCCdir()
796 lSize = ftell(pFile); in read_DCCdir()
797 rewind(pFile); in read_DCCdir()
805 lSize, pFile); in read_DCCdir()
819 fclose(pFile); in read_DCCdir()
/hardware/qcom/bt/msm8992/libbt-vendor/src/
Dhw_rome.c748 FILE * pFile; in rome_get_tlv_file() local
758 pFile = fopen ( file_path , "r" ); in rome_get_tlv_file()
759 if (pFile==NULL) {; in rome_get_tlv_file()
765 fseek (pFile , 0 , SEEK_END); in rome_get_tlv_file()
766 fileSize = ftell (pFile); in rome_get_tlv_file()
767 rewind (pFile); in rome_get_tlv_file()
772 fclose (pFile); in rome_get_tlv_file()
777 readSize = fread (pdata_buffer,1,fileSize,pFile); in rome_get_tlv_file()
780 fclose (pFile); in rome_get_tlv_file()
/hardware/ti/omap4-aah/camera/inc/OMXCameraAdapter/
DOMXCameraAdapter.h786 status_t fseekDCCuseCasePos(FILE *pFile);
/hardware/qcom/media/mm-video-v4l2/vidc/vdec/src/
Domx_vdec_hevc_swvdec.cpp7222 void dump_buffer(FILE* pFile, char* buffer, int stride, int scanlines, int width, int height) in dump_buffer() argument
7232 bytes_written = fwrite(temp, width, 1, pFile); in dump_buffer()
7240 bytes_written = fwrite(temp, width, 1, pFile); in dump_buffer()