Lines Matching refs:isize

27 static void sys_cache_info(int *isize, int *dsize)  in sys_cache_info()  argument
56 *isize = *dsize = buf[i].Cache.LineSize; in sys_cache_info()
59 *isize = buf[i].Cache.LineSize; in sys_cache_info()
75 static void sys_cache_info(int *isize, int *dsize) in sys_cache_info() argument
81 *isize = *dsize = size; in sys_cache_info()
86 static void sys_cache_info(int *isize, int *dsize) in sys_cache_info() argument
92 *isize = *dsize = size; in sys_cache_info()
98 static void sys_cache_info(int *isize, int *dsize) in sys_cache_info() argument
103 *isize = tmp_isize; in sys_cache_info()
131 static void arch_cache_info(int *isize, int *dsize) in arch_cache_info() argument
146 if (*isize == 0 || *dsize == 0) { in arch_cache_info()
147 if (*isize == 0) { in arch_cache_info()
148 *isize = 4 << (ctr & 0xf); in arch_cache_info()
159 static void arch_cache_info(int *isize, int *dsize) in arch_cache_info() argument
161 if (*isize == 0) { in arch_cache_info()
162 *isize = qemu_getauxval(AT_ICACHEBSIZE); in arch_cache_info()
171 static void arch_cache_info(int *isize, int *dsize) { } in arch_cache_info() argument
178 static void fallback_cache_info(int *isize, int *dsize) in fallback_cache_info() argument
181 if (*isize) { in fallback_cache_info()
185 *dsize = *isize; in fallback_cache_info()
188 *isize = *dsize; in fallback_cache_info()
196 *isize = *dsize = 16; in fallback_cache_info()
199 *isize = *dsize = 64; in fallback_cache_info()
206 int isize = 0, dsize = 0; in init_cache_info() local
208 sys_cache_info(&isize, &dsize); in init_cache_info()
209 arch_cache_info(&isize, &dsize); in init_cache_info()
210 fallback_cache_info(&isize, &dsize); in init_cache_info()
212 assert((isize & (isize - 1)) == 0); in init_cache_info()
215 qemu_icache_linesize = isize; in init_cache_info()
216 qemu_icache_linesize_log = ctz32(isize); in init_cache_info()
321 size_t dsize, isize; in flush_idcache_range() local
338 isize = qemu_icache_linesize; in flush_idcache_range()
347 b = rx & ~(isize - 1); in flush_idcache_range()
348 e = (rx + len + isize - 1) & ~(isize - 1); in flush_idcache_range()
349 for (p = b; p < e; p += isize) { in flush_idcache_range()