Lines Matching refs:temp
294 struct iio_channel_info temp; in bsort_channel_array_by_index() local
300 temp = ci_array[y + 1]; in bsort_channel_array_by_index()
302 ci_array[y] = temp; in bsort_channel_array_by_index()
658 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_int() local
660 if (!temp) in _write_sysfs_int()
663 ret = sprintf(temp, "%s/%s", basedir, filename); in _write_sysfs_int()
667 sysfsfp = fopen(temp, "w"); in _write_sysfs_int()
670 fprintf(stderr, "failed to open %s\n", temp); in _write_sysfs_int()
688 sysfsfp = fopen(temp, "r"); in _write_sysfs_int()
691 fprintf(stderr, "failed to open %s\n", temp); in _write_sysfs_int()
717 free(temp); in _write_sysfs_int()
754 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_string() local
756 if (!temp) { in _write_sysfs_string()
761 ret = sprintf(temp, "%s/%s", basedir, filename); in _write_sysfs_string()
765 sysfsfp = fopen(temp, "w"); in _write_sysfs_string()
768 fprintf(stderr, "Could not open %s\n", temp); in _write_sysfs_string()
786 sysfsfp = fopen(temp, "r"); in _write_sysfs_string()
793 if (fscanf(sysfsfp, "%s", temp) != 1) { in _write_sysfs_string()
806 if (strcmp(temp, val) != 0) { in _write_sysfs_string()
809 "Should be %s written to %s/%s\n", temp, val, in _write_sysfs_string()
816 free(temp); in _write_sysfs_string()
861 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_posint() local
863 if (!temp) { in read_sysfs_posint()
868 ret = sprintf(temp, "%s/%s", basedir, filename); in read_sysfs_posint()
872 sysfsfp = fopen(temp, "r"); in read_sysfs_posint()
891 free(temp); in read_sysfs_posint()
908 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_float() local
910 if (!temp) { in read_sysfs_float()
915 ret = sprintf(temp, "%s/%s", basedir, filename); in read_sysfs_float()
919 sysfsfp = fopen(temp, "r"); in read_sysfs_float()
938 free(temp); in read_sysfs_float()
955 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_string() local
957 if (!temp) { in read_sysfs_string()
962 ret = sprintf(temp, "%s/%s", basedir, filename); in read_sysfs_string()
966 sysfsfp = fopen(temp, "r"); in read_sysfs_string()
985 free(temp); in read_sysfs_string()