Lines Matching refs:cachepolicy
64 static unsigned int cachepolicy __initdata = CPOLICY_WRITEBACK;
72 struct cachepolicy { struct
79 static struct cachepolicy cache_policies[] __initdata = { argument
128 cachepolicy = i; in init_default_cache_policy()
164 if (cpu_architecture() >= CPU_ARCH_ARMv6 && selected != cachepolicy) { in early_cachepolicy()
166 cache_policies[cachepolicy].policy); in early_cachepolicy()
170 if (selected != cachepolicy) { in early_cachepolicy()
172 cachepolicy = selected; in early_cachepolicy()
444 struct cachepolicy *cp; in build_mem_type_table()
452 if (cachepolicy > CPOLICY_BUFFERED) in build_mem_type_table()
453 cachepolicy = CPOLICY_BUFFERED; in build_mem_type_table()
455 if (cachepolicy > CPOLICY_WRITETHROUGH) in build_mem_type_table()
456 cachepolicy = CPOLICY_WRITETHROUGH; in build_mem_type_table()
460 if (cachepolicy >= CPOLICY_WRITEALLOC) in build_mem_type_table()
461 cachepolicy = CPOLICY_WRITEBACK; in build_mem_type_table()
466 if (cachepolicy != CPOLICY_WRITEALLOC) { in build_mem_type_table()
468 cachepolicy = CPOLICY_WRITEALLOC; in build_mem_type_table()
569 cp = &cache_policies[cachepolicy]; in build_mem_type_table()