Lines Matching +full:is +full:- +full:wired

2  * This file is subject to the terms and conditions of the GNU General Public
20 #include <asm/cpu-type.h>
30 * LOONGSON-2 has a 4 entry itlb which is a subset of jtlb, LOONGSON-3 has
50 if (vma->vm_flags & VM_EXEC) in flush_micro_tlb_vm()
71 * If there are any wired entries, fall back to iterating in local_flush_tlb_all()
109 struct mm_struct *mm = vma->vm_mm; in local_flush_tlb_range()
118 size = (end - start) >> (PAGE_SHIFT + 1); in local_flush_tlb_range()
171 size = (end - start + (PAGE_SIZE - 1)) >> PAGE_SHIFT; in local_flush_tlb_kernel_range()
179 end += ((PAGE_SIZE << 1) - 1); in local_flush_tlb_kernel_range()
215 if (cpu_context(cpu, vma->vm_mm) != 0) { in local_flush_tlb_page()
227 write_c0_memorymapid(cpu_asid(cpu, vma->vm_mm)); in local_flush_tlb_page()
229 write_c0_entryhi(page | cpu_asid(cpu, vma->vm_mm)); in local_flush_tlb_page()
256 * This one is only used for pages with the global bit set so we don't care
306 if (current->active_mm != vma->vm_mm) in __update_tlb()
319 pgdp = pgd_offset(vma->vm_mm, address); in __update_tlb()
349 * update_mmu_cache() is called between pte_offset_map_lock() in __update_tlb()
350 * and pte_unmap_unlock(), so we can assume that ptep is not in __update_tlb()
356 write_c0_entrylo0(pte_to_entrylo(ptep->pte_high)); in __update_tlb()
358 writex_c0_entrylo0(ptep->pte_low & _PFNX_MASK); in __update_tlb()
360 write_c0_entrylo1(pte_to_entrylo(ptep->pte_high)); in __update_tlb()
362 writex_c0_entrylo1(ptep->pte_low & _PFNX_MASK); in __update_tlb()
364 write_c0_entrylo0(ptep->pte_high); in __update_tlb()
366 write_c0_entrylo1(ptep->pte_high); in __update_tlb()
395 unsigned long wired; in add_wired_entry()
408 wired = num_wired_entries(); in add_wired_entry()
409 write_c0_wired(wired + 1); in add_wired_entry()
410 write_c0_index(wired); in add_wired_entry()
411 tlbw_use_hazard(); /* What is the hazard here? */ in add_wired_entry()
423 tlbw_use_hazard(); /* What is the hazard here? */ in add_wired_entry()
435 static unsigned int mask = -1; in has_transparent_hugepage()
437 if (mask == -1) { /* first call comes during __init */ in has_transparent_hugepage()
455 * don't actually want to add a wired entry which remains throughout the
467 unsigned long wired; in add_temporary_entry() local
476 wired = num_wired_entries(); in add_temporary_entry()
477 if (--temp_tlb_entry < wired) { in add_temporary_entry()
480 ret = -ENOSPC; in add_temporary_entry()
518 * - On R4600 1.7 the tlbp never hits for pages smaller than in r4k_tlb_configure()
520 * - The entire mm handling assumes the c0_pagemask register to in r4k_tlb_configure()
521 * be set to fixed-size pages. in r4k_tlb_configure()
547 temp_tlb_entry = current_cpu_data.tlbsize - 1; in r4k_tlb_configure()
549 /* From this point on the ARC firmware is dead. */ in r4k_tlb_configure()
561 int wired = current_cpu_data.tlbsize - ntlb; in tlb_init() local
562 write_c0_wired(wired); in tlb_init()
563 write_c0_index(wired-1); in tlb_init()