Home
last modified time | relevance | path

Searched defs:mm (Results 1 – 200 of 603) sorted by relevance

1234

/linux-4.4.14/arch/m68k/include/asm/
Dmmu_context.h6 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
30 static inline void get_mmu_context(struct mm_struct *mm) in get_mmu_context()
54 #define init_new_context(tsk, mm) (((mm)->context = NO_CONTEXT), 0) argument
59 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
85 struct mm_struct *mm) in activate_mm()
91 #define deactivate_mm(tsk, mm) do { } while (0) argument
99 struct mm_struct *mm; in load_ksp_mmu() local
169 struct mm_struct *mm) in init_new_context()
177 static inline void get_mmu_context(struct mm_struct *mm) in get_mmu_context()
184 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
[all …]
Dmcf_pgalloc.h7 extern inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
14 extern inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, in pte_alloc_one_kernel()
31 #define pmd_alloc_one_fast(mm, address) ({ BUG(); ((pmd_t *)1); }) argument
32 #define pmd_alloc_one(mm, address) ({ BUG(); ((pmd_t *)2); }) argument
34 #define pte_alloc_one_fast(mm, addr) pte_alloc_one(mm, addr) argument
36 #define pmd_populate(mm, pmd, page) (pmd_val(*pmd) = \ argument
39 #define pmd_populate_kernel(mm, pmd, pte) (pmd_val(*pmd) = (unsigned long)(pte)) argument
51 static inline struct page *pte_alloc_one(struct mm_struct *mm, in pte_alloc_one()
76 extern inline void pte_free(struct mm_struct *mm, struct page *page) in pte_free()
85 #define pmd_free(mm, pmd) BUG() argument
[all …]
Dsun3_pgalloc.h17 #define pmd_alloc_one(mm,address) ({ BUG(); ((pmd_t *)2); }) argument
20 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
25 static inline void pte_free(struct mm_struct *mm, pgtable_t page) in pte_free()
37 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, in pte_alloc_one_kernel()
49 static inline pgtable_t pte_alloc_one(struct mm_struct *mm, in pte_alloc_one()
66 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate_kernel()
71 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, pgtable_t page) in pmd_populate()
81 #define pmd_free(mm, x) do { } while (0) argument
84 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
89 static inline pgd_t * pgd_alloc(struct mm_struct *mm) in pgd_alloc()
[all …]
Dmotorola_pgalloc.h10 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) in pte_alloc_one_kernel()
24 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
30 static inline pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address) in pte_alloc_one()
51 static inline void pte_free(struct mm_struct *mm, pgtable_t page) in pte_free()
69 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one()
74 static inline int pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
86 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
91 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
97 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate_kernel()
102 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, pgtable_t page) in pmd_populate()
[all …]
Dtlbflush.h78 static inline void flush_tlb_mm(struct mm_struct *mm) in flush_tlb_mm()
144 static inline void flush_tlb_mm (struct mm_struct *mm) in flush_tlb_mm()
194 struct mm_struct *mm = vma->vm_mm; in flush_tlb_range() local
255 static inline void flush_tlb_mm(struct mm_struct *mm) in flush_tlb_mm()
265 static inline void flush_tlb_range(struct mm_struct *mm, in flush_tlb_range()
/linux-4.4.14/arch/x86/include/asm/
Dmmu_context.h24 static inline void load_mm_cr4(struct mm_struct *mm) in load_mm_cr4()
33 static inline void load_mm_cr4(struct mm_struct *mm) {} in load_mm_cr4()
59 struct mm_struct *mm) in init_new_context()
63 static inline void destroy_context(struct mm_struct *mm) {} in destroy_context()
66 static inline void load_mm_ldt(struct mm_struct *mm) in load_mm_ldt()
99 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
212 #define deactivate_mm(tsk, mm) \ argument
217 #define deactivate_mm(tsk, mm) \ argument
225 struct mm_struct *mm) in arch_dup_mmap()
230 static inline void arch_exit_mmap(struct mm_struct *mm) in arch_exit_mmap()
[all …]
Dpgalloc.h8 static inline int __paravirt_pgd_alloc(struct mm_struct *mm) { return 0; } in __paravirt_pgd_alloc()
13 #define paravirt_pgd_alloc(mm) __paravirt_pgd_alloc(mm) argument
14 static inline void paravirt_pgd_free(struct mm_struct *mm, pgd_t *pgd) {} in paravirt_pgd_free()
15 static inline void paravirt_alloc_pte(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_pte()
16 static inline void paravirt_alloc_pmd(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_pmd()
19 static inline void paravirt_alloc_pud(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_pud()
42 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
48 static inline void pte_free(struct mm_struct *mm, struct page *pte) in pte_free()
62 static inline void pmd_populate_kernel(struct mm_struct *mm, in pmd_populate_kernel()
69 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
[all …]
Dmpx.h60 static inline int kernel_managing_mpx_tables(struct mm_struct *mm) in kernel_managing_mpx_tables()
64 static inline void mpx_mm_init(struct mm_struct *mm) in mpx_mm_init()
83 static inline int kernel_managing_mpx_tables(struct mm_struct *mm) in kernel_managing_mpx_tables()
87 static inline void mpx_mm_init(struct mm_struct *mm) in mpx_mm_init()
90 static inline void mpx_notify_unmap(struct mm_struct *mm, in mpx_notify_unmap()
Dparavirt.h310 struct mm_struct *mm) in paravirt_arch_dup_mmap()
315 static inline void paravirt_arch_exit_mmap(struct mm_struct *mm) in paravirt_arch_exit_mmap()
334 struct mm_struct *mm, in flush_tlb_others()
341 static inline int paravirt_pgd_alloc(struct mm_struct *mm) in paravirt_pgd_alloc()
346 static inline void paravirt_pgd_free(struct mm_struct *mm, pgd_t *pgd) in paravirt_pgd_free()
351 static inline void paravirt_alloc_pte(struct mm_struct *mm, unsigned long pfn) in paravirt_alloc_pte()
360 static inline void paravirt_alloc_pmd(struct mm_struct *mm, unsigned long pfn) in paravirt_alloc_pmd()
370 static inline void paravirt_alloc_pud(struct mm_struct *mm, unsigned long pfn) in paravirt_alloc_pud()
379 static inline void pte_update(struct mm_struct *mm, unsigned long addr, in pte_update()
384 static inline void pmd_update(struct mm_struct *mm, unsigned long addr, in pmd_update()
[all …]
Dhugetlb.h9 static inline int is_hugepage_only_range(struct mm_struct *mm, in is_hugepage_only_range()
38 static inline void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, in set_huge_pte_at()
44 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear()
66 static inline void huge_ptep_set_wrprotect(struct mm_struct *mm, in huge_ptep_set_wrprotect()
Dpgtable.h47 #define set_pte_at(mm, addr, ptep, pte) native_set_pte_at(mm, addr, ptep, pte) argument
48 #define set_pmd_at(mm, addr, pmdp, pmd) native_set_pmd_at(mm, addr, pmdp, pmd) argument
68 #define pte_clear(mm, addr, ptep) native_pte_clear(mm, addr, ptep) argument
71 #define pte_update(mm, addr, ptep) do { } while (0) argument
72 #define pte_update_defer(mm, addr, ptep) do { } while (0) argument
73 #define pmd_update(mm, addr, ptep) do { } while (0) argument
74 #define pmd_update_defer(mm, addr, ptep) do { } while (0) argument
469 static inline bool pte_accessible(struct mm_struct *mm, pte_t a) in pte_accessible()
679 #define pgd_offset(mm, address) ((mm)->pgd + pgd_index((address))) argument
714 static inline void native_set_pte_at(struct mm_struct *mm, unsigned long addr, in native_set_pte_at()
[all …]
Dtlbflush.h185 static inline void flush_tlb_mm(struct mm_struct *mm) in flush_tlb_mm()
205 static inline void flush_tlb_mm_range(struct mm_struct *mm, in flush_tlb_mm_range()
213 struct mm_struct *mm, in native_flush_tlb_others()
235 #define flush_tlb_mm(mm) flush_tlb_mm_range(mm, 0UL, TLB_FLUSH_ALL, 0UL) argument
271 #define flush_tlb_others(mask, mm, start, end) \ argument
/linux-4.4.14/arch/parisc/include/asm/
Dpgalloc.h21 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
46 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
58 static inline void pgd_populate(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd) in pgd_populate()
64 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one()
73 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
97 #define pmd_alloc_one(mm, addr) ({ BUG(); ((pmd_t *)2); }) argument
98 #define pmd_free(mm, x) do { } while (0) argument
99 #define pgd_populate(mm, pmd, pte) BUG() argument
104 pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate_kernel()
120 #define pmd_populate(mm, pmd, pte_page) \ argument
[all …]
Dmmu_context.h11 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
22 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context()
31 destroy_context(struct mm_struct *mm) in destroy_context()
61 #define deactivate_mm(tsk,mm) do { } while (0) argument
/linux-4.4.14/arch/s390/include/asm/
Dpgalloc.h50 static inline unsigned long pgd_entry_type(struct mm_struct *mm) in pgd_entry_type()
62 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long address) in pud_alloc_one()
69 #define pud_free(mm, pud) crst_table_free(mm, (unsigned long *) pud) argument
71 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long vmaddr) in pmd_alloc_one()
85 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
91 static inline void pgd_populate(struct mm_struct *mm, pgd_t *pgd, pud_t *pud) in pgd_populate()
96 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
101 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
117 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
124 static inline void pmd_populate(struct mm_struct *mm, in pmd_populate()
[all …]
Dmmu_context.h16 struct mm_struct *mm) in init_new_context()
57 #define destroy_context(mm) do { } while (0) argument
59 static inline void set_user_asce(struct mm_struct *mm) in set_user_asce()
108 struct mm_struct *mm = tsk->mm; in finish_arch_post_lock_switch() local
124 #define enter_lazy_tlb(mm,tsk) do { } while (0) argument
125 #define deactivate_mm(tsk,mm) do { } while (0) argument
136 struct mm_struct *mm) in arch_dup_mmap()
140 static inline void arch_exit_mmap(struct mm_struct *mm) in arch_exit_mmap()
144 static inline void arch_unmap(struct mm_struct *mm, in arch_unmap()
150 static inline void arch_bprm_mm_init(struct mm_struct *mm, in arch_bprm_mm_init()
Dtlbflush.h64 static inline void __tlb_flush_full(struct mm_struct *mm) in __tlb_flush_full()
86 static inline void __tlb_flush_asce(struct mm_struct *mm, unsigned long asce) in __tlb_flush_asce()
119 #define __tlb_flush_full(mm) __tlb_flush_local() argument
124 static inline void __tlb_flush_asce(struct mm_struct *mm, unsigned long asce) in __tlb_flush_asce()
141 static inline void __tlb_flush_mm(struct mm_struct * mm) in __tlb_flush_mm()
154 static inline void __tlb_flush_mm_lazy(struct mm_struct * mm) in __tlb_flush_mm_lazy()
184 static inline void flush_tlb_mm(struct mm_struct *mm) in flush_tlb_mm()
Dpgtable.h398 static inline int mm_has_pgste(struct mm_struct *mm) in mm_has_pgste()
407 static inline int mm_alloc_pgste(struct mm_struct *mm) in mm_alloc_pgste()
421 static inline int mm_use_skey(struct mm_struct *mm) in mm_use_skey()
691 struct mm_struct *mm) in pgste_update_all()
712 struct mm_struct *mm) in pgste_set_key()
768 struct mm_struct *mm; member
809 static inline pgste_t pgste_ipte_notify(struct mm_struct *mm, in pgste_ipte_notify()
827 static inline void set_pte_at(struct mm_struct *mm, unsigned long addr, in set_pte_at()
889 static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) in pte_clear()
1008 static inline void ptep_flush_direct(struct mm_struct *mm, in ptep_flush_direct()
[all …]
Dhugetlb.h15 #define is_hugepage_only_range(mm, addr, len) 0 argument
41 static inline void huge_pte_clear(struct mm_struct *mm, unsigned long addr, in huge_pte_clear()
65 static inline void huge_ptep_set_wrprotect(struct mm_struct *mm, in huge_ptep_set_wrprotect()
/linux-4.4.14/arch/ia64/include/asm/
Dpgalloc.h25 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
30 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
37 pgd_populate(struct mm_struct *mm, pgd_t * pgd_entry, pud_t * pud) in pgd_populate()
42 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long addr) in pud_alloc_one()
47 static inline void pud_free(struct mm_struct *mm, pud_t *pud) in pud_free()
55 pud_populate(struct mm_struct *mm, pud_t * pud_entry, pmd_t * pmd) in pud_populate()
60 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr) in pmd_alloc_one()
65 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
73 pmd_populate(struct mm_struct *mm, pmd_t * pmd_entry, pgtable_t pte) in pmd_populate()
80 pmd_populate_kernel(struct mm_struct *mm, pmd_t * pmd_entry, pte_t * pte) in pmd_populate_kernel()
[all …]
Dmmu_context.h51 enter_lazy_tlb (struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
78 get_mmu_context (struct mm_struct *mm) in get_mmu_context()
118 init_new_context (struct task_struct *p, struct mm_struct *mm) in init_new_context()
125 destroy_context (struct mm_struct *mm) in destroy_context()
163 activate_context (struct mm_struct *mm) in activate_context()
179 #define deactivate_mm(tsk,mm) do { } while (0) argument
Dhugetlb.h15 static inline int is_hugepage_only_range(struct mm_struct *mm, in is_hugepage_only_range()
23 static inline void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, in set_huge_pte_at()
29 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear()
50 static inline void huge_ptep_set_wrprotect(struct mm_struct *mm, in huge_ptep_set_wrprotect()
Dtlbflush.h39 local_finish_flush_tlb_mm (struct mm_struct *mm) in local_finish_flush_tlb_mm()
51 flush_tlb_mm (struct mm_struct *mm) in flush_tlb_mm()
/linux-4.4.14/arch/m32r/include/asm/
Dmmu_context.h26 #define mm_context(mm) mm->context argument
30 #define mm_context(mm) mm->context[smp_processor_id()] argument
37 #define enter_lazy_tlb(mm, tsk) do { } while (0) argument
39 static inline void get_new_mmu_context(struct mm_struct *mm) in get_new_mmu_context()
58 static inline void get_mmu_context(struct mm_struct *mm) in get_mmu_context()
75 struct mm_struct *mm) in init_new_context()
94 #define destroy_context(mm) do { } while (0) argument
115 static inline void activate_context(struct mm_struct *mm) in activate_context()
143 #define deactivate_mm(tsk, mm) do { } while (0) argument
149 #define get_mmu_context(mm) do { } while (0) argument
[all …]
Dpgalloc.h8 #define pmd_populate_kernel(mm, pmd, pte) \ argument
11 static __inline__ void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
21 static __inline__ pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
28 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
33 static __inline__ pte_t *pte_alloc_one_kernel(struct mm_struct *mm, in pte_alloc_one_kernel()
41 static __inline__ pgtable_t pte_alloc_one(struct mm_struct *mm, in pte_alloc_one()
55 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
60 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free()
74 #define pmd_alloc_one(mm, addr) ({ BUG(); ((pmd_t *)2); }) argument
75 #define pmd_free(mm, x) do { } while (0) argument
[all …]
Dcacheflush.h11 #define flush_cache_mm(mm) do { } while (0) argument
12 #define flush_cache_dup_mm(mm) do { } while (0) argument
33 #define flush_cache_mm(mm) do { } while (0) argument
34 #define flush_cache_dup_mm(mm) do { } while (0) argument
47 #define flush_cache_mm(mm) do { } while (0) argument
48 #define flush_cache_dup_mm(mm) do { } while (0) argument
Dtlbflush.h26 #define flush_tlb_mm(mm) local_flush_tlb_mm(mm) argument
33 #define flush_tlb_mm(mm) do { } while (0) argument
45 #define flush_tlb_mm(mm) smp_flush_tlb_mm(mm) argument
/linux-4.4.14/arch/mn10300/include/asm/
Dmmu_context.h37 #define enter_lazy_tlb(mm, tsk) do {} while (0) argument
39 static inline void cpu_ran_vm(int cpu, struct mm_struct *mm) in cpu_ran_vm()
46 static inline bool cpu_maybe_ran_vm(int cpu, struct mm_struct *mm) in cpu_maybe_ran_vm()
57 #define mm_context(mm) (mm->context.tlbpid[smp_processor_id()]) argument
63 static inline unsigned long allocate_mmu_context(struct mm_struct *mm) in allocate_mmu_context()
85 static inline unsigned long get_mmu_context(struct mm_struct *mm) in get_mmu_context()
104 struct mm_struct *mm) in init_new_context()
117 static inline void activate_context(struct mm_struct *mm) in activate_context()
123 #define init_new_context(tsk, mm) (0) argument
124 #define activate_context(mm) local_flush_tlb() argument
[all …]
Dpgalloc.h22 #define pmd_populate_kernel(mm, pmd, pte) \ argument
26 void pmd_populate(struct mm_struct *mm, pmd_t *pmd, struct page *pte) in pmd_populate()
42 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
47 static inline void pte_free(struct mm_struct *mm, struct page *pte) in pte_free()
Dtlbflush.h60 void local_flush_tlb_page(struct mm_struct *mm, unsigned long addr) in local_flush_tlb_page()
123 static inline void flush_tlb_mm(struct mm_struct *mm) in flush_tlb_mm()
149 static inline void flush_tlb_pgtables(struct mm_struct *mm, in flush_tlb_pgtables()
/linux-4.4.14/arch/arm64/include/asm/
Dpgalloc.h34 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr) in pmd_alloc_one()
39 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
45 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
54 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long addr) in pud_alloc_one()
59 static inline void pud_free(struct mm_struct *mm, pud_t *pud) in pud_free()
65 static inline void pgd_populate(struct mm_struct *mm, pgd_t *pgd, pud_t *pud) in pgd_populate()
76 pte_alloc_one_kernel(struct mm_struct *mm, unsigned long addr) in pte_alloc_one_kernel()
82 pte_alloc_one(struct mm_struct *mm, unsigned long addr) in pte_alloc_one()
99 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
105 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free()
[all …]
Dmmu_context.h101 #define destroy_context(mm) do { } while(0) argument
104 #define init_new_context(tsk,mm) ({ atomic64_set(&(mm)->context.id, 0); 0; }) argument
116 enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
147 #define deactivate_mm(tsk,mm) do { } while (0) argument
Dhugetlb.h29 static inline void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, in set_huge_pte_at()
41 static inline void huge_ptep_set_wrprotect(struct mm_struct *mm, in huge_ptep_set_wrprotect()
47 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear()
68 static inline int is_hugepage_only_range(struct mm_struct *mm, in is_hugepage_only_range()
/linux-4.4.14/arch/alpha/include/asm/
Dpgalloc.h14 pmd_populate(struct mm_struct *mm, pmd_t *pmd, pgtable_t pte) in pmd_populate()
21 pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate_kernel()
27 pgd_populate(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd) in pgd_populate()
35 pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
41 pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one()
48 pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
54 pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) in pte_alloc_one_kernel()
61 pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
67 pte_alloc_one(struct mm_struct *mm, unsigned long address) in pte_alloc_one()
83 pte_free(struct mm_struct *mm, pgtable_t page) in pte_free()
Dtlbflush.h21 ev4_flush_tlb_current(struct mm_struct *mm) in ev4_flush_tlb_current()
28 ev5_flush_tlb_current(struct mm_struct *mm) in ev5_flush_tlb_current()
38 ev4_flush_tlb_current_page(struct mm_struct * mm, in ev4_flush_tlb_current_page()
51 ev5_flush_tlb_current_page(struct mm_struct * mm, in ev5_flush_tlb_current_page()
89 flush_tlb_other(struct mm_struct *mm) in flush_tlb_other()
107 flush_tlb_mm(struct mm_struct *mm) in flush_tlb_mm()
119 struct mm_struct *mm = vma->vm_mm; in flush_tlb_page() local
Dmmu_context.h117 __get_new_mm_context(struct mm_struct *mm, long cpu) in __get_new_mm_context()
213 #define deactivate_mm(tsk,mm) do { } while (0) argument
229 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context()
242 destroy_context(struct mm_struct *mm) in destroy_context()
248 enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
Dcacheflush.h8 #define flush_cache_mm(mm) do { } while (0) argument
9 #define flush_cache_dup_mm(mm) do { } while (0) argument
54 struct mm_struct *mm = vma->vm_mm; in flush_icache_user_range() local
/linux-4.4.14/arch/arm/include/asm/
Dpgalloc.h30 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr) in pmd_alloc_one()
35 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
41 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
51 #define pmd_alloc_one(mm,addr) ({ BUG(); ((pmd_t *)2); }) argument
52 #define pmd_free(mm, pmd) do { } while (0) argument
53 #define pud_populate(mm,pmd,pte) BUG() argument
84 pte_alloc_one_kernel(struct mm_struct *mm, unsigned long addr) in pte_alloc_one_kernel()
96 pte_alloc_one(struct mm_struct *mm, unsigned long addr) in pte_alloc_one()
119 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
125 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free()
[all …]
Dmmu_context.h29 #define init_new_context(tsk,mm) ({ atomic64_set(&mm->context.id, 0); 0; }) argument
35 static inline void a15_erratum_get_cpumask(int this_cpu, struct mm_struct *mm, in a15_erratum_get_cpumask()
45 static inline void check_and_switch_context(struct mm_struct *mm, in check_and_switch_context()
68 struct mm_struct *mm = current->mm; in finish_arch_post_lock_switch() local
88 #define init_new_context(tsk,mm) 0 argument
92 #define destroy_context(mm) do { } while(0) argument
105 enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
140 #define deactivate_mm(tsk,mm) do { } while (0) argument
Dhugetlb-3level.h40 static inline void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, in set_huge_pte_at()
52 static inline void huge_ptep_set_wrprotect(struct mm_struct *mm, in huge_ptep_set_wrprotect()
58 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear()
Dmmu.h22 #define ASID(mm) ((unsigned int)((mm)->context.id.counter & ~ASID_MASK)) argument
24 #define ASID(mm) (0) argument
/linux-4.4.14/mm/
Dmmu_notifier.c56 void __mmu_notifier_release(struct mm_struct *mm) in __mmu_notifier_release()
109 int __mmu_notifier_clear_flush_young(struct mm_struct *mm, in __mmu_notifier_clear_flush_young()
126 int __mmu_notifier_clear_young(struct mm_struct *mm, in __mmu_notifier_clear_young()
143 int __mmu_notifier_test_young(struct mm_struct *mm, in __mmu_notifier_test_young()
162 void __mmu_notifier_change_pte(struct mm_struct *mm, unsigned long address, in __mmu_notifier_change_pte()
176 void __mmu_notifier_invalidate_page(struct mm_struct *mm, in __mmu_notifier_invalidate_page()
190 void __mmu_notifier_invalidate_range_start(struct mm_struct *mm, in __mmu_notifier_invalidate_range_start()
205 void __mmu_notifier_invalidate_range_end(struct mm_struct *mm, in __mmu_notifier_invalidate_range_end()
230 void __mmu_notifier_invalidate_range(struct mm_struct *mm, in __mmu_notifier_invalidate_range()
246 struct mm_struct *mm, in do_mmu_notifier_register()
[all …]
Dvmacache.c16 void vmacache_flush_all(struct mm_struct *mm) in vmacache_flush_all()
55 static inline bool vmacache_valid_mm(struct mm_struct *mm) in vmacache_valid_mm()
66 static bool vmacache_valid(struct mm_struct *mm) in vmacache_valid()
86 struct vm_area_struct *vmacache_find(struct mm_struct *mm, unsigned long addr) in vmacache_find()
112 struct vm_area_struct *vmacache_find_exact(struct mm_struct *mm, in vmacache_find_exact()
Dmmap.c154 int __vm_enough_memory(struct mm_struct *mm, long pages, int cap_sys_admin) in __vm_enough_memory()
290 struct mm_struct *mm = current->mm; in SYSCALL_DEFINE1() local
436 static void validate_mm(struct mm_struct *mm) in validate_mm()
477 #define validate_mm(mm) do { } while (0) argument
554 static int find_vma_links(struct mm_struct *mm, unsigned long addr, in find_vma_links()
588 static unsigned long count_vma_pages_range(struct mm_struct *mm, in count_vma_pages_range()
616 void __vma_link_rb(struct mm_struct *mm, struct vm_area_struct *vma, in __vma_link_rb()
660 __vma_link(struct mm_struct *mm, struct vm_area_struct *vma, in __vma_link()
668 static void vma_link(struct mm_struct *mm, struct vm_area_struct *vma, in vma_link()
693 static void __insert_vm_struct(struct mm_struct *mm, struct vm_area_struct *vma) in __insert_vm_struct()
[all …]
Dmemory.c137 void sync_mm_rss(struct mm_struct *mm) in sync_mm_rss()
150 static void add_mm_counter_fast(struct mm_struct *mm, int member, int val) in add_mm_counter_fast()
159 #define inc_mm_counter_fast(mm, member) add_mm_counter_fast(mm, member, 1) argument
160 #define dec_mm_counter_fast(mm, member) add_mm_counter_fast(mm, member, -1) argument
173 #define inc_mm_counter_fast(mm, member) inc_mm_counter(mm, member) argument
174 #define dec_mm_counter_fast(mm, member) dec_mm_counter(mm, member) argument
217 void tlb_gather_mmu(struct mmu_gather *tlb, struct mm_struct *mm, unsigned long start, unsigned lon… in tlb_gather_mmu()
564 int __pte_alloc(struct mm_struct *mm, struct vm_area_struct *vma, in __pte_alloc()
629 static inline void add_mm_rss_vec(struct mm_struct *mm, int *rss) in add_mm_rss_vec()
1118 struct mm_struct *mm = tlb->mm; in zap_pte_range() local
[all …]
Dgup.c64 struct mm_struct *mm = vma->vm_mm; in follow_page_pte() local
186 struct mm_struct *mm = vma->vm_mm; in follow_page_mask() local
246 static int get_gate_page(struct mm_struct *mm, unsigned long address, in get_gate_page()
298 struct mm_struct *mm = vma->vm_mm; in faultin_page() local
453 long __get_user_pages(struct task_struct *tsk, struct mm_struct *mm, in __get_user_pages()
587 int fixup_user_fault(struct task_struct *tsk, struct mm_struct *mm, in fixup_user_fault()
622 struct mm_struct *mm, in __get_user_pages_locked()
738 long get_user_pages_locked(struct task_struct *tsk, struct mm_struct *mm, in get_user_pages_locked()
758 __always_inline long __get_user_pages_unlocked(struct task_struct *tsk, struct mm_struct *mm, in __get_user_pages_unlocked()
791 long get_user_pages_unlocked(struct task_struct *tsk, struct mm_struct *mm, in get_user_pages_unlocked()
[all …]
Dmremap.c32 static pmd_t *get_old_pmd(struct mm_struct *mm, unsigned long addr) in get_old_pmd()
53 static pmd_t *alloc_new_pmd(struct mm_struct *mm, struct vm_area_struct *vma, in alloc_new_pmd()
96 struct mm_struct *mm = vma->vm_mm; in move_ptes() local
240 struct mm_struct *mm = vma->vm_mm; in move_vma() local
347 struct mm_struct *mm = current->mm; in vma_to_resize() local
398 struct mm_struct *mm = current->mm; in mremap_to() local
475 struct mm_struct *mm = current->mm; in SYSCALL_DEFINE5() local
Dhuge_memory.c89 struct mm_struct *mm; member
714 static int __do_huge_pmd_anonymous_page(struct mm_struct *mm, in __do_huge_pmd_anonymous_page()
793 static bool set_huge_zero_page(pgtable_t pgtable, struct mm_struct *mm, in set_huge_zero_page()
808 int do_huge_pmd_anonymous_page(struct mm_struct *mm, struct vm_area_struct *vma, in do_huge_pmd_anonymous_page()
875 struct mm_struct *mm = vma->vm_mm; in insert_pfn_pmd() local
988 void huge_pmd_set_accessed(struct mm_struct *mm, in huge_pmd_set_accessed()
1042 static int do_huge_pmd_wp_page_fallback(struct mm_struct *mm, in do_huge_pmd_wp_page_fallback()
1151 int do_huge_pmd_wp_page(struct mm_struct *mm, struct vm_area_struct *vma, in do_huge_pmd_wp_page()
1277 struct mm_struct *mm = vma->vm_mm; in follow_trans_huge_pmd() local
1328 int do_huge_pmd_numa_page(struct mm_struct *mm, struct vm_area_struct *vma, in do_huge_pmd_numa_page()
[all …]
Dnommu.c135 long __get_user_pages(struct task_struct *tsk, struct mm_struct *mm, in __get_user_pages()
185 long get_user_pages(struct task_struct *tsk, struct mm_struct *mm, in get_user_pages()
202 long get_user_pages_locked(struct task_struct *tsk, struct mm_struct *mm, in get_user_pages_locked()
212 long __get_user_pages_unlocked(struct task_struct *tsk, struct mm_struct *mm, in __get_user_pages_unlocked()
226 long get_user_pages_unlocked(struct task_struct *tsk, struct mm_struct *mm, in get_user_pages_unlocked()
531 struct mm_struct *mm = current->mm; in SYSCALL_DEFINE1() local
701 struct mm_struct *mm = vma->vm_mm; in protect_vma() local
717 static void add_vma_to_mm(struct mm_struct *mm, struct vm_area_struct *vma) in add_vma_to_mm()
787 struct mm_struct *mm = vma->vm_mm; in delete_vma_from_mm() local
827 static void delete_vma(struct mm_struct *mm, struct vm_area_struct *vma) in delete_vma()
[all …]
Dmmu_context.c20 void use_mm(struct mm_struct *mm) in use_mm()
51 void unuse_mm(struct mm_struct *mm) in unuse_mm()
Dksm.c106 struct mm_struct *mm; member
169 struct mm_struct *mm; member
321 static struct mm_slot *get_mm_slot(struct mm_struct *mm) in get_mm_slot()
332 static void insert_to_mm_slots_hash(struct mm_struct *mm, in insert_to_mm_slots_hash()
347 static inline bool ksm_test_exit(struct mm_struct *mm) in ksm_test_exit()
411 static struct vm_area_struct *find_mergeable_vma(struct mm_struct *mm, in find_mergeable_vma()
427 struct mm_struct *mm = rmap_item->mm; in break_cow() local
460 struct mm_struct *mm = rmap_item->mm; in get_mergeable_page() local
771 struct mm_struct *mm; in unmerge_and_remove_all_rmap_items() local
859 struct mm_struct *mm = vma->vm_mm; in write_protect_page() local
[all …]
Dutil.c179 void __vma_link_list(struct mm_struct *mm, struct vm_area_struct *vma, in __vma_link_list()
233 void arch_pick_mmap_layout(struct mm_struct *mm) in arch_pick_mmap_layout()
280 struct mm_struct *mm = current->mm; in get_user_pages_fast() local
291 struct mm_struct *mm = current->mm; in vm_mmap_pgoff() local
431 struct mm_struct *mm = get_task_mm(task); in get_cmdline() local
/linux-4.4.14/arch/powerpc/include/asm/
Dpgalloc-64.h44 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
49 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
58 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long addr) in pud_alloc_one()
64 static inline void pud_free(struct mm_struct *mm, pud_t *pud) in pud_free()
69 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
74 #define pmd_populate(mm, pmd, pte_page) \ argument
76 #define pmd_populate_kernel(mm, pmd, pte) pmd_set(pmd, (unsigned long)(pte)) argument
79 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, in pte_alloc_one_kernel()
85 static inline pgtable_t pte_alloc_one(struct mm_struct *mm, in pte_alloc_one()
102 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
[all …]
Dmmu_context.h104 #define deactivate_mm(tsk,mm) do { } while (0) argument
120 static inline void enter_lazy_tlb(struct mm_struct *mm, in enter_lazy_tlb()
130 struct mm_struct *mm) in arch_dup_mmap()
134 static inline void arch_exit_mmap(struct mm_struct *mm) in arch_exit_mmap()
138 static inline void arch_unmap(struct mm_struct *mm, in arch_unmap()
146 static inline void arch_bprm_mm_init(struct mm_struct *mm, in arch_bprm_mm_init()
Dpage_64.h131 #define slice_mm_new_context(mm) ((mm)->context.id == MMU_NO_CONTEXT) argument
137 #define get_slice_psize(mm, addr) ((mm)->context.user_psize) argument
138 #define slice_set_user_psize(mm, psize) \ argument
145 #define get_slice_psize(mm, addr) MMU_PAGE_64K argument
147 #define get_slice_psize(mm, addr) MMU_PAGE_4K argument
149 #define slice_set_user_psize(mm, psize) do { BUG(); } while(0) argument
152 #define slice_set_range_psize(mm, start, len, psize) \ argument
154 #define slice_mm_new_context(mm) 1 argument
Dpgalloc-32.h19 #define pmd_free(mm, x) do { } while (0) argument
24 #define pmd_populate_kernel(mm, pmd, pte) \ argument
26 #define pmd_populate(mm, pmd, pte) \ argument
30 #define pmd_populate_kernel(mm, pmd, pte) \ argument
32 #define pmd_populate(mm, pmd, pte) \ argument
40 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
45 static inline void pte_free(struct mm_struct *mm, pgtable_t ptepage) in pte_free()
Dtlbflush.h53 #define flush_tlb_mm(mm) local_flush_tlb_mm(mm) argument
55 #define __flush_tlb_page(mm,addr,p,i) __local_flush_tlb_page(mm,addr,p,i) argument
75 static inline void local_flush_tlb_mm(struct mm_struct *mm) in local_flush_tlb_mm()
96 struct mm_struct *mm; member
134 static inline void local_flush_tlb_mm(struct mm_struct *mm) in local_flush_tlb_mm()
138 static inline void flush_tlb_mm(struct mm_struct *mm) in flush_tlb_mm()
Dpgtable-ppc64.h141 #define pte_pagesize_index(mm, addr, pte) MMU_PAGE_4K argument
189 #define pgd_offset(mm, address) ((mm)->pgd + pgd_index(address)) argument
207 static inline unsigned long pte_update(struct mm_struct *mm, in pte_update()
243 static inline int __ptep_test_and_clear_young(struct mm_struct *mm, in __ptep_test_and_clear_young()
262 static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr, in ptep_set_wrprotect()
272 static inline void huge_ptep_set_wrprotect(struct mm_struct *mm, in huge_ptep_set_wrprotect()
298 static inline pte_t ptep_get_and_clear(struct mm_struct *mm, in ptep_get_and_clear()
305 static inline void pte_clear(struct mm_struct *mm, unsigned long addr, in pte_clear()
483 static inline void hpte_do_hugepage_flush(struct mm_struct *mm, in hpte_do_hugepage_flush()
562 static inline int __pmdp_test_and_clear_young(struct mm_struct *mm, in __pmdp_test_and_clear_young()
[all …]
Dpgtable-ppc32.h127 #define pte_clear(mm, addr, ptep) \ argument
248 static inline pte_t ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, in ptep_get_and_clear()
255 static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr, in ptep_set_wrprotect()
260 static inline void huge_ptep_set_wrprotect(struct mm_struct *mm, in huge_ptep_set_wrprotect()
303 #define pgd_offset(mm, address) ((mm)->pgd + pgd_index(address)) argument
/linux-4.4.14/include/linux/
Dmmu_notifier.h198 static inline int mm_has_notifiers(struct mm_struct *mm) in mm_has_notifiers()
232 static inline void mmu_notifier_release(struct mm_struct *mm) in mmu_notifier_release()
238 static inline int mmu_notifier_clear_flush_young(struct mm_struct *mm, in mmu_notifier_clear_flush_young()
247 static inline int mmu_notifier_clear_young(struct mm_struct *mm, in mmu_notifier_clear_young()
256 static inline int mmu_notifier_test_young(struct mm_struct *mm, in mmu_notifier_test_young()
264 static inline void mmu_notifier_change_pte(struct mm_struct *mm, in mmu_notifier_change_pte()
271 static inline void mmu_notifier_invalidate_page(struct mm_struct *mm, in mmu_notifier_invalidate_page()
278 static inline void mmu_notifier_invalidate_range_start(struct mm_struct *mm, in mmu_notifier_invalidate_range_start()
285 static inline void mmu_notifier_invalidate_range_end(struct mm_struct *mm, in mmu_notifier_invalidate_range_end()
292 static inline void mmu_notifier_invalidate_range(struct mm_struct *mm, in mmu_notifier_invalidate_range()
[all …]
Dkhugepaged.h26 static inline int khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork()
33 static inline void khugepaged_exit(struct mm_struct *mm) in khugepaged_exit()
51 static inline int khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork()
55 static inline void khugepaged_exit(struct mm_struct *mm) in khugepaged_exit()
Dmm.h1129 struct mm_struct *mm; member
1170 static inline int handle_mm_fault(struct mm_struct *mm, in handle_mm_fault()
1179 struct mm_struct *mm, unsigned long address, in fixup_user_fault()
1336 static inline unsigned long get_mm_counter(struct mm_struct *mm, int member) in get_mm_counter()
1351 static inline void add_mm_counter(struct mm_struct *mm, int member, long value) in add_mm_counter()
1356 static inline void inc_mm_counter(struct mm_struct *mm, int member) in inc_mm_counter()
1361 static inline void dec_mm_counter(struct mm_struct *mm, int member) in dec_mm_counter()
1366 static inline unsigned long get_mm_rss(struct mm_struct *mm) in get_mm_rss()
1372 static inline unsigned long get_mm_hiwater_rss(struct mm_struct *mm) in get_mm_hiwater_rss()
1377 static inline unsigned long get_mm_hiwater_vm(struct mm_struct *mm) in get_mm_hiwater_vm()
[all …]
Dksm.h25 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork()
32 static inline void ksm_exit(struct mm_struct *mm) in ksm_exit()
69 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork()
74 static inline void ksm_exit(struct mm_struct *mm) in ksm_exit()
Dhugetlb.h136 #define follow_huge_addr(mm, addr, write) ERR_PTR(-EINVAL) argument
145 #define follow_huge_pmd(mm, addr, pmd, flags) NULL argument
146 #define follow_huge_pud(mm, addr, pud, flags) NULL argument
150 #define is_hugepage_only_range(mm, addr, len) 0 argument
152 #define hugetlb_fault(mm, vma, addr, flags) ({ BUG(); 0; }) argument
153 #define huge_pte_offset(mm, address) 0 argument
469 struct mm_struct *mm, pte_t *pte) in huge_pte_lockptr()
488 static inline void hugetlb_count_add(long l, struct mm_struct *mm) in hugetlb_count_add()
493 static inline void hugetlb_count_sub(long l, struct mm_struct *mm) in hugetlb_count_sub()
529 struct mm_struct *mm, pte_t *pte) in huge_pte_lockptr()
[all …]
/linux-4.4.14/arch/mips/include/asm/
Dpgalloc.h16 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, in pmd_populate_kernel()
22 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
36 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
47 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
62 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
67 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, in pte_alloc_one_kernel()
77 static inline struct page *pte_alloc_one(struct mm_struct *mm, in pte_alloc_one()
93 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
98 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free()
112 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one()
[all …]
Dmmu_context.h85 #define cpu_context(cpu, mm) ((mm)->context.asid[cpu]) argument
86 #define cpu_asid(cpu, mm) (cpu_context((cpu), (mm)) & ASID_MASK) argument
89 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
102 get_new_mmu_context(struct mm_struct *mm, unsigned long cpu) in get_new_mmu_context()
127 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context()
168 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
172 #define deactivate_mm(tsk, mm) do { } while (0) argument
206 drop_mmu_context(struct mm_struct *mm, unsigned cpu) in drop_mmu_context()
Dhugetlb.h16 static inline int is_hugepage_only_range(struct mm_struct *mm, in is_hugepage_only_range()
50 static inline void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, in set_huge_pte_at()
56 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear()
84 static inline void huge_ptep_set_wrprotect(struct mm_struct *mm, in huge_ptep_set_wrprotect()
/linux-4.4.14/arch/unicore32/include/asm/
Dmmu_context.h24 #define init_new_context(tsk, mm) 0 argument
26 #define destroy_context(mm) do { } while (0) argument
38 enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
58 #define deactivate_mm(tsk, mm) do { } while (0) argument
68 #define arch_exit_mmap(mm) \ argument
85 struct mm_struct *mm) in arch_dup_mmap()
89 static inline void arch_unmap(struct mm_struct *mm, in arch_unmap()
95 static inline void arch_bprm_mm_init(struct mm_struct *mm, in arch_bprm_mm_init()
Dpgalloc.h28 #define pgd_alloc(mm) get_pgd_slow(mm) argument
29 #define pgd_free(mm, pgd) free_pgd_slow(mm, pgd) argument
37 pte_alloc_one_kernel(struct mm_struct *mm, unsigned long addr) in pte_alloc_one_kernel()
49 pte_alloc_one(struct mm_struct *mm, unsigned long addr) in pte_alloc_one()
70 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
76 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free()
93 pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmdp, pte_t *ptep) in pmd_populate_kernel()
105 pmd_populate(struct mm_struct *mm, pmd_t *pmdp, pgtable_t ptep) in pmd_populate()
/linux-4.4.14/arch/xtensa/include/asm/
Dpgalloc.h24 #define pmd_populate_kernel(mm, pmdp, ptep) \ argument
26 #define pmd_populate(mm, pmdp, page) \ argument
31 pgd_alloc(struct mm_struct *mm) in pgd_alloc()
36 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
41 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, in pte_alloc_one_kernel()
55 static inline pgtable_t pte_alloc_one(struct mm_struct *mm, in pte_alloc_one()
72 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
77 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free()
Dmmu_context.h68 static inline void get_new_mmu_context(struct mm_struct *mm, unsigned int cpu) in get_new_mmu_context()
84 static inline void get_mmu_context(struct mm_struct *mm, unsigned int cpu) in get_mmu_context()
99 static inline void activate_context(struct mm_struct *mm, unsigned int cpu) in activate_context()
113 struct mm_struct *mm) in init_new_context()
138 #define deactivate_mm(tsk, mm) do { } while (0) argument
144 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
150 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
Dnommu_context.h5 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
9 static inline int init_new_context(struct task_struct *tsk,struct mm_struct *mm) in init_new_context()
14 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
27 static inline void deactivate_mm(struct task_struct *tsk, struct mm_struct *mm) in deactivate_mm()
Dcacheflush.h116 #define flush_cache_mm(mm) flush_cache_all() argument
117 #define flush_cache_dup_mm(mm) flush_cache_mm(mm) argument
133 #define flush_cache_mm(mm) do { } while (0) argument
134 #define flush_cache_dup_mm(mm) do { } while (0) argument
/linux-4.4.14/arch/cris/include/asm/
Dpgalloc.h7 #define pmd_populate_kernel(mm, pmd, pte) pmd_set(pmd, pte) argument
8 #define pmd_populate(mm, pmd, pte) pmd_set(pmd, page_address(pte)) argument
15 static inline pgd_t *pgd_alloc (struct mm_struct *mm) in pgd_alloc()
20 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
25 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) in pte_alloc_one_kernel()
31 static inline pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address) in pte_alloc_one()
44 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
49 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free()
Dmmu_context.h12 #define deactivate_mm(tsk,mm) do { } while (0) argument
30 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
/linux-4.4.14/arch/hexagon/include/asm/
Dpgalloc.h34 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
57 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
62 static inline struct page *pte_alloc_one(struct mm_struct *mm, in pte_alloc_one()
78 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, in pte_alloc_one_kernel()
85 static inline void pte_free(struct mm_struct *mm, struct page *pte) in pte_free()
91 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
96 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
116 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, in pmd_populate_kernel()
Dmmu_context.h29 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
38 static inline void enter_lazy_tlb(struct mm_struct *mm, in enter_lazy_tlb()
47 struct mm_struct *mm) in deactivate_mm()
57 struct mm_struct *mm) in init_new_context()
/linux-4.4.14/arch/score/include/asm/
Dpgalloc.h6 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, in pmd_populate_kernel()
12 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
20 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
35 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
40 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, in pte_alloc_one_kernel()
51 static inline struct page *pte_alloc_one(struct mm_struct *mm, in pte_alloc_one()
67 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
72 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free()
Dmmu_context.h42 static inline void enter_lazy_tlb(struct mm_struct *mm, in enter_lazy_tlb()
47 get_new_mmu_context(struct mm_struct *mm) in get_new_mmu_context()
66 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context()
90 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
94 deactivate_mm(struct task_struct *task, struct mm_struct *mm) in deactivate_mm()
/linux-4.4.14/arch/x86/mm/
Dmpx.c23 static inline unsigned long mpx_bd_size_bytes(struct mm_struct *mm) in mpx_bd_size_bytes()
31 static inline unsigned long mpx_bt_size_bytes(struct mm_struct *mm) in mpx_bt_size_bytes()
45 struct mm_struct *mm = current->mm; in mpx_mmap() local
341 struct mm_struct *mm = current->mm; in mpx_enable_management() local
367 struct mm_struct *mm = current->mm; in mpx_disable_management() local
378 static int mpx_cmpxchg_bd_entry(struct mm_struct *mm, in mpx_cmpxchg_bd_entry()
412 static int allocate_bt(struct mm_struct *mm, long __user *bd_entry) in allocate_bt()
494 struct mm_struct *mm = current->mm; in do_mpx_bt_fault() local
565 static unsigned long mpx_bd_entry_to_bt_addr(struct mm_struct *mm, in mpx_bd_entry_to_bt_addr()
593 int get_user_bd_entry(struct mm_struct *mm, unsigned long *bd_entry_ret, in get_user_bd_entry()
[all …]
Dpgtable.c19 pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) in pte_alloc_one_kernel()
24 pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address) in pte_alloc_one()
105 static void pgd_set_mm(pgd_t *pgd, struct mm_struct *mm) in pgd_set_mm()
116 static void pgd_ctor(struct mm_struct *mm, pgd_t *pgd) in pgd_ctor()
171 void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd) in pud_populate()
194 static void free_pmds(struct mm_struct *mm, pmd_t *pmds[]) in free_pmds()
206 static int preallocate_pmds(struct mm_struct *mm, pmd_t *pmds[]) in preallocate_pmds()
239 static void pgd_mop_up_pmds(struct mm_struct *mm, pgd_t *pgdp) in pgd_mop_up_pmds()
258 static void pgd_prepopulate_pmd(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmds[]) in pgd_prepopulate_pmd()
354 pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
[all …]
Dtlb.c132 struct mm_struct *mm, unsigned long start, in native_flush_tlb_others()
165 struct mm_struct *mm = current->mm; in flush_tlb_current_task() local
192 void flush_tlb_mm_range(struct mm_struct *mm, unsigned long start, in flush_tlb_mm_range()
247 struct mm_struct *mm = vma->vm_mm; in flush_tlb_page() local
/linux-4.4.14/drivers/gpu/drm/amd/amdkfd/
Dkfd_mqd_manager_cik.c37 static int init_mqd(struct mqd_manager *mm, void **mqd, in init_mqd()
109 static int init_mqd_sdma(struct mqd_manager *mm, void **mqd, in init_mqd_sdma()
138 static void uninit_mqd(struct mqd_manager *mm, void *mqd, in uninit_mqd()
145 static void uninit_mqd_sdma(struct mqd_manager *mm, void *mqd, in uninit_mqd_sdma()
152 static int load_mqd(struct mqd_manager *mm, void *mqd, uint32_t pipe_id, in load_mqd()
159 static int load_mqd_sdma(struct mqd_manager *mm, void *mqd, in load_mqd_sdma()
166 static int update_mqd(struct mqd_manager *mm, void *mqd, in update_mqd()
210 static int update_mqd_sdma(struct mqd_manager *mm, void *mqd, in update_mqd_sdma()
250 static int destroy_mqd(struct mqd_manager *mm, void *mqd, in destroy_mqd()
263 static int destroy_mqd_sdma(struct mqd_manager *mm, void *mqd, in destroy_mqd_sdma()
[all …]
Dkfd_mqd_manager_vi.c39 static int init_mqd(struct mqd_manager *mm, void **mqd, in init_mqd()
93 static int load_mqd(struct mqd_manager *mm, void *mqd, in load_mqd()
101 static int __update_mqd(struct mqd_manager *mm, void *mqd, in __update_mqd()
170 static int update_mqd(struct mqd_manager *mm, void *mqd, in update_mqd()
176 static int destroy_mqd(struct mqd_manager *mm, void *mqd, in destroy_mqd()
186 static void uninit_mqd(struct mqd_manager *mm, void *mqd, in uninit_mqd()
193 static bool is_occupied(struct mqd_manager *mm, void *mqd, in is_occupied()
202 static int init_mqd_hiq(struct mqd_manager *mm, void **mqd, in init_mqd_hiq()
220 static int update_mqd_hiq(struct mqd_manager *mm, void *mqd, in update_mqd_hiq()
/linux-4.4.14/arch/microblaze/include/asm/
Dpgalloc.h99 #define pgd_free(mm, pgd) free_pgd_fast(pgd) argument
100 #define pgd_alloc(mm) get_pgd_fast() argument
108 #define pmd_alloc_one_fast(mm, address) ({ BUG(); ((pmd_t *)1); }) argument
109 #define pmd_alloc_one(mm, address) ({ BUG(); ((pmd_t *)2); }) argument
113 static inline struct page *pte_alloc_one(struct mm_struct *mm, in pte_alloc_one()
135 static inline pte_t *pte_alloc_one_fast(struct mm_struct *mm, in pte_alloc_one_fast()
156 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
166 static inline void pte_free(struct mm_struct *mm, struct page *ptepage) in pte_free()
174 #define pmd_populate(mm, pmd, pte) \ argument
177 #define pmd_populate_kernel(mm, pmd, pte) \ argument
[all …]
Dmmu_context_mm.h36 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
81 static inline void get_mmu_context(struct mm_struct *mm) in get_mmu_context()
103 # define init_new_context(tsk, mm) (((mm)->context = NO_CONTEXT), 0) argument
108 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
130 struct mm_struct *mm) in activate_mm()
Dtlbflush.h31 static inline void local_flush_tlb_mm(struct mm_struct *mm) in local_flush_tlb_mm()
54 static inline void flush_tlb_pgtables(struct mm_struct *mm, in flush_tlb_pgtables()
61 #define flush_tlb_mm(mm) BUG() argument
63 #define flush_tlb_range(mm, start, end) BUG() argument
64 #define flush_tlb_pgtables(mm, start, end) BUG() argument
/linux-4.4.14/arch/metag/include/asm/
Dpgalloc.h7 #define pmd_populate_kernel(mm, pmd, pte) \ argument
10 #define pmd_populate(mm, pmd, pte) \ argument
29 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
37 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
42 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, in pte_alloc_one_kernel()
50 static inline pgtable_t pte_alloc_one(struct mm_struct *mm, in pte_alloc_one()
64 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
69 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free()
Dmmu_context.h13 static inline void enter_lazy_tlb(struct mm_struct *mm, in enter_lazy_tlb()
19 struct mm_struct *mm) in init_new_context()
39 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
50 #define destroy_context(mm) do { } while (0) argument
111 #define deactivate_mm(tsk, mm) do { } while (0) argument
Dhugetlb.h8 static inline int is_hugepage_only_range(struct mm_struct *mm, in is_hugepage_only_range()
25 static inline void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, in set_huge_pte_at()
31 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear()
52 static inline void huge_ptep_set_wrprotect(struct mm_struct *mm, in huge_ptep_set_wrprotect()
/linux-4.4.14/arch/avr32/include/asm/
Dpgalloc.h19 static inline void pmd_populate_kernel(struct mm_struct *mm, in pmd_populate_kernel()
25 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
44 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
49 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
54 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, in pte_alloc_one_kernel()
60 static inline pgtable_t pte_alloc_one(struct mm_struct *mm, in pte_alloc_one()
79 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
84 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free()
Dmmu_context.h41 get_mmu_context(struct mm_struct *mm) in get_mmu_context()
72 struct mm_struct *mm) in init_new_context()
82 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
102 static inline void activate_context(struct mm_struct *mm) in activate_context()
120 #define deactivate_mm(tsk,mm) do { } while(0) argument
125 enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
/linux-4.4.14/arch/arc/include/asm/
Dpgalloc.h39 pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate_kernel()
45 pmd_populate(struct mm_struct *mm, pmd_t *pmd, pgtable_t ptep) in pmd_populate()
55 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
74 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
93 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, in pte_alloc_one_kernel()
105 pte_alloc_one(struct mm_struct *mm, unsigned long address) in pte_alloc_one()
123 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
128 static inline void pte_free(struct mm_struct *mm, pgtable_t ptep) in pte_free()
Dmmu_context.h50 #define asid_mm(mm, cpu) mm->context.asid[cpu] argument
51 #define hw_pid(mm, cpu) (asid_mm(mm, cpu) & MM_CTXT_ASID_MASK) argument
60 static inline void get_new_mmu_context(struct mm_struct *mm) in get_new_mmu_context()
108 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context()
118 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
173 #define deactivate_mm(tsk, mm) do { } while (0) argument
175 #define enter_lazy_tlb(mm, tsk) argument
Dcacheflush.h54 #define flush_cache_dup_mm(mm) /* called on fork (VIVT only) */ argument
58 #define flush_cache_mm(mm) /* called on munmap/exit */ argument
59 #define flush_cache_range(mm, u_vstart, u_vend) argument
/linux-4.4.14/arch/openrisc/include/asm/
Dpgalloc.h30 #define pmd_populate_kernel(mm, pmd, pte) \ argument
33 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
44 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
69 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
76 static inline struct page *pte_alloc_one(struct mm_struct *mm, in pte_alloc_one()
91 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
96 static inline void pte_free(struct mm_struct *mm, struct page *pte) in pte_free()
Dmmu_context.h29 #define deactivate_mm(tsk, mm) do { } while (0) argument
39 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
/linux-4.4.14/arch/nios2/include/asm/
Dpgalloc.h15 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, in pmd_populate_kernel()
21 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
35 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
40 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, in pte_alloc_one_kernel()
51 static inline pgtable_t pte_alloc_one(struct mm_struct *mm, in pte_alloc_one()
67 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
72 static inline void pte_free(struct mm_struct *mm, struct page *pte) in pte_free()
Dmmu_context.h27 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
38 struct mm_struct *mm) in init_new_context()
48 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
56 struct mm_struct *mm) in deactivate_mm()
/linux-4.4.14/arch/tile/include/asm/
Dpgalloc.h50 static inline void pmd_populate_kernel(struct mm_struct *mm, in pmd_populate_kernel()
57 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
75 static inline pgtable_t pte_alloc_one(struct mm_struct *mm, in pte_alloc_one()
81 static inline void pte_free(struct mm_struct *mm, struct page *pte) in pte_free()
89 pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) in pte_alloc_one_kernel()
94 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
125 #define pud_populate(mm, pud, pmd) \ argument
144 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one()
150 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmdp) in pmd_free()
Dmmu_context.h28 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context()
79 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *t) in enter_lazy_tlb()
132 #define destroy_context(mm) do { } while (0) argument
133 #define deactivate_mm(tsk, mm) do { } while (0) argument
Dhugetlb.h22 static inline int is_hugepage_only_range(struct mm_struct *mm, in is_hugepage_only_range()
51 static inline void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, in set_huge_pte_at()
57 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear()
79 static inline void huge_ptep_set_wrprotect(struct mm_struct *mm, in huge_ptep_set_wrprotect()
/linux-4.4.14/drivers/gpu/drm/
Ddrm_mm.c112 struct drm_mm *mm = hole_node->mm; in drm_mm_insert_helper() local
179 int drm_mm_reserve_node(struct drm_mm *mm, struct drm_mm_node *node) in drm_mm_reserve_node()
232 int drm_mm_insert_node_generic(struct drm_mm *mm, struct drm_mm_node *node, in drm_mm_insert_node_generic()
257 struct drm_mm *mm = hole_node->mm; in drm_mm_insert_helper_range() local
332 int drm_mm_insert_node_in_range_generic(struct drm_mm *mm, struct drm_mm_node *node, in drm_mm_insert_node_in_range_generic()
364 struct drm_mm *mm = node->mm; in drm_mm_remove_node() local
413 static struct drm_mm_node *drm_mm_search_free_generic(const struct drm_mm *mm, in drm_mm_search_free_generic()
455 static struct drm_mm_node *drm_mm_search_free_in_range_generic(const struct drm_mm *mm, in drm_mm_search_free_in_range_generic()
571 void drm_mm_init_scan(struct drm_mm *mm, in drm_mm_init_scan()
604 void drm_mm_init_scan_with_range(struct drm_mm *mm, in drm_mm_init_scan_with_range()
[all …]
/linux-4.4.14/arch/sh/include/asm/
Dpgalloc.h18 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, in pmd_populate_kernel()
24 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
34 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, in pte_alloc_one_kernel()
40 static inline pgtable_t pte_alloc_one(struct mm_struct *mm, in pte_alloc_one()
57 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
62 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free()
Dmmu_context.h38 #define cpu_context(cpu, mm) ((mm)->context.id[cpu]) argument
40 #define cpu_asid(cpu, mm) \ argument
57 static inline void get_mmu_context(struct mm_struct *mm, unsigned int cpu) in get_mmu_context()
98 struct mm_struct *mm) in init_new_context()
112 static inline void activate_context(struct mm_struct *mm, unsigned int cpu) in activate_context()
134 #define deactivate_mm(tsk,mm) do { } while (0) argument
135 #define enter_lazy_tlb(mm,tsk) do { } while (0) argument
141 #define cpu_asid(cpu, mm) ({ (void)cpu; NO_CONTEXT; }) argument
Dhugetlb.h9 static inline int is_hugepage_only_range(struct mm_struct *mm, in is_hugepage_only_range()
37 static inline void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, in set_huge_pte_at()
43 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear()
64 static inline void huge_ptep_set_wrprotect(struct mm_struct *mm, in huge_ptep_set_wrprotect()
/linux-4.4.14/drivers/gpio/
Dgpio-mpc8xxx.c53 to_mpc8xxx_gpio_chip(struct of_mm_gpio_chip *mm) in to_mpc8xxx_gpio_chip()
58 static void mpc8xxx_gpio_save_regs(struct of_mm_gpio_chip *mm) in mpc8xxx_gpio_save_regs()
73 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc); in mpc8572_gpio_get() local
87 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc); in mpc8xxx_gpio_get() local
94 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc); in mpc8xxx_gpio_set() local
113 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc); in mpc8xxx_gpio_set_multiple() local
138 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc); in mpc8xxx_gpio_dir_in() local
153 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc); in mpc8xxx_gpio_dir_out() local
188 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc); in mpc8xxx_gpio_to_irq() local
201 struct of_mm_gpio_chip *mm = &mpc8xxx_gc->mm_gc; in mpc8xxx_gpio_irq_cascade() local
[all …]
/linux-4.4.14/arch/sh/mm/
Dpgtable.c32 pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
37 void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
43 void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
48 pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one()
53 void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
Dhugetlbpage.c24 pte_t *huge_pte_alloc(struct mm_struct *mm, in huge_pte_alloc()
45 pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr) in huge_pte_offset()
Dfault.c58 static void show_pte(struct mm_struct *mm, unsigned long addr) in show_pte()
281 struct mm_struct *mm = current->mm; in __bad_area() local
309 struct mm_struct *mm = tsk->mm; in do_sigbus() local
403 struct mm_struct *mm; in do_page_fault() local
/linux-4.4.14/arch/powerpc/mm/
Dslice.c100 static int slice_area_is_free(struct mm_struct *mm, unsigned long addr, in slice_area_is_free()
111 static int slice_low_has_vma(struct mm_struct *mm, unsigned long slice) in slice_low_has_vma()
117 static int slice_high_has_vma(struct mm_struct *mm, unsigned long slice) in slice_high_has_vma()
131 static struct slice_mask slice_mask_for_free(struct mm_struct *mm) in slice_mask_for_free()
150 static struct slice_mask slice_mask_for_size(struct mm_struct *mm, int psize) in slice_mask_for_size()
182 struct mm_struct *mm = parm; in slice_flush_segments() local
196 static void slice_convert(struct mm_struct *mm, struct slice_mask mask, int psize) in slice_convert()
265 static unsigned long slice_find_area_bottomup(struct mm_struct *mm, in slice_find_area_bottomup()
308 static unsigned long slice_find_area_topdown(struct mm_struct *mm, in slice_find_area_topdown()
358 static unsigned long slice_find_area(struct mm_struct *mm, unsigned long len, in slice_find_area()
[all …]
Dsubpage-prot.c26 void subpage_prot_free(struct mm_struct *mm) in subpage_prot_free()
53 void subpage_prot_init_new_context(struct mm_struct *mm) in subpage_prot_init_new_context()
60 static void hpte_flush_range(struct mm_struct *mm, unsigned long addr, in hpte_flush_range()
95 struct mm_struct *mm = current->mm; in subpage_prot_clear() local
142 static void subpage_mark_vma_nohuge(struct mm_struct *mm, unsigned long addr, in subpage_mark_vma_nohuge()
171 static void subpage_mark_vma_nohuge(struct mm_struct *mm, unsigned long addr, in subpage_mark_vma_nohuge()
190 struct mm_struct *mm = current->mm; in sys_subpage_prot() local
Dmmu_context_hash64.c62 int init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context()
107 static void destroy_pagetable_page(struct mm_struct *mm) in destroy_pagetable_page()
129 static inline void destroy_pagetable_page(struct mm_struct *mm) in destroy_pagetable_page()
136 void destroy_context(struct mm_struct *mm) in destroy_context()
Dtlb_hash32.c40 void flush_hash_entry(struct mm_struct *mm, pte_t *ptep, unsigned long addr) in flush_hash_entry()
90 static void flush_range(struct mm_struct *mm, unsigned long start, in flush_range()
134 void flush_tlb_mm(struct mm_struct *mm) in flush_tlb_mm()
156 struct mm_struct *mm; in flush_tlb_page() local
Dcopro_fault.c36 int copro_handle_mm_fault(struct mm_struct *mm, unsigned long ea, in copro_handle_mm_fault()
101 int copro_calculate_slb(struct mm_struct *mm, u64 ea, struct copro_slb *slb) in copro_calculate_slb()
148 void copro_flush_all_slbs(struct mm_struct *mm) in copro_flush_all_slbs()
Dmmu_context_nohash.c87 struct mm_struct *mm; in steal_context_smp() local
141 struct mm_struct *mm; in steal_all_contexts() local
178 struct mm_struct *mm; in steal_context_up() local
329 int init_new_context(struct task_struct *t, struct mm_struct *mm) in init_new_context()
347 void destroy_context(struct mm_struct *mm) in destroy_context()
Dpgtable_64.c367 static pte_t *get_from_cache(struct mm_struct *mm) in get_from_cache()
386 static pte_t *__alloc_for_cache(struct mm_struct *mm, int kernel) in __alloc_for_cache()
414 pte_t *page_table_alloc(struct mm_struct *mm, unsigned long vmaddr, int kernel) in page_table_alloc()
425 void page_table_free(struct mm_struct *mm, unsigned long *table, int kernel) in page_table_free()
513 unsigned long pmd_hugepage_update(struct mm_struct *mm, unsigned long addr, in pmd_hugepage_update()
659 void pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp, in pgtable_trans_huge_deposit()
678 pgtable_t pgtable_trans_huge_withdraw(struct mm_struct *mm, pmd_t *pmdp) in pgtable_trans_huge_withdraw()
702 void set_pmd_at(struct mm_struct *mm, unsigned long addr, in set_pmd_at()
725 void hpte_do_hugepage_flush(struct mm_struct *mm, unsigned long addr, in hpte_do_hugepage_flush()
805 pmd_t pmdp_huge_get_and_clear(struct mm_struct *mm, in pmdp_huge_get_and_clear()
Dtlb_hash64.c43 void hpte_need_flush(struct mm_struct *mm, unsigned long addr, in hpte_need_flush()
190 void __flush_hash_table_range(struct mm_struct *mm, unsigned long start, in __flush_hash_table_range()
232 void flush_tlb_pmd_range(struct mm_struct *mm, pmd_t *pmd, unsigned long addr) in flush_tlb_pmd_range()
Dicswx_pid.c58 int get_cop_pid(struct mm_struct *mm) in get_cop_pid()
71 int disable_cop_pid(struct mm_struct *mm) in disable_cop_pid()
Dmmu_context_hash32.c82 int init_new_context(struct task_struct *t, struct mm_struct *mm) in init_new_context()
101 void destroy_context(struct mm_struct *mm) in destroy_context()
Dpgtable_32.c84 pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
98 void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
107 __init_refok pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) in pte_alloc_one_kernel()
121 pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address) in pte_alloc_one()
367 get_pteptr(struct mm_struct *mm, unsigned long addr, pte_t **ptep, pmd_t **pmdp) in get_pteptr()
Dicswx.c85 int use_cop(unsigned long acop, struct mm_struct *mm) in use_cop()
129 void drop_cop(unsigned long acop, struct mm_struct *mm) in drop_cop()
Dtlb_nohash.c180 void local_flush_tlb_mm(struct mm_struct *mm) in local_flush_tlb_mm()
192 void __local_flush_tlb_page(struct mm_struct *mm, unsigned long vmaddr, in __local_flush_tlb_page()
218 static int mm_is_core_local(struct mm_struct *mm) in mm_is_core_local()
262 void flush_tlb_mm(struct mm_struct *mm) in flush_tlb_mm()
282 void __flush_tlb_page(struct mm_struct *mm, unsigned long vmaddr, in __flush_tlb_page()
/linux-4.4.14/arch/um/kernel/skas/
Dmmu.c17 static int init_stub_pte(struct mm_struct *mm, unsigned long proc, in init_stub_pte()
50 int init_new_context(struct task_struct *task, struct mm_struct *mm) in init_new_context()
93 void uml_setup_stubs(struct mm_struct *mm) in uml_setup_stubs()
124 void arch_exit_mmap(struct mm_struct *mm) in arch_exit_mmap()
139 void destroy_context(struct mm_struct *mm) in destroy_context()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/core/
Dmm.c30 nvkm_mm_dump(struct nvkm_mm *mm, const char *header) in nvkm_mm_dump()
48 nvkm_mm_free(struct nvkm_mm *mm, struct nvkm_mm_node **pthis) in nvkm_mm_free()
86 region_head(struct nvkm_mm *mm, struct nvkm_mm_node *a, u32 size) in region_head()
111 nvkm_mm_head(struct nvkm_mm *mm, u8 heap, u8 type, u32 size_max, u32 size_min, in nvkm_mm_head()
160 region_tail(struct nvkm_mm *mm, struct nvkm_mm_node *a, u32 size) in region_tail()
185 nvkm_mm_tail(struct nvkm_mm *mm, u8 heap, u8 type, u32 size_max, u32 size_min, in nvkm_mm_tail()
238 nvkm_mm_init(struct nvkm_mm *mm, u32 offset, u32 length, u32 block) in nvkm_mm_init()
280 nvkm_mm_fini(struct nvkm_mm *mm) in nvkm_mm_fini()
/linux-4.4.14/arch/um/include/asm/
Dmmu_context.h16 static inline void arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) in arch_dup_mmap()
21 static inline void arch_unmap(struct mm_struct *mm, in arch_unmap()
26 static inline void arch_bprm_mm_init(struct mm_struct *mm, in arch_bprm_mm_init()
34 #define deactivate_mm(tsk,mm) do { } while (0) argument
63 static inline void enter_lazy_tlb(struct mm_struct *mm, in enter_lazy_tlb()
Dpgalloc.h13 #define pmd_populate_kernel(mm, pmd, pte) \ argument
16 #define pmd_populate(mm, pmd, pte) \ argument
31 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
36 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free()
50 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
/linux-4.4.14/arch/sparc/include/asm/
Dmmu_context_64.h12 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
35 static inline void tsb_context_switch(struct mm_struct *mm) in tsb_context_switch()
74 static inline void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, struct task_struct *ts… in switch_mm()
133 #define deactivate_mm(tsk,mm) do { } while (0) argument
136 static inline void activate_mm(struct mm_struct *active_mm, struct mm_struct *mm) in activate_mm()
Dpgalloc_32.h27 #define pgd_free(mm, pgd) free_pgd_fast(pgd) argument
28 #define pgd_alloc(mm) get_pgd_fast() argument
39 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, in pmd_alloc_one()
51 #define pmd_free(mm, pmd) free_pmd_fast(pmd) argument
62 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, in pte_alloc_one_kernel()
74 #define pte_free_kernel(mm, pte) free_pte_fast(pte) argument
Dmmu_context_32.h8 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
28 #define deactivate_mm(tsk,mm) do { } while (0) argument
31 #define activate_mm(active_mm, mm) switch_mm((active_mm), (mm), NULL) argument
Dtlbflush_64.h12 struct mm_struct *mm; member
24 static inline void flush_tlb_mm(struct mm_struct *mm) in flush_tlb_mm()
54 static inline void global_flush_tlb_page(struct mm_struct *mm, unsigned long vaddr) in global_flush_tlb_page()
64 #define global_flush_tlb_page(mm, vaddr) \ argument
Dpgalloc_64.h25 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
30 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
42 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long addr) in pud_alloc_one()
48 static inline void pud_free(struct mm_struct *mm, pud_t *pud) in pud_free()
53 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr) in pmd_alloc_one()
59 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
Dtlb_64.h17 #define do_flush_tlb_mm(mm) smp_flush_tlb_mm(mm) argument
19 #define do_flush_tlb_mm(mm) __flush_tlb_mm(CTX_HWBITS(mm->context), SECONDARY_CONTEXT) argument
Dcacheflush_32.h8 #define flush_cache_mm(mm) \ argument
10 #define flush_cache_dup_mm(mm) \ argument
34 #define flush_sig_insns(mm,insn_addr) \ argument
/linux-4.4.14/include/asm-generic/
Dmm_hooks.h10 struct mm_struct *mm) in arch_dup_mmap()
14 static inline void arch_exit_mmap(struct mm_struct *mm) in arch_exit_mmap()
18 static inline void arch_unmap(struct mm_struct *mm, in arch_unmap()
24 static inline void arch_bprm_mm_init(struct mm_struct *mm, in arch_bprm_mm_init()
Dmmu_context.h14 static inline void enter_lazy_tlb(struct mm_struct *mm, in enter_lazy_tlb()
20 struct mm_struct *mm) in init_new_context()
25 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
30 struct mm_struct *mm) in deactivate_mm()
Dpgtable.h112 static inline pte_t ptep_get_and_clear(struct mm_struct *mm, in ptep_get_and_clear()
124 static inline pmd_t pmdp_huge_get_and_clear(struct mm_struct *mm, in pmdp_huge_get_and_clear()
137 static inline pmd_t pmdp_huge_get_and_clear_full(struct mm_struct *mm, in pmdp_huge_get_and_clear_full()
147 static inline pte_t ptep_get_and_clear_full(struct mm_struct *mm, in ptep_get_and_clear_full()
163 static inline void pte_clear_not_present_full(struct mm_struct *mm, in pte_clear_not_present_full()
186 static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long address, pte_t *ptep) in ptep_set_wrprotect()
195 static inline void pmdp_set_wrprotect(struct mm_struct *mm, in pmdp_set_wrprotect()
202 static inline void pmdp_set_wrprotect(struct mm_struct *mm, in pmdp_set_wrprotect()
281 #define pgd_offset_gate(mm, addr) pgd_offset(mm, addr) argument
289 # define pte_accessible(mm, pte) ((void)(pte), 1) argument
[all …]
D4level-fixup.h14 #define pmd_alloc(mm, pud, address) \ argument
18 #define pud_alloc(mm, pgd, address) (pgd) argument
26 #define pud_populate(mm, pud, pmd) pgd_populate(mm, pud, pmd) argument
32 #define pud_free(mm, x) do { } while (0) argument
Dpgtable-nopmd.h35 #define pud_populate(mm, pmd, pte) do { } while (0) argument
58 #define pmd_alloc_one(mm, address) NULL argument
59 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
Dpgtable-nopud.h31 #define pgd_populate(mm, pgd, pud) do { } while (0) argument
53 #define pud_alloc_one(mm, address) NULL argument
54 #define pud_free(mm, x) do { } while (0) argument
/linux-4.4.14/arch/sparc/mm/
Dtlb.c26 struct mm_struct *mm = tb->mm; in flush_tlb_pending() local
69 static void tlb_batch_add_one(struct mm_struct *mm, unsigned long vaddr, in tlb_batch_add_one()
112 void tlb_batch_add(struct mm_struct *mm, unsigned long vaddr, in tlb_batch_add()
146 static void tlb_batch_pmd_scan(struct mm_struct *mm, unsigned long vaddr, in tlb_batch_pmd_scan()
166 void set_pmd_at(struct mm_struct *mm, unsigned long addr, in set_pmd_at()
218 void pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp, in pgtable_trans_huge_deposit()
233 pgtable_t pgtable_trans_huge_withdraw(struct mm_struct *mm, pmd_t *pmdp) in pgtable_trans_huge_withdraw()
Dhugetlbpage.c60 struct mm_struct *mm = current->mm; in hugetlb_get_unmapped_area_topdown() local
96 struct mm_struct *mm = current->mm; in hugetlb_get_unmapped_area() local
129 pte_t *huge_pte_alloc(struct mm_struct *mm, in huge_pte_alloc()
154 pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr) in huge_pte_offset()
175 void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, in set_huge_pte_at()
206 pte_t huge_ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, in huge_ptep_get_and_clear()
Dsrmmu.c71 #define FLUSH_BEGIN(mm) argument
74 #define FLUSH_BEGIN(mm) if ((mm)->context != NO_CONTEXT) { argument
124 void pmd_populate(struct mm_struct *mm, pmd_t *pmdp, struct page *ptep) in pmd_populate()
342 pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address) in pte_alloc_one()
357 void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free()
404 static inline void alloc_context(struct mm_struct *old_mm, struct mm_struct *mm) in alloc_context()
460 void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, in switch_mm()
983 int init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context()
989 void destroy_context(struct mm_struct *mm) in destroy_context()
1222 static void turbosparc_flush_cache_mm(struct mm_struct *mm) in turbosparc_flush_cache_mm()
[all …]
Dtsb.c74 struct mm_struct *mm = tb->mm; in flush_tsb_user() local
98 void flush_tsb_user_page(struct mm_struct *mm, unsigned long vaddr, bool huge) in flush_tsb_user_page()
131 static void setup_tsb_params(struct mm_struct *mm, unsigned long tsb_idx, unsigned long tsb_bytes) in setup_tsb_params()
333 void tsb_grow(struct mm_struct *mm, unsigned long tsb_index, unsigned long rss) in tsb_grow()
470 int init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context()
525 void destroy_context(struct mm_struct *mm) in destroy_context()
/linux-4.4.14/arch/s390/mm/
Dpgtable.c27 unsigned long *crst_table_alloc(struct mm_struct *mm) in crst_table_alloc()
36 void crst_table_free(struct mm_struct *mm, unsigned long *table) in crst_table_free()
43 struct mm_struct *mm = arg; in __crst_table_upgrade() local
52 int crst_table_upgrade(struct mm_struct *mm) in crst_table_upgrade()
78 void crst_table_downgrade(struct mm_struct *mm) in crst_table_downgrade()
111 struct gmap *gmap_alloc(struct mm_struct *mm, unsigned long limit) in gmap_alloc()
447 static void gmap_unlink(struct mm_struct *mm, unsigned long *table, in gmap_unlink()
473 struct mm_struct *mm; in __gmap_link() local
570 static void gmap_zap_swap_entry(swp_entry_t entry, struct mm_struct *mm) in gmap_zap_swap_entry()
739 void gmap_do_ipte_notify(struct mm_struct *mm, unsigned long vmaddr, pte_t *pte) in gmap_do_ipte_notify()
[all …]
Dmmap.c86 struct mm_struct *mm = current->mm; in arch_get_unmapped_area() local
122 struct mm_struct *mm = current->mm; in arch_get_unmapped_area_topdown() local
185 struct mm_struct *mm = current->mm; in s390_get_unmapped_area() local
207 struct mm_struct *mm = current->mm; in s390_get_unmapped_area_topdown() local
228 void arch_pick_mmap_layout(struct mm_struct *mm) in arch_pick_mmap_layout()
Dhugetlbpage.c88 void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, in set_huge_pte_at()
104 pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear()
115 pte_t *huge_pte_alloc(struct mm_struct *mm, in huge_pte_alloc()
129 pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr) in huge_pte_offset()
/linux-4.4.14/arch/frv/include/asm/
Dpgalloc.h23 #define pmd_populate_kernel(mm, pmd, pte) __set_pmd(pmd, __pa(pte) | _PAGE_TABLE) argument
41 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
46 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free()
63 #define pmd_alloc_one(mm, addr) ({ BUG(); ((pmd_t *) 2); }) argument
64 #define pmd_free(mm, x) do { } while (0) argument
Dmmu_context.h20 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
30 #define init_new_context(tsk, mm) ({ 0; }) argument
32 #define destroy_context(mm) do {} while(0) argument
46 #define deactivate_mm(tsk, mm) \ argument
Dtlbflush.h35 #define flush_tlb_mm(mm) \ argument
65 #define flush_tlb_mm(mm) BUG() argument
67 #define flush_tlb_range(mm,start,end) BUG() argument
Dcacheflush.h22 #define flush_cache_mm(mm) do {} while(0) argument
23 #define flush_cache_dup_mm(mm) do {} while(0) argument
24 #define flush_cache_range(mm, start, end) do {} while(0) argument
/linux-4.4.14/arch/blackfin/include/asm/
Dmmu_context.h60 activate_l1stack(struct mm_struct *mm, unsigned long sp_base) in activate_l1stack()
69 #define deactivate_mm(tsk,mm) do { } while (0) argument
120 static inline void protect_page(struct mm_struct *mm, unsigned long addr, in protect_page()
151 static inline void update_protections(struct mm_struct *mm) in update_protections()
167 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
173 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context()
184 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
/linux-4.4.14/arch/parisc/mm/
Dhugetlbpage.c46 pte_t *huge_pte_alloc(struct mm_struct *mm, in huge_pte_alloc()
71 pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr) in huge_pte_offset()
96 static inline void purge_tlb_entries_huge(struct mm_struct *mm, unsigned long addr) in purge_tlb_entries_huge()
114 static void __set_huge_pte_at(struct mm_struct *mm, unsigned long addr, in __set_huge_pte_at()
134 void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, in set_huge_pte_at()
145 pte_t huge_ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, in huge_ptep_get_and_clear()
160 void huge_ptep_set_wrprotect(struct mm_struct *mm, in huge_ptep_set_wrprotect()
/linux-4.4.14/kernel/
Dfork.c397 static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) in dup_mmap()
530 static inline int mm_alloc_pgd(struct mm_struct *mm) in mm_alloc_pgd()
538 static inline void mm_free_pgd(struct mm_struct *mm) in mm_free_pgd()
543 static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) in dup_mmap()
550 #define mm_alloc_pgd(mm) (0) argument
551 #define mm_free_pgd(mm) argument
557 #define free_mm(mm) (kmem_cache_free(mm_cachep, (mm))) argument
573 static void mm_init_aio(struct mm_struct *mm) in mm_init_aio()
581 static void mm_init_owner(struct mm_struct *mm, struct task_struct *p) in mm_init_owner()
588 static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p) in mm_init()
[all …]
/linux-4.4.14/arch/frv/mm/
Dmmu-context.c29 int init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context()
130 void destroy_context(struct mm_struct *mm) in destroy_context()
154 char *proc_pid_status_frv_cxnr(struct mm_struct *mm, char *buffer) in proc_pid_status_frv_cxnr()
171 struct mm_struct *mm = NULL; in cxn_pin_by_pid() local
Dpgalloc.c23 pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) in pte_alloc_one_kernel()
31 pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address) in pte_alloc_one()
138 pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
143 void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
/linux-4.4.14/arch/mn10300/mm/
Dtlb-smp.c94 static void flush_tlb_others(cpumask_t cpumask, struct mm_struct *mm, in flush_tlb_others()
143 void flush_tlb_mm(struct mm_struct *mm) in flush_tlb_mm()
163 struct mm_struct *mm = current->mm; in flush_tlb_current_task() local
184 struct mm_struct *mm = vma->vm_mm; in flush_tlb_page() local
Dpgtable.c64 pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) in pte_alloc_one_kernel()
72 struct page *pte_alloc_one(struct mm_struct *mm, unsigned long address) in pte_alloc_one()
157 pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
162 void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
/linux-4.4.14/arch/tile/mm/
Dmmap.c32 static inline unsigned long mmap_base(struct mm_struct *mm) in mmap_base()
52 void arch_pick_mmap_layout(struct mm_struct *mm) in arch_pick_mmap_layout()
89 unsigned long arch_randomize_brk(struct mm_struct *mm) in arch_randomize_brk()
Dpgtable.c214 pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
222 void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
231 struct page *pgtable_alloc_one(struct mm_struct *mm, unsigned long address, in pgtable_alloc_one()
265 void pgtable_free(struct mm_struct *mm, struct page *p, int order) in pgtable_free()
317 void ptep_set_wrprotect(struct mm_struct *mm, in ptep_set_wrprotect()
340 pte_t *virt_to_pte(struct mm_struct* mm, unsigned long addr) in virt_to_pte()
448 static inline int mm_is_priority_cached(struct mm_struct *mm) in mm_is_priority_cached()
457 void start_mm_caching(struct mm_struct *mm) in start_mm_caching()
476 static unsigned long update_priority_cached(struct mm_struct *mm) in update_priority_cached()
/linux-4.4.14/arch/cris/mm/
Dtlb.c36 alloc_context(struct mm_struct *mm) in alloc_context()
71 get_mmu_context(struct mm_struct *mm) in get_mmu_context()
86 destroy_context(struct mm_struct *mm) in destroy_context()
/linux-4.4.14/drivers/misc/cxl/
Dfault.c87 static int cxl_fault_segment(struct cxl_context *ctx, struct mm_struct *mm, in cxl_fault_segment()
116 struct mm_struct *mm, u64 ea) in cxl_handle_segment_miss()
135 struct mm_struct *mm, u64 dsisr, u64 dar) in cxl_handle_page_fault()
176 struct mm_struct *mm = NULL; in cxl_handle_fault() local
230 struct mm_struct *mm; in cxl_prefault_one() local
267 struct mm_struct *mm; in cxl_prefault_vma() local
/linux-4.4.14/arch/metag/mm/
Dhugetlbpage.c33 struct mm_struct *mm = current->mm; in prepare_hugepage_range() local
59 pte_t *huge_pte_alloc(struct mm_struct *mm, in huge_pte_alloc()
77 pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr) in huge_pte_offset()
102 struct page *follow_huge_pmd(struct mm_struct *mm, unsigned long address, in follow_huge_pmd()
125 struct mm_struct *mm = current->mm; in hugetlb_get_unmapped_area_existing() local
/linux-4.4.14/arch/hexagon/mm/
Dvm_tlb.c40 struct mm_struct *mm = vma->vm_mm; in flush_tlb_range() local
68 void flush_tlb_mm(struct mm_struct *mm) in flush_tlb_mm()
80 struct mm_struct *mm = vma->vm_mm; in flush_tlb_page() local
/linux-4.4.14/include/drm/
Ddrm_mm.h73 struct drm_mm *mm; member
122 static inline bool drm_mm_initialized(struct drm_mm *mm) in drm_mm_initialized()
179 #define drm_mm_for_each_node(entry, mm) list_for_each_entry(entry, \ argument
202 #define drm_mm_for_each_hole(entry, mm, hole_start, hole_end) \ argument
210 #define __drm_mm_for_each_hole(entry, mm, hole_start, hole_end, backwards) \ argument
246 static inline int drm_mm_insert_node(struct drm_mm *mm, in drm_mm_insert_node()
283 static inline int drm_mm_insert_node_in_range(struct drm_mm *mm, in drm_mm_insert_node_in_range()
/linux-4.4.14/drivers/gpu/drm/i915/
Di915_gem_userptr.c36 struct mm_struct *mm; member
118 struct mm_struct *mm, in i915_gem_userptr_mn_invalidate_range_start()
155 i915_mmu_notifier_create(struct mm_struct *mm) in i915_mmu_notifier_create()
275 i915_mmu_notifier_find(struct i915_mm_struct *mm) in i915_mmu_notifier_find()
336 struct mm_struct *mm) in i915_mmu_notifier_free()
367 struct mm_struct *mm) in i915_mmu_notifier_free()
376 struct i915_mm_struct *mm; in __i915_mm_struct_find() local
390 struct i915_mm_struct *mm; in i915_gem_userptr_init__mm_struct() local
435 struct i915_mm_struct *mm = container_of(work, typeof(*mm), work); in __i915_mm_struct_free__worker() local
444 struct i915_mm_struct *mm = container_of(kref, typeof(*mm), kref); in __i915_mm_struct_free() local
[all …]
/linux-4.4.14/arch/x86/xen/
Dmmu.c336 static void xen_set_pte_at(struct mm_struct *mm, unsigned long addr, in xen_set_pte_at()
343 pte_t xen_ptep_modify_prot_start(struct mm_struct *mm, in xen_ptep_modify_prot_start()
351 void xen_ptep_modify_prot_commit(struct mm_struct *mm, unsigned long addr, in xen_ptep_modify_prot_commit()
485 static void xen_pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) in xen_pte_clear()
610 static int __xen_pgd_walk(struct mm_struct *mm, pgd_t *pgd, in __xen_pgd_walk()
611 int (*func)(struct mm_struct *mm, struct page *, in __xen_pgd_walk()
701 static int xen_pgd_walk(struct mm_struct *mm, in xen_pgd_walk()
702 int (*func)(struct mm_struct *mm, struct page *, in xen_pgd_walk()
711 static spinlock_t *xen_pte_lock(struct page *page, struct mm_struct *mm) in xen_pte_lock()
739 static int xen_pin_page(struct mm_struct *mm, struct page *page, in xen_pin_page()
[all …]
/linux-4.4.14/arch/um/kernel/
Dmem.c185 pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
198 void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
203 pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) in pte_alloc_one_kernel()
211 pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address) in pte_alloc_one()
226 pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one()
Dtlb.c45 #define INIT_HVC(mm, force) \ argument
273 void fix_range_common(struct mm_struct *mm, unsigned long start_addr, in fix_range_common()
310 struct mm_struct *mm; in flush_tlb_kernel_range_common() local
399 struct mm_struct *mm = vma->vm_mm; in flush_tlb_page() local
462 pgd_t *pgd_offset_proc(struct mm_struct *mm, unsigned long address) in pgd_offset_proc()
511 static void fix_range(struct mm_struct *mm, unsigned long start_addr, in fix_range()
526 void flush_tlb_mm_range(struct mm_struct *mm, unsigned long start, in flush_tlb_mm_range()
539 void flush_tlb_mm(struct mm_struct *mm) in flush_tlb_mm()
551 struct mm_struct *mm = current->mm; in force_flush_all() local
/linux-4.4.14/drivers/misc/sgi-gru/
Dgrutlbpurge.c223 struct mm_struct *mm, in gru_invalidate_range_start()
237 struct mm_struct *mm, unsigned long start, in gru_invalidate_range_end()
250 static void gru_invalidate_page(struct mmu_notifier *mn, struct mm_struct *mm, in gru_invalidate_page()
261 static void gru_release(struct mmu_notifier *mn, struct mm_struct *mm) in gru_release()
279 static struct mmu_notifier *mmu_find_ops(struct mm_struct *mm, in mmu_find_ops()
/linux-4.4.14/drivers/oprofile/
Dbuffer_sync.c89 struct mm_struct *mm = current->mm; in munmap_notify() local
225 static unsigned long get_exec_dcookie(struct mm_struct *mm) in get_exec_dcookie()
252 lookup_dcookie(struct mm_struct *mm, unsigned long addr, off_t *offset) in lookup_dcookie()
329 static void add_data(struct op_entry *entry, struct mm_struct *mm) in add_data()
379 add_sample(struct mm_struct *mm, struct op_sample *s, int in_kernel) in add_sample()
414 static void release_mm(struct mm_struct *mm) in release_mm()
493 struct mm_struct *mm = NULL; in sync_buffer() local
/linux-4.4.14/arch/cris/arch-v10/mm/
Dtlb.c64 flush_tlb_mm(struct mm_struct *mm) in flush_tlb_mm()
101 struct mm_struct *mm = vma->vm_mm; in flush_tlb_page() local
143 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context()
/linux-4.4.14/arch/x86/kernel/
Dldt.c106 int init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context()
147 void destroy_context(struct mm_struct *mm) in destroy_context()
157 struct mm_struct *mm = current->mm; in read_ldt() local
209 struct mm_struct *mm = current->mm; in write_ldt() local
/linux-4.4.14/arch/arm64/mm/
Dpgd.c33 pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
41 void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
Dfault.c47 void show_pte(struct mm_struct *mm, unsigned long addr) in show_pte()
137 static void __do_kernel_fault(struct mm_struct *mm, unsigned long addr, in __do_kernel_fault()
190 struct mm_struct *mm = tsk->active_mm; in do_bad_area() local
207 static int __do_page_fault(struct mm_struct *mm, unsigned long addr, in __do_page_fault()
249 struct mm_struct *mm; in do_page_fault() local
/linux-4.4.14/kernel/events/
Duprobes.c155 struct mm_struct *mm = vma->vm_mm; in __replace_page() local
292 int uprobe_write_opcode(struct mm_struct *mm, unsigned long vaddr, in uprobe_write_opcode()
341 int __weak set_swbp(struct arch_uprobe *auprobe, struct mm_struct *mm, unsigned long vaddr) in set_swbp()
356 set_orig_insn(struct arch_uprobe *auprobe, struct mm_struct *mm, unsigned long vaddr) in set_orig_insn()
580 struct mm_struct *mm, unsigned long vaddr) in prepare_uprobe()
618 enum uprobe_filter_ctx ctx, struct mm_struct *mm) in consumer_filter()
624 enum uprobe_filter_ctx ctx, struct mm_struct *mm) in filter_chain()
641 install_breakpoint(struct uprobe *uprobe, struct mm_struct *mm, in install_breakpoint()
669 remove_breakpoint(struct uprobe *uprobe, struct mm_struct *mm, unsigned long vaddr) in remove_breakpoint()
699 struct mm_struct *mm; member
[all …]
/linux-4.4.14/arch/tile/kernel/
Dtlb.c34 void flush_tlb_mm(struct mm_struct *mm) in flush_tlb_mm()
53 void flush_tlb_page_mm(struct vm_area_struct *vma, struct mm_struct *mm, in flush_tlb_page_mm()
72 struct mm_struct *mm = vma->vm_mm; in flush_tlb_range() local
/linux-4.4.14/drivers/gpu/drm/ttm/
Dttm_bo_manager.c46 struct drm_mm mm; member
56 struct drm_mm *mm = &rman->mm; in ttm_bo_man_get_node() local
126 struct drm_mm *mm = &rman->mm; in ttm_bo_man_takedown() local
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_mn.c42 struct mm_struct *mm; member
103 struct mm_struct *mm) in radeon_mn_release()
122 struct mm_struct *mm, in radeon_mn_invalidate_range_start()
185 struct mm_struct *mm = current->mm; in radeon_mn_get() local
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_mn.c42 struct mm_struct *mm; member
103 struct mm_struct *mm) in amdgpu_mn_release()
122 struct mm_struct *mm, in amdgpu_mn_invalidate_range_start()
186 struct mm_struct *mm = current->mm; in amdgpu_mn_get() local
/linux-4.4.14/arch/x86/um/
Dmem_32.c29 struct vm_area_struct *get_gate_vma(struct mm_struct *mm) in get_gate_vma()
45 int in_gate_area(struct mm_struct *mm, unsigned long addr) in in_gate_area()
/linux-4.4.14/arch/arm/kernel/
Dprocess.c315 unsigned long arch_randomize_brk(struct mm_struct *mm) in arch_randomize_brk()
341 struct vm_area_struct *get_gate_vma(struct mm_struct *mm) in get_gate_vma()
346 int in_gate_area(struct mm_struct *mm, unsigned long addr) in in_gate_area()
368 static unsigned long sigpage_addr(const struct mm_struct *mm, in sigpage_addr()
408 struct mm_struct *mm = current->mm; in arch_setup_additional_pages() local
/linux-4.4.14/fs/proc/
Dtask_nommu.c18 void task_mem(struct seq_file *m, struct mm_struct *mm) in task_mem()
80 unsigned long task_vsize(struct mm_struct *mm) in task_vsize()
95 unsigned long task_statm(struct mm_struct *mm, in task_statm()
151 struct mm_struct *mm = vma->vm_mm; in nommu_vma_show() local
229 struct mm_struct *mm; in m_start() local
/linux-4.4.14/arch/alpha/kernel/
Dsmp.c642 struct mm_struct *mm = (struct mm_struct *) x; in ipi_flush_tlb_mm() local
650 flush_tlb_mm(struct mm_struct *mm) in flush_tlb_mm()
679 struct mm_struct *mm; member
687 struct mm_struct * mm = data->mm; in ipi_flush_tlb_page() local
699 struct mm_struct *mm = vma->vm_mm; in flush_tlb_page() local
741 struct mm_struct *mm = (struct mm_struct *) x; in ipi_flush_icache_page() local
752 struct mm_struct *mm = vma->vm_mm; in flush_icache_user_range() local
/linux-4.4.14/arch/unicore32/mm/
Dpgd.c27 pgd_t *get_pgd_slow(struct mm_struct *mm) in get_pgd_slow()
79 void free_pgd_slow(struct mm_struct *mm, pgd_t *pgd) in free_pgd_slow()
Dfault.c41 void show_pte(struct mm_struct *mm, unsigned long addr) in show_pte()
91 static void __do_kernel_fault(struct mm_struct *mm, unsigned long addr, in __do_kernel_fault()
138 struct mm_struct *mm = tsk->active_mm; in do_bad_area() local
170 static int __do_pf(struct mm_struct *mm, unsigned long addr, unsigned int fsr, in __do_pf()
210 struct mm_struct *mm; in do_pf() local
/linux-4.4.14/arch/openrisc/mm/
Dtlb.c132 void flush_tlb_mm(struct mm_struct *mm) in flush_tlb_mm()
168 int init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context()
179 void destroy_context(struct mm_struct *mm) in destroy_context()
/linux-4.4.14/arch/xtensa/mm/
Dtlb.c63 void local_flush_tlb_mm(struct mm_struct *mm) in local_flush_tlb_mm()
92 struct mm_struct *mm = vma->vm_mm; in local_flush_tlb_range() local
131 struct mm_struct* mm = vma->vm_mm; in local_flush_tlb_page() local
172 struct mm_struct *mm = task->mm; in get_pte_for_vaddr() local
/linux-4.4.14/arch/arm/mm/
Dfault.c59 void show_pte(struct mm_struct *mm, unsigned long addr) in show_pte()
124 void show_pte(struct mm_struct *mm, unsigned long addr) in show_pte()
132 __do_kernel_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr, in __do_kernel_fault()
189 struct mm_struct *mm = tsk->active_mm; in do_bad_area() local
223 __do_page_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr, in __do_page_fault()
261 struct mm_struct *mm; in do_page_fault() local
Dmmap.c58 struct mm_struct *mm = current->mm; in arch_get_unmapped_area() local
111 struct mm_struct *mm = current->mm; in arch_get_unmapped_area_topdown() local
182 void arch_pick_mmap_layout(struct mm_struct *mm) in arch_pick_mmap_layout()
Dcontext.c54 void a15_erratum_get_cpumask(int this_cpu, struct mm_struct *mm, in a15_erratum_get_cpumask()
192 static u64 new_context(struct mm_struct *mm, unsigned int cpu) in new_context()
240 void check_and_switch_context(struct mm_struct *mm, struct task_struct *tsk) in check_and_switch_context()
Dpgd.c33 pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
119 void pgd_free(struct mm_struct *mm, pgd_t *pgd_base) in pgd_free()
/linux-4.4.14/arch/c6x/include/asm/
Dcacheflush.h26 #define flush_cache_mm(mm) do {} while (0) argument
27 #define flush_cache_dup_mm(mm) do {} while (0) argument
28 #define flush_cache_range(mm, start, end) do {} while (0) argument
/linux-4.4.14/drivers/infiniband/core/
Dumem_odp.c141 struct mm_struct *mm) in ib_umem_notifier_release()
167 struct mm_struct *mm, in ib_umem_notifier_invalidate_page()
193 struct mm_struct *mm, in ib_umem_notifier_invalidate_range_start()
218 struct mm_struct *mm, in ib_umem_notifier_invalidate_range_end()
246 struct mm_struct *mm = get_task_mm(current); in ib_umem_odp_get() local
/linux-4.4.14/arch/mips/mm/
Dhugetlbpage.c24 pte_t *huge_pte_alloc(struct mm_struct *mm, unsigned long addr, in huge_pte_alloc()
39 pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr) in huge_pte_offset()
Dmmap.c58 struct mm_struct *mm = current->mm; in arch_get_unmapped_area_common() local
159 void arch_pick_mmap_layout(struct mm_struct *mm) in arch_pick_mmap_layout()
189 unsigned long arch_randomize_brk(struct mm_struct *mm) in arch_randomize_brk()
/linux-4.4.14/arch/ia64/mm/
Dhugetlbpage.c28 huge_pte_alloc(struct mm_struct *mm, unsigned long addr, unsigned long sz) in huge_pte_alloc()
47 huge_pte_offset (struct mm_struct *mm, unsigned long addr) in huge_pte_offset()
87 struct page *follow_huge_addr(struct mm_struct *mm, unsigned long addr, int write) in follow_huge_addr()
/linux-4.4.14/arch/score/mm/
Dtlb-score.c64 drop_mmu_context(struct mm_struct *mm) in drop_mmu_context()
74 void local_flush_tlb_mm(struct mm_struct *mm) in local_flush_tlb_mm()
83 struct mm_struct *mm = vma->vm_mm; in local_flush_tlb_range() local
/linux-4.4.14/arch/microblaze/mm/
Dpgtable.c191 static int get_pteptr(struct mm_struct *mm, unsigned long addr, pte_t **ptep) in get_pteptr()
220 struct mm_struct *mm; in iopa() local
237 __init_refok pte_t *pte_alloc_one_kernel(struct mm_struct *mm, in pte_alloc_one_kernel()
/linux-4.4.14/arch/mips/kernel/
Duprobes.c86 struct mm_struct *mm, unsigned long addr) in arch_uprobe_analyze_insn()
277 int __weak set_swbp(struct arch_uprobe *auprobe, struct mm_struct *mm, in set_swbp()
294 int set_orig_insn(struct arch_uprobe *auprobe, struct mm_struct *mm, in set_orig_insn()

1234