Home
last modified time | relevance | path

Searched refs:tlb (Results 1 – 25 of 109) sorted by relevance

12345

/linux/arch/arm64/include/asm/
H A Dtlb.h15 static void tlb_flush(struct mmu_gather *tlb);
24 static inline int tlb_get_level(struct mmu_gather *tlb) in tlb_get_level() argument
27 if (tlb->freed_tables) in tlb_get_level()
30 if (tlb->cleared_ptes && !(tlb->cleared_pmds || in tlb_get_level()
31 tlb->cleared_puds || in tlb_get_level()
32 tlb->cleared_p4ds)) in tlb_get_level()
35 if (tlb->cleared_pmds && !(tlb->cleared_ptes || in tlb_get_level()
36 tlb->cleared_puds || in tlb_get_level()
37 tlb->cleared_p4ds)) in tlb_get_level()
40 if (tlb->cleared_puds && !(tlb->cleared_ptes || in tlb_get_level()
[all …]
/linux/arch/sh/mm/
H A DMakefile30 debugfs-$(CONFIG_CPU_SH4) += tlb-debugfs.o
31 tlb-$(CONFIG_CPU_SH3) := tlb-sh3.o
32 tlb-$(CONFIG_CPU_SH4) := tlb-sh4.o tlb-urb.o
33 tlb-$(CONFIG_CPU_HAS_PTEAEX) := tlb-pteaex.o tlb-urb.o
34 obj-y += $(tlb
[all...]
/linux/arch/powerpc/include/asm/nohash/
H A Dpgalloc.h8 extern void tlb_remove_table(struct mmu_gather *tlb, void *table);
10 extern void tlb_flush_pgtable(struct mmu_gather *tlb, unsigned long address);
13 static inline void tlb_flush_pgtable(struct mmu_gather *tlb, in tlb_flush_pgtable() argument
53 static inline void pgtable_free_tlb(struct mmu_gather *tlb, void *table, int shift) in pgtable_free_tlb() argument
59 tlb_remove_table(tlb, (void *)pgf); in pgtable_free_tlb()
70 static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t table, in __pte_free_tlb() argument
73 tlb_flush_pgtable(tlb, address); in __pte_free_tlb()
74 pgtable_free_tlb(tlb, table, 0); in __pte_free_tlb()
/linux/arch/x86/include/asm/
H A Dpgalloc.h54 extern void ___pte_free_tlb(struct mmu_gather *tlb, struct page *pte);
56 static inline void __pte_free_tlb(struct mmu_gather *tlb, struct page *pte, in __pte_free_tlb() argument
59 ___pte_free_tlb(tlb, pte); in __pte_free_tlb()
86 extern void ___pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd);
88 static inline void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd, in __pmd_free_tlb() argument
91 ___pmd_free_tlb(tlb, pmd); in __pmd_free_tlb()
123 extern void ___pud_free_tlb(struct mmu_gather *tlb, pud_t *pud);
125 static inline void __pud_free_tlb(struct mmu_gather *tlb, pud_t *pud, in __pud_free_tlb() argument
128 ___pud_free_tlb(tlb, pud); in __pud_free_tlb()
148 extern void ___p4d_free_tlb(struct mmu_gather *tlb, p4d_t *p4d);
[all …]
H A Dtlb.h6 static inline void tlb_flush(struct mmu_gather *tlb);
13 static inline void tlb_flush(struct mmu_gather *tlb) in tlb_flush() argument
16 unsigned int stride_shift = tlb_get_unmap_shift(tlb); in tlb_flush()
18 if (!tlb->fullmm && !tlb->need_flush_all) { in tlb_flush()
19 start = tlb->start; in tlb_flush()
20 end = tlb->end; in tlb_flush()
23 flush_tlb_mm_range(tlb->mm, start, end, stride_shift, tlb->freed_tables); in tlb_flush()
/linux/arch/sparc/include/asm/
H A Dpgalloc_64.h80 static inline void pgtable_free_tlb(struct mmu_gather *tlb, void *table, bool is_page)
85 tlb_remove_table(tlb, (void *)pgf); in pgtable_free_tlb()
98 static inline void __pte_free_tlb(struct mmu_gather *tlb, pte_t *pte, in __tlb_remove_table()
101 pgtable_free_tlb(tlb, pte, true); in pgtable_free_tlb()
104 #define __pmd_free_tlb(tlb, pmd, addr) \
105 pgtable_free_tlb(tlb, pmd, false)
107 #define __pud_free_tlb(tlb, pud, addr) \ in __pte_free_tlb()
108 pgtable_free_tlb(tlb, pud, false) in __pte_free_tlb()
82 pgtable_free_tlb(struct mmu_gather * tlb,void * table,bool is_page) pgtable_free_tlb() argument
100 pgtable_free_tlb(struct mmu_gather * tlb,void * table,bool is_page) pgtable_free_tlb() argument
106 __pte_free_tlb(struct mmu_gather * tlb,pte_t * pte,unsigned long address) __pte_free_tlb() argument
112 __pmd_free_tlb(tlb,pmd,addr) global() argument
115 __pud_free_tlb(tlb,pud,addr) global() argument
H A Dpgalloc_32.h52 #define __pmd_free_tlb(tlb, pmd, addr) \
53 tlb_remove_table((tlb), (void *)((unsigned long)(pmd) | 1UL))
78 #define __pte_free_tlb(tlb, pte, addr) tlb_remove_table((tlb), (void *)(pte))
51 __pmd_free_tlb(tlb,pmd,addr) global() argument
75 __pte_free_tlb(tlb,pte,addr) global() argument
/linux/arch/um/include/asm/
H A Dpgalloc.h28 #define __pte_free_tlb(tlb, pte, address) \ argument
29 tlb_remove_ptdesc((tlb), page_ptdesc(pte))
33 #define __pmd_free_tlb(tlb, pmd, address) \ argument
34 tlb_remove_ptdesc((tlb), virt_to_ptdesc(pmd))
38 #define __pud_free_tlb(tlb, pud, address) \ argument
39 tlb_remove_ptdesc((tlb), virt_to_ptdesc(pud))
/linux/arch/powerpc/mm/book3s32/
H A Dtlb.c109 void hash__flush_gather(struct mmu_gather *tlb) in hash__flush_gather() argument
111 if (tlb->fullmm || tlb->need_flush_all) in hash__flush_gather()
112 hash__flush_tlb_mm(tlb->mm); in hash__flush_gather()
114 hash__flush_range(tlb->mm, tlb->start, tlb->end); in hash__flush_gather()
/linux/include/linux/
H A Dio-pgtable.h111 const struct iommu_flush_ops *tlb; member
280 if (iop->cfg.tlb && iop->cfg.tlb->tlb_flush_all) in io_pgtable_tlb_flush_all()
281 iop->cfg.tlb->tlb_flush_all(iop->cookie); in io_pgtable_tlb_flush_all()
288 if (iop->cfg.tlb && iop->cfg.tlb->tlb_flush_walk) in io_pgtable_tlb_flush_walk()
289 iop->cfg.tlb->tlb_flush_walk(iova, size, granule, iop->cookie); in io_pgtable_tlb_flush_walk()
297 if (iop->cfg.tlb && iop->cfg.tlb->tlb_add_page) in io_pgtable_tlb_add_page()
298 iop->cfg.tlb->tlb_add_page(gather, iova, granule, iop->cookie); in io_pgtable_tlb_add_page()
/linux/arch/riscv/boot/dts/sifive/
H A Dfu540-c000.dtsi48 d-tlb-sets = <1>;
49 d-tlb-size = <32>;
54 i-tlb-sets = <1>;
55 i-tlb-size = <32>;
62 tlb-split;
75 d-tlb-sets = <1>;
76 d-tlb-size = <32>;
81 i-tlb-sets = <1>;
82 i-tlb-size = <32>;
89 tlb-split;
[all …]
H A Dfu740-c000.dtsi49 d-tlb-sets = <1>;
50 d-tlb-size = <40>;
55 i-tlb-sets = <1>;
56 i-tlb-size = <40>;
64 tlb-split;
76 d-tlb-sets = <1>;
77 d-tlb-size = <40>;
82 i-tlb-sets = <1>;
83 i-tlb-size = <40>;
91 tlb-split;
[all …]
/linux/arch/loongarch/include/asm/
H A Dtlb.h135 static void tlb_flush(struct mmu_gather *tlb);
140 static inline void tlb_flush(struct mmu_gather *tlb) in tlb_flush() argument
144 vma.vm_mm = tlb->mm; in tlb_flush()
146 if (tlb->fullmm) { in tlb_flush()
147 flush_tlb_mm(tlb->mm); in tlb_flush()
151 flush_tlb_range(&vma, tlb->start, tlb->end); in tlb_flush()
/linux/arch/riscv/include/asm/
H A Dpgalloc.h12 #include <asm/tlb.h>
89 static inline void __pud_free_tlb(struct mmu_gather *tlb, pud_t *pud, in __pud_free_tlb() argument
93 tlb_remove_ptdesc(tlb, virt_to_ptdesc(pud)); in __pud_free_tlb()
96 static inline void __p4d_free_tlb(struct mmu_gather *tlb, p4d_t *p4d, in __p4d_free_tlb() argument
100 tlb_remove_ptdesc(tlb, virt_to_ptdesc(p4d)); in __p4d_free_tlb()
125 static inline void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd, in __pmd_free_tlb() argument
128 tlb_remove_ptdesc(tlb, virt_to_ptdesc(pmd)); in __pmd_free_tlb()
133 static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t pte, in __pte_free_tlb() argument
136 tlb_remove_ptdesc(tlb, page_ptdesc(pte)); in __pte_free_tlb()
/linux/mm/
H A Dmadvise.c37 #include <asm/tlb.h>
51 struct mmu_gather *tlb; member
70 struct mmu_gather *tlb; member
368 struct mmu_gather *tlb = private->tlb; in madvise_cold_or_pageout_pte_range()
370 struct mm_struct *mm = tlb->mm; in madvise_cold_or_pageout_pte_range()
391 tlb_change_page_size(tlb, HPAGE_PMD_SIZE); in madvise_cold_or_pageout_pte_range()
434 tlb_remove_pmd_tlb_entry(tlb, pmd, addr); in madvise_cold_or_pageout_pte_range()
460 tlb_change_page_size(tlb, PAGE_SIZE); in madvise_cold_or_pageout_pte_range()
544 tlb_remove_tlb_entries(tlb, pt in madvise_cold_or_pageout_pte_range()
367 struct mmu_gather *tlb = private->tlb; madvise_cold_or_pageout_pte_range() local
582 madvise_cold_page_range(struct mmu_gather * tlb,struct madvise_behavior * madv_behavior) madvise_cold_page_range() argument
607 struct mmu_gather tlb; madvise_cold() local
620 madvise_pageout_page_range(struct mmu_gather * tlb,struct vm_area_struct * vma,struct madvise_behavior_range * range) madvise_pageout_page_range() argument
637 struct mmu_gather tlb; madvise_pageout() local
666 struct mmu_gather *tlb = walk->private; madvise_free_pte_range() local
816 struct mmu_gather *tlb = madv_behavior->tlb; madvise_free_single_vma() local
1996 struct mmu_gather tlb; do_madvise() local
2032 struct mmu_gather tlb; vector_madvise() local
[all...]
H A Dvma_exec.c46 struct mmu_gather tlb; in relocate_vma_down() local
74 tlb_gather_mmu(&tlb, mm); in relocate_vma_down()
80 free_pgd_range(&tlb, new_end, old_end, new_end, in relocate_vma_down()
89 free_pgd_range(&tlb, old_start, old_end, new_end, in relocate_vma_down()
92 tlb_finish_mmu(&tlb); in relocate_vma_down()
/linux/arch/powerpc/boot/dts/
H A Dmicrowatt.dts122 i-tlb-sets = <1>;
127 i-tlb-size = <64>;
132 tlb-size = <0>;
133 tlb-sets = <0>;
135 d-tlb-size = <128>;
136 d-tlb-sets = <2>;
152 i-tlb-sets = <1>;
157 i-tlb-size = <64>;
162 tlb-size = <0>;
163 tlb-sets = <0>;
[all …]
/linux/arch/powerpc/include/asm/book3s/64/
H A Dpgalloc.h21 extern void pgtable_free_tlb(struct mmu_gather *tlb, void *table, int shift);
136 static inline void __pud_free_tlb(struct mmu_gather *tlb, pud_t *pud, in __pud_free_tlb() argument
139 pgtable_free_tlb(tlb, pud, PUD_INDEX); in __pud_free_tlb()
152 static inline void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd, in __pmd_free_tlb() argument
155 return pgtable_free_tlb(tlb, pmd, PMD_INDEX); in __pmd_free_tlb()
170 static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t table, in __pte_free_tlb() argument
173 pgtable_free_tlb(tlb, table, PTE_INDEX); in __pte_free_tlb()
/linux/Documentation/devicetree/bindings/nios2/
H A Dnios2.txt23 - altr,tlb-num-ways: Specifies the number of set-associativity ways in the TLB.
24 - altr,tlb-num-entries: Specifies the number of entries in the TLB.
25 - altr,tlb-ptr-sz: Specifies size of TLB pointer.
30 - altr,fast-tlb-miss-addr: Specifies CPU fast TLB miss exception address
52 altr,tlb-num-ways = <16>;
53 altr,tlb-num-entries = <128>;
54 altr,tlb-ptr-sz = <7>;
58 altr,fast-tlb-miss-addr = <0xc7fff400>;
/linux/arch/powerpc/include/asm/book3s/32/
H A Dpgalloc.h31 #define __pmd_free_tlb(tlb,x,a) do { } while (0) argument
56 static inline void pgtable_free_tlb(struct mmu_gather *tlb, in pgtable_free_tlb() argument
62 tlb_remove_table(tlb, (void *)pgf); in pgtable_free_tlb()
73 static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t table, in __pte_free_tlb() argument
76 pgtable_free_tlb(tlb, table, 0); in __pte_free_tlb()
/linux/arch/sh/include/asm/
H A Dpgalloc.h23 #define __pmd_free_tlb(tlb, pmdp, addr) \ in pmd_populate_kernel()
24 tlb_remove_table((tlb), (void *)((unsigned long)(pmdp) | 1)) in pmd_populate_kernel()
39 #define __pte_free_tlb(tlb, pte, addr) \
40 tlb_remove_ptdesc((tlb), page_ptdesc(pte))
20 __pmd_free_tlb(tlb,pmdp,addr) global() argument
35 __pte_free_tlb(tlb,pte,addr) global() argument
/linux/arch/mips/mm/
H A DMakefile17 obj-y += tlb-funcs.o
35 obj-$(CONFIG_CPU_R3K_TLB) += tlb-r3k.o
36 obj-$(CONFIG_CPU_R4K_CACHE_TLB) += c-r4k.o cex-gen.o tlb-r4k.o
38 obj-$(CONFIG_CPU_SB1) += c-r4k.o cerr-sb1.o cex-sb1.o tlb-r4k.o
39 obj-$(CONFIG_CPU_CAVIUM_OCTEON) += c-octeon.o cex-oct.o tlb-r4k.o
/linux/arch/arm/mm/
H A DMakefile58 obj-$(CONFIG_CPU_TLB_V4WT) += tlb-v4.o
59 obj-$(CONFIG_CPU_TLB_V4WB) += tlb-v4wb.o
60 obj-$(CONFIG_CPU_TLB_V4WBI) += tlb-v4wbi.o
61 obj-$(CONFIG_CPU_TLB_FEROCEON) += tlb-v4wbi.o # reuse v4wbi TLB functions
62 obj-$(CONFIG_CPU_TLB_V6) += tlb-v6.o
63 obj-$(CONFIG_CPU_TLB_V7) += tlb-v7.o
64 obj-$(CONFIG_CPU_TLB_FA) += tlb-fa.o
65 obj-y += tlb.o
/linux/arch/powerpc/include/asm/nohash/64/
H A Dpgalloc.h62 #define __pmd_free_tlb(tlb, pmd, addr) \ argument
63 pgtable_free_tlb(tlb, pmd, PMD_CACHE_INDEX)
64 #define __pud_free_tlb(tlb, pud, addr) \ argument
65 pgtable_free_tlb(tlb, pud, PUD_INDEX_SIZE)
/linux/tools/testing/vma/include/
H A Dstubs.h52 static inline void free_pgd_range(struct mmu_gather *tlb, in free_pgd_range() argument
420 static inline void tlb_gather_mmu(struct mmu_gather *tlb, struct mm_struct *mm) in vma_dup_policy()
432 static inline void unmap_vmas(struct mmu_gather *tlb, struct unmap_desc *unmap) in vma_supports_mlock()
436 static inline void free_pgtables(struct mmu_gather *tlb, struct unmap_desc *unmap)
448 static inline void tlb_finish_mmu(struct mmu_gather *tlb)
381 tlb_gather_mmu(struct mmu_gather * tlb,struct mm_struct * mm) tlb_gather_mmu() argument
393 unmap_vmas(struct mmu_gather * tlb,struct unmap_desc * unmap) unmap_vmas() argument
397 free_pgtables(struct mmu_gather * tlb,struct unmap_desc * unmap) free_pgtables() argument
409 tlb_finish_mmu(struct mmu_gather * tlb) tlb_finish_mmu() argument

12345