Lines Matching refs:ci_array
291 void bsort_channel_array_by_index(struct iio_channel_info *ci_array, int cnt) in bsort_channel_array_by_index() argument
298 if (ci_array[y].index > ci_array[y + 1].index) { in bsort_channel_array_by_index()
299 temp = ci_array[y + 1]; in bsort_channel_array_by_index()
300 ci_array[y + 1] = ci_array[y]; in bsort_channel_array_by_index()
301 ci_array[y] = temp; in bsort_channel_array_by_index()
315 struct iio_channel_info **ci_array, int *counter) in build_channel_array() argument
375 *ci_array = malloc(sizeof(**ci_array) * (*counter)); in build_channel_array()
376 if (!*ci_array) { in build_channel_array()
387 current = &(*ci_array)[count++]; in build_channel_array()
523 bsort_channel_array_by_index(*ci_array, *counter); in build_channel_array()
529 free((*ci_array)[i].name); in build_channel_array()
530 free((*ci_array)[i].generic_name); in build_channel_array()
532 free(*ci_array); in build_channel_array()
533 *ci_array = NULL; in build_channel_array()