OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-197
/
arch
/
powerpc
/
include
/
asm
/
book3s
/
64
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/17/2022 06:42:21 AM
rwxr-xr-x
📄
hash-4k.h
3.06 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
hash-64k.h
7.25 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
hash.h
6.16 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
hugetlb.h
2.02 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
kup-radix.h
649 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
mmu-hash.h
24.67 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mmu.h
4.66 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
pgalloc.h
6.12 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
pgtable-4k.h
1.32 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pgtable-64k.h
1.55 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pgtable.h
35.48 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
radix-4k.h
391 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
radix-64k.h
395 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
radix.h
8.92 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
slice.h
841 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
tlbflush-hash.h
2.97 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
tlbflush-radix.h
2.25 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
tlbflush.h
3.06 KB
01/28/2018 09:20:33 PM
rw-r--r--
Editing: tlbflush-hash.h
Close
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BOOK3S_64_TLBFLUSH_HASH_H #define _ASM_POWERPC_BOOK3S_64_TLBFLUSH_HASH_H /* * TLB flushing for 64-bit hash-MMU CPUs */ #include <linux/percpu.h> #include <asm/page.h> #define PPC64_TLB_BATCH_NR 192 struct ppc64_tlb_batch { int active; unsigned long index; struct mm_struct *mm; real_pte_t pte[PPC64_TLB_BATCH_NR]; unsigned long vpn[PPC64_TLB_BATCH_NR]; unsigned int psize; int ssize; }; DECLARE_PER_CPU(struct ppc64_tlb_batch, ppc64_tlb_batch); extern void __flush_tlb_pending(struct ppc64_tlb_batch *batch); #define __HAVE_ARCH_ENTER_LAZY_MMU_MODE static inline void arch_enter_lazy_mmu_mode(void) { struct ppc64_tlb_batch *batch; if (radix_enabled()) return; batch = this_cpu_ptr(&ppc64_tlb_batch); batch->active = 1; } static inline void arch_leave_lazy_mmu_mode(void) { struct ppc64_tlb_batch *batch; if (radix_enabled()) return; batch = this_cpu_ptr(&ppc64_tlb_batch); if (batch->index) __flush_tlb_pending(batch); batch->active = 0; } #define arch_flush_lazy_mmu_mode() do {} while (0) extern void flush_hash_page(unsigned long vpn, real_pte_t pte, int psize, int ssize, unsigned long flags); extern void flush_hash_range(unsigned long number, int local); extern void flush_hash_hugepage(unsigned long vsid, unsigned long addr, pmd_t *pmdp, unsigned int psize, int ssize, unsigned long flags); static inline void hash__local_flush_tlb_mm(struct mm_struct *mm) { } static inline void hash__flush_tlb_mm(struct mm_struct *mm) { } static inline void hash__local_flush_all_mm(struct mm_struct *mm) { /* * There's no Page Walk Cache for hash, so what is needed is * the same as flush_tlb_mm(), which doesn't really make sense * with hash. So the only thing we could do is flush the * entire LPID! Punt for now, as it's not being used. */ WARN_ON_ONCE(1); } static inline void hash__flush_all_mm(struct mm_struct *mm) { /* * There's no Page Walk Cache for hash, so what is needed is * the same as flush_tlb_mm(), which doesn't really make sense * with hash. So the only thing we could do is flush the * entire LPID! Punt for now, as it's not being used. */ WARN_ON_ONCE(1); } static inline void hash__local_flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr) { } static inline void hash__flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr) { } static inline void hash__flush_tlb_range(struct vm_area_struct *vma, unsigned long start, unsigned long end) { } static inline void hash__flush_tlb_kernel_range(unsigned long start, unsigned long end) { } struct mmu_gather; extern void hash__tlb_flush(struct mmu_gather *tlb); /* Private function for use by PCI IO mapping code */ extern void __flush_hash_table_range(struct mm_struct *mm, unsigned long start, unsigned long end); extern void flush_tlb_pmd_range(struct mm_struct *mm, pmd_t *pmd, unsigned long addr); #endif /* _ASM_POWERPC_BOOK3S_64_TLBFLUSH_HASH_H */