Lines Matching refs:caches
1190 int build_caches_for_cpu(u32 cpu, struct cpu_cache_level caches[], u32 *cntp) in build_caches_for_cpu() argument
1207 if (cpu_cache_level__cmp(&c, &caches[i])) in build_caches_for_cpu()
1212 caches[*cntp] = c; in build_caches_for_cpu()
1221 static int build_caches(struct cpu_cache_level caches[], u32 *cntp) in build_caches() argument
1228 int ret = build_caches_for_cpu(cpu, caches, &cnt); in build_caches()
1241 struct cpu_cache_level caches[max_caches]; in write_cache() local
1245 ret = build_caches(caches, &cnt); in write_cache()
1249 qsort(&caches, cnt, sizeof(struct cpu_cache_level), cpu_cache_level__sort); in write_cache()
1260 struct cpu_cache_level *c = &caches[i]; in write_cache()
1286 cpu_cache_level__free(&caches[i]); in write_cache()
2076 cpu_cache_level__fprintf(fp, &ff->ph->env.caches[i]); in print_cache()
2882 struct cpu_cache_level *caches; in process_cache() local
2894 caches = zalloc(sizeof(*caches) * cnt); in process_cache()
2895 if (!caches) in process_cache()
2899 struct cpu_cache_level *c = &caches[i]; in process_cache()
2922 ff->ph->env.caches = caches; in process_cache()
2927 free(caches[i].type); in process_cache()
2928 free(caches[i].size); in process_cache()
2929 free(caches[i].map); in process_cache()
2931 free(caches); in process_cache()