Lines Matching defs:caches
1214 * Build caches levels for a particular CPU from the data in
1216 * The cache level data is stored in caches[] from index at
1219 int build_caches_for_cpu(u32 cpu, struct cpu_cache_level caches[], u32 *cntp)
1236 if (cpu_cache_level__cmp(&c, &caches[i]))
1241 caches[*cntp] = c;
1250 static int build_caches(struct cpu_cache_level caches[], u32 *cntp)
1257 int ret = build_caches_for_cpu(cpu, caches, &cnt);
1270 struct cpu_cache_level caches[max_caches];
1274 ret = build_caches(caches, &cnt);
1278 qsort(&caches, cnt, sizeof(struct cpu_cache_level), cpu_cache_level__sort);
1289 struct cpu_cache_level *c = &caches[i];
1315 cpu_cache_level__free(&caches[i]);
2105 cpu_cache_level__fprintf(fp, &ff->ph->env.caches[i]);
2901 struct cpu_cache_level *caches;
2913 caches = zalloc(sizeof(*caches) * cnt);
2914 if (!caches)
2940 caches[i] = c;
2943 ff->ph->env.caches = caches;
2947 free(caches);