Home
last modified time | relevance | path

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

/freebsd/lib/libc/powerpc64/gen/
H A Dsyncicache.c48 int cacheline_size = 32; variable
54 int cacheline_size = 0; variable
64 clen = sizeof(cacheline_size); in getcachelinesize()
66 if (sysctl(cachemib, nitems(cachemib), &cacheline_size, &clen, in getcachelinesize()
67 NULL, 0) < 0 || !cacheline_size) { in getcachelinesize()
80 if (!cacheline_size) in __syncicache()
84 off = (uintptr_t)from & (cacheline_size - 1); in __syncicache()
90 p += cacheline_size; in __syncicache()
91 } while ((l -= cacheline_size) > 0); in __syncicache()
96 p += cacheline_size; in __syncicache()
[all …]
/freebsd/lib/libc/powerpc/gen/
H A Dsyncicache.c48 int cacheline_size = 32; variable
54 int cacheline_size = 0; variable
64 clen = sizeof(cacheline_size); in getcachelinesize()
66 if (sysctl(cachemib, nitems(cachemib), &cacheline_size, &clen, in getcachelinesize()
67 NULL, 0) < 0 || !cacheline_size) { in getcachelinesize()
80 if (!cacheline_size) in __syncicache()
84 off = (u_int)from & (cacheline_size - 1); in __syncicache()
90 p += cacheline_size; in __syncicache()
91 } while ((l -= cacheline_size) > 0); in __syncicache()
96 p += cacheline_size; in __syncicache()
[all …]
/freebsd/stand/libsa/powerpc/
H A Dsyncicache.c46 int cacheline_size = 32; variable
52 int cacheline_size = 0; variable
62 clen = sizeof(cacheline_size); in getcachelinesize()
65 &cacheline_size, &clen, NULL, 0) < 0 || !cacheline_size) { in getcachelinesize()
78 if (!cacheline_size) in __syncicache()
82 off = (u_int)from & (cacheline_size - 1); in __syncicache()
88 p += cacheline_size; in __syncicache()
89 } while ((l -= cacheline_size) > 0); in __syncicache()
94 p += cacheline_size; in __syncicache()
95 } while ((len -= cacheline_size) > 0); in __syncicache()
/freebsd/sys/powerpc/powerpc/
H A Dsyncicache.c53 off = (uintptr_t)from & (cacheline_size - 1); in __syncicache()
59 p += cacheline_size; in __syncicache()
60 } while ((l -= cacheline_size) > 0); in __syncicache()
65 p += cacheline_size; in __syncicache()
66 } while ((len -= cacheline_size) > 0); in __syncicache()
H A Dmachdep.c134 int cacheline_size = 128; variable
136 int cacheline_size = 32; variable
162 SYSCTL_INT(_machdep, CPU_CACHELINE, cacheline_size,
163 CTLFLAG_RD, &cacheline_size, 0, "");
702 off = addr & (cacheline_size - 1); in cpu_flush_dcache()
704 len = roundup2(len + off, cacheline_size); in cpu_flush_dcache()
709 addr += cacheline_size; in cpu_flush_dcache()
710 len -= cacheline_size; in cpu_flush_dcache()
789 __syncicache(__DEVOLATILE(uint32_t *, p), cacheline_size); in DB_SHOW_COMMAND()
/freebsd/sys/powerpc/aim/
H A Daim_machdep.c317 for (cacheline_size = 0; cacheline_size < 0x100; cacheline_size++) in aim_cpu_init()
318 cache_check[cacheline_size] = 0xff; in aim_cpu_init()
323 for (cacheline_size = 0; cacheline_size < 0x100 && in aim_cpu_init()
324 cache_check[cacheline_size] == 0; cacheline_size++); in aim_cpu_init()
327 if (cacheline_size == 0) { in aim_cpu_init()
329 cacheline_size = 32; in aim_cpu_init()
H A Dmmu_oea64.c1571 for (off = 0; off < PAGE_SIZE; off += cacheline_size) in moea64_zero_page()
1584 for (off = 0; off < PAGE_SIZE; off += cacheline_size) in moea64_zero_page_dmap()
H A Dmmu_oea.c1094 for (off = 0; off < PAGE_SIZE; off += cacheline_size) in moea_zero_page()
/freebsd/sys/powerpc/include/
H A Dmd_var.h54 extern int cacheline_size;
/freebsd/sys/powerpc/booke/
H A Dbooke_machdep.c379 cacheline_size = 64; in booke_init()
398 #define RES_GRANULE cacheline_size