Lines Matching defs:fp
4831 FILE *fp;
4833 fp = fopen(mpu.event_display_orientation, "r");
4834 if (fp == NULL) {
4838 if (fscanf(fp, "%d\n", &screen_orientation) < 0 || fclose(fp) < 0)
6442 FILE *fp;
6447 fp = fopen(mpu.pedometer_steps, "r");
6448 if (fp == NULL) {
6451 if (fscanf(fp, "%lld\n", &stepCount) < 0) {
6453 if (fclose(fp) < 0) {
6458 if (fclose(fp) < 0) {
6471 fp = fopen(mpu.pedometer_counter, "r");
6472 if (fp == NULL) {
6475 if (fscanf(fp, "%lld\n", &stepCountTs) < 0) {
6477 if (fclose(fp) < 0) {
6482 if (fclose(fp) < 0) {
6528 FILE *fp;
6537 fp = fopen(VIBRATOR_ENABLE_FILE, "r");
6538 if (fp != NULL) {
6539 if (fscanf(fp, "%d\n", &vibrator) < 0) {
6542 if (fclose(fp) < 0) {