Lines Matching refs:temp

291 	struct iio_channel_info temp;  in bsort_channel_array_by_index()  local
297 temp = ci_array[y + 1]; in bsort_channel_array_by_index()
299 ci_array[y] = temp; in bsort_channel_array_by_index()
661 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_int() local
663 if (!temp) in _write_sysfs_int()
666 ret = sprintf(temp, "%s/%s", basedir, filename); in _write_sysfs_int()
670 sysfsfp = fopen(temp, "w"); in _write_sysfs_int()
673 fprintf(stderr, "failed to open %s\n", temp); in _write_sysfs_int()
691 sysfsfp = fopen(temp, "r"); in _write_sysfs_int()
694 fprintf(stderr, "failed to open %s\n", temp); in _write_sysfs_int()
720 free(temp); in _write_sysfs_int()
757 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_string() local
759 if (!temp) { in _write_sysfs_string()
764 ret = sprintf(temp, "%s/%s", basedir, filename); in _write_sysfs_string()
768 sysfsfp = fopen(temp, "w"); in _write_sysfs_string()
771 fprintf(stderr, "Could not open %s\n", temp); in _write_sysfs_string()
789 sysfsfp = fopen(temp, "r"); in _write_sysfs_string()
796 if (fscanf(sysfsfp, "%s", temp) != 1) { in _write_sysfs_string()
809 if (strcmp(temp, val) != 0) { in _write_sysfs_string()
812 "Should be %s written to %s/%s\n", temp, val, in _write_sysfs_string()
819 free(temp); in _write_sysfs_string()
864 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_posint() local
866 if (!temp) { in read_sysfs_posint()
871 ret = sprintf(temp, "%s/%s", basedir, filename); in read_sysfs_posint()
875 sysfsfp = fopen(temp, "r"); in read_sysfs_posint()
894 free(temp); in read_sysfs_posint()
911 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_float() local
913 if (!temp) { in read_sysfs_float()
918 ret = sprintf(temp, "%s/%s", basedir, filename); in read_sysfs_float()
922 sysfsfp = fopen(temp, "r"); in read_sysfs_float()
941 free(temp); in read_sysfs_float()
958 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_string() local
960 if (!temp) { in read_sysfs_string()
965 ret = sprintf(temp, "%s/%s", basedir, filename); in read_sysfs_string()
969 sysfsfp = fopen(temp, "r"); in read_sysfs_string()
988 free(temp); in read_sysfs_string()