Home
last modified time | relevance | path

Searched refs:fptr (Results 1 – 15 of 15) sorted by relevance

/hardware/invensense/6515/libsensors_iio/software/simple_apps/self_test/
Dinv_self_test.c254 FILE *fptr; in main() local
284 fptr = fopen(mpu.self_test, "r"); in main()
285 if (fptr) { in main()
286 fscanf(fptr, "%d", &self_test_status); in main()
292 fclose(fptr); in main()
316 fptr= fopen(MLCAL_FILE, "rb"); in main()
317 if (!fptr) { in main()
322 fread(buffer, 1, packet_sz, fptr); in main()
323 fclose(fptr); in main()
380 fptr = fopen(mpu.self_test, "r"); in main()
[all …]
/hardware/interfaces/gnss/1.0/default/
DThreadCreationWrapper.h33 ThreadFuncArgs(void (*start)(void*), void* arg) : fptr(start), args(arg) {} in ThreadFuncArgs()
36 threadEntryFunc fptr; member
DThreadCreationWrapper.cpp21 threadArgs->fptr(threadArgs->args); in threadFunc()
/hardware/invensense/65xx/libsensors_iio/
DCompassSensor.IIO.9150.cpp89 FILE *fptr; in CompassSensor() local
90 fptr = fopen(compassSysFs.compass_orient, "r"); in CompassSensor()
91 if (fptr != NULL) { in CompassSensor()
93 if (fscanf(fptr, "%d,%d,%d,%d,%d,%d,%d,%d,%d", in CompassSensor()
95 &om[6], &om[7], &om[8]) < 0 || fclose(fptr) < 0) { in CompassSensor()
DCompassSensor.IIO.primary.cpp52 FILE *fptr; in CompassSensor() local
106 fptr = fopen(compassSysFs.compass_orient, "r"); in CompassSensor()
107 if (fptr != NULL) { in CompassSensor()
109 if (fscanf(fptr, "%d,%d,%d,%d,%d,%d,%d,%d,%d", in CompassSensor()
111 &om[6], &om[7], &om[8]) < 0 || fclose(fptr)) { in CompassSensor()
134 if (fptr == NULL) { in CompassSensor()
DMPLSensor.cpp897 FILE *fptr; in loadDMP() local
913 fptr = fopen(mpu.dmp_firmware, "w"); in loadDMP()
914 if(fptr == NULL) { in loadDMP()
917 if (inv_load_dmp(fptr) < 0 || fclose(fptr) < 0) { in loadDMP()
935 FILE *fptr; in inv_get_sensors_orientation() local
940 fptr = fopen(mpu.gyro_orient, "r"); in inv_get_sensors_orientation()
941 if (fptr != NULL) { in inv_get_sensors_orientation()
943 if (fscanf(fptr, "%d,%d,%d,%d,%d,%d,%d,%d,%d", in inv_get_sensors_orientation()
945 &om[6], &om[7], &om[8]) < 0 || fclose(fptr) < 0) { in inv_get_sensors_orientation()
968 fptr = fopen(mpu.accel_orient, "r"); in inv_get_sensors_orientation()
[all …]
/hardware/invensense/6515/libsensors_iio/
DCompassSensor.IIO.primary.cpp52 FILE *fptr; in CompassSensor() local
106 fptr = fopen(compassSysFs.compass_orient, "r"); in CompassSensor()
107 if (fptr != NULL) { in CompassSensor()
109 if (fscanf(fptr, "%d,%d,%d,%d,%d,%d,%d,%d,%d", in CompassSensor()
111 &om[6], &om[7], &om[8]) < 0 || fclose(fptr)) { in CompassSensor()
134 if (fptr == NULL) { in CompassSensor()
DCompassSensor.IIO.9150.cpp89 FILE *fptr; in CompassSensor() local
90 fptr = fopen(compassSysFs.compass_orient, "r"); in CompassSensor()
91 if (fptr != NULL) { in CompassSensor()
93 if (fscanf(fptr, "%d,%d,%d,%d,%d,%d,%d,%d,%d", in CompassSensor()
95 &om[6], &om[7], &om[8]) < 0 || fclose(fptr) < 0) { in CompassSensor()
DMPLSensor.cpp167 FILE *fptr; in MPLSensor() local
839 FILE *fptr; in loadDMP() local
854 fptr = fopen(mpu.dmp_firmware, "w"); in loadDMP()
855 if(fptr == NULL) { in loadDMP()
858 if (inv_load_dmp(fptr) < 0) { in loadDMP()
863 if (fclose(fptr) < 0) { in loadDMP()
879 FILE *fptr; in inv_get_sensors_orientation() local
884 fptr = fopen(mpu.gyro_orient, "r"); in inv_get_sensors_orientation()
885 if (fptr != NULL) { in inv_get_sensors_orientation()
887 if (fscanf(fptr, "%d,%d,%d,%d,%d,%d,%d,%d,%d", in inv_get_sensors_orientation()
[all …]
/hardware/nxp/uwb/halimpl/hal/sr200/
Dfwd_hdll.cc403 FILE *fptr = NULL; in openFwBinFile() local
408 if ((fptr = fopen(pfwImageCtx->default_fw_path, "rb")) == NULL) { in openFwBinFile()
416 fseek(fptr, 0L, SEEK_END); in openFwBinFile()
417 file_size = ftell(fptr); in openFwBinFile()
435 rewind(fptr); in openFwBinFile()
436 ret_size = fread(pfwImageCtx->fwImage, sizeof(uint8_t), pfwImageCtx->fwImgSize, fptr); in openFwBinFile()
438 if (feof(fptr)) in openFwBinFile()
443 else if (ferror(fptr)) in openFwBinFile()
452 if (NULL != fptr) in openFwBinFile()
454 fclose(fptr); in openFwBinFile()
/hardware/google/aemu/host-common/
DMediaVideoToolBoxVideoHelper.cpp206 uint8_t* fptr = const_cast<uint8_t*>(ptr); in handleIDRFrame() local
210 uint8_t startHeaderSz = fptr[2] == 1 ? 3 : 4; in handleIDRFrame()
DMediaH264DecoderVideoToolBox.cpp429 uint8_t* fptr = const_cast<uint8_t*>(ptr); in handleIDRFrame() local
433 uint8_t startHeaderSz = fptr[2] == 1 ? 3 : 4; in handleIDRFrame()
/hardware/interfaces/media/omx/1.0/vts/functional/common/
Dmedia_hidl_test_common.cpp648 bool& eosFlag, PortMode* portMode, portreconfig fptr, in testEOS() argument
689 if (fptr) { in testEOS()
690 ASSERT_NO_FATAL_FAILURE((*fptr)( in testEOS()
Dmedia_hidl_test_common.h382 portreconfig fptr = nullptr, OMX_U32 kPortIndexInput = 0,
/hardware/google/gfxstream/host/gl/glestranslator/GLES_V2/
DGLESv2Imp.cpp4795 auto fptr = ctx->dispatcher().glGetGraphicsResetStatusEXT; in glGetGraphicsResetStatusEXT() local
4796 if (!fptr) { in glGetGraphicsResetStatusEXT()
4801 GLenum res = fptr(); in glGetGraphicsResetStatusEXT()