Home
last modified time | relevance | path

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

/arch/metag/kernel/
Dcachepart.c60 unsigned int cache_size; in get_thread_cache_size() local
70 cache_size = (cache == DCACHE ? get_global_dcache_size() : in get_thread_cache_size()
74 cache_size = (cache == DCACHE ? get_dcache_size() : in get_thread_cache_size()
82 return cache_size; in get_thread_cache_size()
84 return cache_size / 2; in get_thread_cache_size()
86 return cache_size / 4; in get_thread_cache_size()
88 return cache_size / 8; in get_thread_cache_size()
90 return cache_size / 16; in get_thread_cache_size()
/arch/powerpc/sysdev/
Dppc4xx_ocm.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.c67 unsigned int cache_size; in show_cacheinfo() local
69 cache_size = info.ways * info.sets * info.linesz; in show_cacheinfo()
72 type, cache_size >> 10, info.ways); in show_cacheinfo()
/arch/cris/arch-v32/kernel/
Dsetup.c30 unsigned short cache_size; member
94 info->cache_size, in show_cpuinfo()
/arch/arm/mm/
Dcache-uniphier.c395 u32 level, cache_size; in __uniphier_cache_init() local
441 if (of_property_read_u32(np, "cache-size", &cache_size) || in __uniphier_cache_init()
442 cache_size == 0 || cache_size % (data->nsets * data->line_size)) { in __uniphier_cache_init()
450 ((u32)1 << cache_size / data->nsets / data->line_size) - 1; in __uniphier_cache_init()
Dcache-l2x0.c954 u32 cache_size = 0, sets = 0; in l2x0_cache_size_of_parse() local
960 of_property_read_u32(np, "cache-size", &cache_size); in l2x0_cache_size_of_parse()
965 if (!cache_size || !sets) in l2x0_cache_size_of_parse()
997 *associativity = cache_size / way_size; in l2x0_cache_size_of_parse()
1005 cache_size, cache_size >> 10); in l2x0_cache_size_of_parse()
/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.c205 unsigned cache_size = cache->ways << cache->waybit; in cps_gen_cache_routine() local
217 if (cache_size < 0x8000) in cps_gen_cache_routine()
218 uasm_i_addiu(pp, t1, t0, cache_size); in cps_gen_cache_routine()
220 UASM_i_LA(pp, t1, (long)(CKSEG0 + cache_size)); in cps_gen_cache_routine()
/arch/ia64/include/asm/
Dpal.h171 u32 cache_size; /*cache size in bytes*/ member
205 #define pcci_cache_size pcci_info_2.pcci2_bits.cache_size