Home
last modified time | relevance | path

Searched refs:cache_size (Results 1 – 11 of 11) sorted by relevance

/arch/metag/kernel/
Dcachepart.c61 unsigned int cache_size; in get_thread_cache_size() local
71 cache_size = (cache == DCACHE ? get_global_dcache_size() : in get_thread_cache_size()
75 cache_size = (cache == DCACHE ? get_dcache_size() : in get_thread_cache_size()
83 return cache_size; in get_thread_cache_size()
85 return cache_size / 2; in get_thread_cache_size()
87 return cache_size / 4; in get_thread_cache_size()
89 return cache_size / 8; in get_thread_cache_size()
91 return cache_size / 16; in get_thread_cache_size()
/arch/powerpc/platforms/4xx/
Docm.c66 int cache_size; member
112 const unsigned int *cache_size; in ocm_init_node() local
130 cache_size = of_get_property(node, "cached-region-size", &len); in ocm_init_node()
131 if (cache_size) in ocm_init_node()
132 ocm->cache_size = *cache_size; in ocm_init_node()
161 ocm->nc.memtotal = ocm->memtotal - ocm->cache_size; in ocm_init_node()
165 ocm->c.memtotal = ocm->cache_size; in ocm_init_node()
/arch/sh/kernel/cpu/
Dproc.c69 unsigned int cache_size; in show_cacheinfo() local
71 cache_size = info.ways * info.sets * info.linesz; in show_cacheinfo()
74 type, cache_size >> 10, info.ways); in show_cacheinfo()
/arch/arm/mm/
Dcache-uniphier.c326 u32 level, cache_size; in __uniphier_cache_init() local
372 if (of_property_read_u32(np, "cache-size", &cache_size) || in __uniphier_cache_init()
373 cache_size == 0 || cache_size % (data->nsets * data->line_size)) { in __uniphier_cache_init()
380 data->way_mask = GENMASK(cache_size / data->nsets / data->line_size - 1, in __uniphier_cache_init()
Dcache-l2x0.c960 u32 cache_size = 0, sets = 0; in l2x0_cache_size_of_parse() local
966 of_property_read_u32(np, "cache-size", &cache_size); in l2x0_cache_size_of_parse()
971 if (!cache_size || !sets) in l2x0_cache_size_of_parse()
1003 *associativity = cache_size / way_size; in l2x0_cache_size_of_parse()
1011 cache_size, cache_size >> 10); in l2x0_cache_size_of_parse()
/arch/cris/arch-v32/kernel/
Dsetup.c31 unsigned short cache_size; member
95 info->cache_size, in show_cpuinfo()
/arch/powerpc/kernel/
Dcacheinfo.c205 static int cache_size(const struct cache *cache, unsigned int *ret) in cache_size() function
208 const __be32 *cache_size; in cache_size() local
212 cache_size = of_get_property(cache->ofnode, propname, NULL); in cache_size()
213 if (!cache_size) in cache_size()
216 *ret = of_read_number(cache_size, 1); in cache_size()
224 if (cache_size(cache, &size)) in cache_size_kb()
289 if (cache_size(cache, &size)) in cache_associativity()
/arch/microblaze/kernel/cpu/
Dcache.c92 #define CACHE_LOOP_LIMITS(start, end, cache_line_length, cache_size) \ argument
95 if (start < UINT_MAX - cache_size) \
96 end = min(start + cache_size, end); \
104 #define CACHE_ALL_LOOP(cache_size, line_length, op) \ argument
106 unsigned int len = cache_size - line_length; \
/arch/mips/kernel/
Dpm-cps.c200 unsigned cache_size = cache->ways << cache->waybit; in cps_gen_cache_routine() local
212 if (cache_size < 0x8000) in cps_gen_cache_routine()
213 uasm_i_addiu(pp, t1, t0, cache_size); in cps_gen_cache_routine()
215 UASM_i_LA(pp, t1, (long)(CKSEG0 + cache_size)); in cps_gen_cache_routine()
/arch/mips/mm/
Dc-r4k.c814 unsigned long size, cache_size; in __r4k_flush_icache_range() local
832 cache_size = icache_size; in __r4k_flush_icache_range()
835 cache_size += dcache_size; in __r4k_flush_icache_range()
837 if (size <= cache_size) in __r4k_flush_icache_range()
/arch/ia64/include/asm/
Dpal.h172 u32 cache_size; /*cache size in bytes*/ member
206 #define pcci_cache_size pcci_info_2.pcci2_bits.cache_size