Lines Matching defs:caches
1223 * Build caches levels for a particular CPU from the data in
1225 * The cache level data is stored in caches[] from index at
1228 int build_caches_for_cpu(u32 cpu, struct cpu_cache_level caches[], u32 *cntp)
1245 if (cpu_cache_level__cmp(&c, &caches[i]))
1250 caches[*cntp] = c;
1259 static int build_caches(struct cpu_cache_level caches[], u32 *cntp)
1266 int ret = build_caches_for_cpu(cpu, caches, &cnt);
1279 struct cpu_cache_level caches[max_caches];
1283 ret = build_caches(caches, &cnt);
1287 qsort(&caches, cnt, sizeof(struct cpu_cache_level), cpu_cache_level__sort);
1298 struct cpu_cache_level *c = &caches[i];
1324 cpu_cache_level__free(&caches[i]);
2300 cpu_cache_level__fprintf(fp, &ff->ph->env.caches[i]);
3238 struct cpu_cache_level *caches;
3262 caches = calloc(cnt, sizeof(*caches));
3263 if (!caches)
3267 struct cpu_cache_level *c = &caches[i];
3290 env->caches = caches;
3295 free(caches[i].type);
3296 free(caches[i].size);
3297 free(caches[i].map);
3299 free(caches);