Lines Matching refs:stats
105 struct data *stats, int stats_count) { in read_lines() argument
143 struct data *data = &stats[num++]; in read_lines()
160 static int read_proc_yaffs(struct data *stats, int stats_count) { in read_proc_yaffs() argument
193 struct data *data = &stats[num++]; in read_proc_yaffs()
285 struct data *stats = malloc((stats_count + 1) * sizeof(struct data)); in read_stats() local
286 struct data *next = stats; in read_stats()
295 struct data *end = stats + stats_count; in read_stats()
296 next += read_proc_yaffs(next, stats + stats_count - next); in read_stats()
305 assert(next < stats + stats_count); in read_stats()
308 qsort(stats, next - stats, sizeof(struct data), compare_data); in read_stats()
309 return stats; in read_stats()
354 static void free_stats(struct data *stats) { in free_stats() argument
356 for (i = 0; stats[i].name != NULL; ++i) { in free_stats()
357 free(stats[i].name); in free_stats()
358 free(stats[i].value); in free_stats()
360 free(stats); in free_stats()