Lines Matching refs:l2ctype
35 #define CACHE_WAY_SIZE(l2ctype) (8192 << (((l2ctype) >> 8) & 0xf))
36 #define CACHE_SET_SIZE(l2ctype) (CACHE_WAY_SIZE(l2ctype) >> CACHE_LINE_SHIFT)
40 unsigned long l2ctype;
42 __asm__("mrc p15, 1, %0, c0, c0, 1" : "=r" (l2ctype));
44 return !!(l2ctype & 0xf8);
59 unsigned long l2ctype, set_way;
62 __asm__("mrc p15, 1, %0, c0, c0, 1" : "=r" (l2ctype));
64 for (set = 0; set < CACHE_SET_SIZE(l2ctype); set++) {
179 unsigned long l2ctype, set_way;
182 __asm__("mrc p15, 1, %0, c0, c0, 1" : "=r" (l2ctype));
184 for (set = 0; set < CACHE_SET_SIZE(l2ctype); set++) {