Lines Matching +full:i +full:- +full:cache +full:- +full:sets

1 // SPDX-License-Identifier: GPL-2.0
31 "i" (ASI_LEON_MMUREGS)); in leon_get_ctable_ptr()
67 printk(KERN_INFO "swprobe: --- ctx (%x) ---\n", ctx); in leon_swprobe()
86 printk(KERN_INFO "swprobe: --- pgd (%x) ---\n", pgd); in leon_swprobe()
109 printk(KERN_INFO "swprobe: --- pmd (%x) ---\n", pmd); in leon_swprobe()
137 printk(KERN_INFO "swprobe: --- ped (%x) ---\n", ped); in leon_swprobe()
161 (vaddr & ~(-1 << LEON_PTE_SH)) | ((pte & ~0xff) << 4); in leon_swprobe()
165 (vaddr & ~(-1 << LEON_PMD_SH)) | ((pte & ~0xff) << 4); in leon_swprobe()
169 (vaddr & ~(-1 << LEON_PGD_SH)) | ((pte & ~0xff) << 4); in leon_swprobe()
191 "i"(ASI_LEON_DFLUSH) : "memory"); in leon_flush_dcache_all()
196 if (vma->vm_flags & VM_EXEC) in leon_flush_pcache_all()
205 "i"(ASI_LEON_DFLUSH) : "memory"); in leon_flush_cache_all()
212 "i"(ASI_LEON_MMUFLUSH) : "memory"); in leon_flush_tlb_all()
215 /* get all cache regs */
222 /* Get Cache regs from "Cache ASI" address 0x0, 0x8 and 0xC */ in leon3_getCacheRegs()
230 : "i"(ASI_LEON_CACHEREGS) /* input */ in leon3_getCacheRegs()
233 regs->ccr = ccr; in leon3_getCacheRegs()
234 regs->iccr = iccr; in leon3_getCacheRegs()
235 regs->dccr = dccr; in leon3_getCacheRegs()
238 /* Due to virtual cache we need to check cache configuration if
241 * Leon2 and Leon3 differ in their way of telling cache information
246 int flush_needed = -1; in leon_flush_needed()
247 unsigned int ssize, sets; in leon_flush_needed() local
249 { "direct mapped", "2-way associative", "3-way associative", in leon_flush_needed()
250 "4-way associative" in leon_flush_needed()
255 sets = (cregs.dccr & LEON3_XCCR_SETS_MASK) >> 24; in leon_flush_needed()
259 printk(KERN_INFO "CACHE: %s cache, set size %dk\n", in leon_flush_needed()
260 sets > 3 ? "unknown" : setStr[sets], ssize); in leon_flush_needed()
261 if ((ssize <= (PAGE_SIZE / 1024)) && (sets == 0)) { in leon_flush_needed()
265 printk(KERN_INFO "CACHE: not flushing on every context switch\n"); in leon_flush_needed()