Lines Matching refs:ci_array
292 void bsort_channel_array_by_index(struct iio_channel_info *ci_array, int cnt) in bsort_channel_array_by_index() argument
299 if (ci_array[y].index > ci_array[y + 1].index) { in bsort_channel_array_by_index()
300 temp = ci_array[y + 1]; in bsort_channel_array_by_index()
301 ci_array[y + 1] = ci_array[y]; in bsort_channel_array_by_index()
302 ci_array[y] = temp; in bsort_channel_array_by_index()
316 struct iio_channel_info **ci_array, int *counter) in build_channel_array() argument
373 *ci_array = malloc(sizeof(**ci_array) * (*counter)); in build_channel_array()
374 if (!*ci_array) { in build_channel_array()
385 current = &(*ci_array)[count++]; in build_channel_array()
512 bsort_channel_array_by_index(*ci_array, *counter); in build_channel_array()
518 free((*ci_array)[i].name); in build_channel_array()
519 free((*ci_array)[i].generic_name); in build_channel_array()
521 free(*ci_array); in build_channel_array()
522 *ci_array = NULL; in build_channel_array()