Lines Matching refs:temp

250 	struct iio_channel_info temp;  in bsort_channel_array_by_index()  local
256 temp = (*ci_array)[y + 1]; in bsort_channel_array_by_index()
258 (*ci_array)[y] = temp; in bsort_channel_array_by_index()
494 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_int() local
496 if (temp == NULL) in _write_sysfs_int()
498 sprintf(temp, "%s/%s", basedir, filename); in _write_sysfs_int()
499 sysfsfp = fopen(temp, "w"); in _write_sysfs_int()
501 printf("failed to open %s\n", temp); in _write_sysfs_int()
508 sysfsfp = fopen(temp, "r"); in _write_sysfs_int()
510 printf("failed to open %s\n", temp); in _write_sysfs_int()
525 free(temp); in _write_sysfs_int()
543 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_string() local
545 if (temp == NULL) { in _write_sysfs_string()
549 sprintf(temp, "%s/%s", basedir, filename); in _write_sysfs_string()
550 sysfsfp = fopen(temp, "w"); in _write_sysfs_string()
552 printf("Could not open %s\n", temp); in _write_sysfs_string()
559 sysfsfp = fopen(temp, "r"); in _write_sysfs_string()
565 fscanf(sysfsfp, "%s", temp); in _write_sysfs_string()
567 if (strcmp(temp, val) != 0) { in _write_sysfs_string()
571 temp, in _write_sysfs_string()
579 free(temp); in _write_sysfs_string()
604 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_posint() local
606 if (temp == NULL) { in read_sysfs_posint()
610 sprintf(temp, "%s/%s", basedir, filename); in read_sysfs_posint()
611 sysfsfp = fopen(temp, "r"); in read_sysfs_posint()
619 free(temp); in read_sysfs_posint()
627 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_float() local
629 if (temp == NULL) { in read_sysfs_float()
633 sprintf(temp, "%s/%s", basedir, filename); in read_sysfs_float()
634 sysfsfp = fopen(temp, "r"); in read_sysfs_float()
642 free(temp); in read_sysfs_float()
650 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_string() local
652 if (temp == NULL) { in read_sysfs_string()
656 sprintf(temp, "%s/%s", basedir, filename); in read_sysfs_string()
657 sysfsfp = fopen(temp, "r"); in read_sysfs_string()
665 free(temp); in read_sysfs_string()