/Linux-v6.1/arch/powerpc/include/asm/ |
D | mmu_context.h | 18 extern int init_new_context(struct task_struct *tsk, struct mm_struct *mm); 20 extern void destroy_context(struct mm_struct *mm); 24 extern bool mm_iommu_preregistered(struct mm_struct *mm); 25 extern long mm_iommu_new(struct mm_struct *mm, 28 extern long mm_iommu_newdev(struct mm_struct *mm, unsigned long ua, 31 extern long mm_iommu_put(struct mm_struct *mm, 33 extern void mm_iommu_init(struct mm_struct *mm); 34 extern struct mm_iommu_table_group_mem_t *mm_iommu_lookup(struct mm_struct *mm, 36 extern struct mm_iommu_table_group_mem_t *mm_iommu_get(struct mm_struct *mm, 40 extern bool mm_iommu_is_devmem(struct mm_struct *mm, unsigned long hpa, [all …]
|
/Linux-v6.1/arch/x86/include/asm/ |
D | mmu_context.h | 19 static inline void paravirt_activate_mm(struct mm_struct *prev, in paravirt_activate_mm() 20 struct mm_struct *next) in paravirt_activate_mm() 61 static inline void init_new_context_ldt(struct mm_struct *mm) in init_new_context_ldt() 66 int ldt_dup_context(struct mm_struct *oldmm, struct mm_struct *mm); 67 void destroy_context_ldt(struct mm_struct *mm); 68 void ldt_arch_exit_mmap(struct mm_struct *mm); 70 static inline void init_new_context_ldt(struct mm_struct *mm) { } in init_new_context_ldt() 71 static inline int ldt_dup_context(struct mm_struct *oldmm, in ldt_dup_context() 72 struct mm_struct *mm) in ldt_dup_context() 76 static inline void destroy_context_ldt(struct mm_struct *mm) { } in destroy_context_ldt() [all …]
|
D | pgalloc.h | 13 static inline int __paravirt_pgd_alloc(struct mm_struct *mm) { return 0; } in __paravirt_pgd_alloc() 19 static inline void paravirt_pgd_free(struct mm_struct *mm, pgd_t *pgd) {} in paravirt_pgd_free() 20 static inline void paravirt_alloc_pte(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_pte() 21 static inline void paravirt_alloc_pmd(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_pmd() 24 static inline void paravirt_alloc_pud(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_pud() 25 static inline void paravirt_alloc_p4d(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_p4d() 51 extern pgd_t *pgd_alloc(struct mm_struct *); 52 extern void pgd_free(struct mm_struct *mm, pgd_t *pgd); 54 extern pgtable_t pte_alloc_one(struct mm_struct *); 64 static inline void pmd_populate_kernel(struct mm_struct *mm, in pmd_populate_kernel() [all …]
|
/Linux-v6.1/include/linux/sched/ |
D | mm.h | 16 extern struct mm_struct *mm_alloc(void); 35 static inline void mmgrab(struct mm_struct *mm) in mmgrab() 40 extern void __mmdrop(struct mm_struct *mm); 42 static inline void mmdrop(struct mm_struct *mm) in mmdrop() 60 struct mm_struct *mm = container_of(rhp, struct mm_struct, delayed_drop); in __mmdrop_delayed() 69 static inline void mmdrop_sched(struct mm_struct *mm) in mmdrop_sched() 76 static inline void mmdrop_sched(struct mm_struct *mm) in mmdrop_sched() 98 static inline void mmget(struct mm_struct *mm) in mmget() 103 static inline bool mmget_not_zero(struct mm_struct *mm) in mmget_not_zero() 109 extern void mmput(struct mm_struct *); [all …]
|
/Linux-v6.1/include/linux/ |
D | mmap_lock.h | 20 void __mmap_lock_do_trace_start_locking(struct mm_struct *mm, bool write); 21 void __mmap_lock_do_trace_acquire_returned(struct mm_struct *mm, bool write, 23 void __mmap_lock_do_trace_released(struct mm_struct *mm, bool write); 25 static inline void __mmap_lock_trace_start_locking(struct mm_struct *mm, in __mmap_lock_trace_start_locking() 32 static inline void __mmap_lock_trace_acquire_returned(struct mm_struct *mm, in __mmap_lock_trace_acquire_returned() 39 static inline void __mmap_lock_trace_released(struct mm_struct *mm, bool write) in __mmap_lock_trace_released() 47 static inline void __mmap_lock_trace_start_locking(struct mm_struct *mm, in __mmap_lock_trace_start_locking() 52 static inline void __mmap_lock_trace_acquire_returned(struct mm_struct *mm, in __mmap_lock_trace_acquire_returned() 57 static inline void __mmap_lock_trace_released(struct mm_struct *mm, bool write) in __mmap_lock_trace_released() 63 static inline void mmap_init_lock(struct mm_struct *mm) in mmap_init_lock() [all …]
|
D | mmu_notifier.h | 89 struct mm_struct *mm); 101 struct mm_struct *mm, 111 struct mm_struct *mm, 122 struct mm_struct *mm, 130 struct mm_struct *mm, 208 struct mm_struct *mm, 222 struct mmu_notifier *(*alloc_notifier)(struct mm_struct *mm); 240 struct mm_struct *mm; 260 struct mm_struct *mm; 273 struct mm_struct *mm; [all …]
|
D | page_table_check.h | 17 void __page_table_check_pte_clear(struct mm_struct *mm, unsigned long addr, 19 void __page_table_check_pmd_clear(struct mm_struct *mm, unsigned long addr, 21 void __page_table_check_pud_clear(struct mm_struct *mm, unsigned long addr, 23 void __page_table_check_pte_set(struct mm_struct *mm, unsigned long addr, 25 void __page_table_check_pmd_set(struct mm_struct *mm, unsigned long addr, 27 void __page_table_check_pud_set(struct mm_struct *mm, unsigned long addr, 29 void __page_table_check_pte_clear_range(struct mm_struct *mm, 49 static inline void page_table_check_pte_clear(struct mm_struct *mm, in page_table_check_pte_clear() 58 static inline void page_table_check_pmd_clear(struct mm_struct *mm, in page_table_check_pmd_clear() 67 static inline void page_table_check_pud_clear(struct mm_struct *mm, in page_table_check_pud_clear() [all …]
|
D | khugepaged.h | 13 extern void __khugepaged_enter(struct mm_struct *mm); 14 extern void __khugepaged_exit(struct mm_struct *mm); 19 extern int collapse_pte_mapped_thp(struct mm_struct *mm, unsigned long addr, 22 static inline int collapse_pte_mapped_thp(struct mm_struct *mm, in collapse_pte_mapped_thp() 29 static inline void khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork() 35 static inline void khugepaged_exit(struct mm_struct *mm) in khugepaged_exit() 41 static inline void khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork() 44 static inline void khugepaged_exit(struct mm_struct *mm) in khugepaged_exit() 51 static inline int collapse_pte_mapped_thp(struct mm_struct *mm, in collapse_pte_mapped_thp()
|
D | ksm.h | 21 int __ksm_enter(struct mm_struct *mm); 22 void __ksm_exit(struct mm_struct *mm); 24 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork() 31 static inline void ksm_exit(struct mm_struct *mm) in ksm_exit() 56 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork() 61 static inline void ksm_exit(struct mm_struct *mm) in ksm_exit()
|
/Linux-v6.1/arch/s390/include/asm/ |
D | pgalloc.h | 22 unsigned long *crst_table_alloc(struct mm_struct *); 23 void crst_table_free(struct mm_struct *, unsigned long *); 25 unsigned long *page_table_alloc(struct mm_struct *); 26 struct page *page_table_alloc_pgste(struct mm_struct *mm); 27 void page_table_free(struct mm_struct *, unsigned long *); 37 int crst_table_upgrade(struct mm_struct *mm, unsigned long limit); 39 static inline unsigned long check_asce_limit(struct mm_struct *mm, unsigned long addr, in check_asce_limit() 53 static inline p4d_t *p4d_alloc_one(struct mm_struct *mm, unsigned long address) in p4d_alloc_one() 62 static inline void p4d_free(struct mm_struct *mm, p4d_t *p4d) in p4d_free() 68 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long address) in pud_alloc_one() [all …]
|
/Linux-v6.1/arch/m68k/include/asm/ |
D | mmu_context.h | 25 extern struct mm_struct *context_mm[LAST_CONTEXT+1]; 28 static inline void get_mmu_context(struct mm_struct *mm) in get_mmu_context() 58 static inline void destroy_context(struct mm_struct *mm) in destroy_context() 72 static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, in switch_mm() 84 static inline void activate_mm(struct mm_struct *active_mm, in activate_mm() 85 struct mm_struct *mm) in activate_mm() 96 struct mm_struct *mm; in load_ksp_mmu() 171 extern unsigned long get_free_context(struct mm_struct *mm); 177 struct mm_struct *mm) in init_new_context() 185 static inline void get_mmu_context(struct mm_struct *mm) in get_mmu_context() [all …]
|
D | motorola_pgalloc.h | 27 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm) in pte_alloc_one_kernel() 32 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel() 37 static inline pgtable_t pte_alloc_one(struct mm_struct *mm) in pte_alloc_one() 42 static inline void pte_free(struct mm_struct *mm, pgtable_t pgtable) in pte_free() 54 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one() 59 static inline int pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() 71 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free() 76 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc() 82 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate_kernel() 87 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, pgtable_t page) in pmd_populate() [all …]
|
/Linux-v6.1/include/asm-generic/ |
D | pgalloc.h | 19 static inline pte_t *__pte_alloc_one_kernel(struct mm_struct *mm) in __pte_alloc_one_kernel() 31 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm) in pte_alloc_one_kernel() 42 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel() 59 static inline pgtable_t __pte_alloc_one(struct mm_struct *mm, gfp_t gfp) in __pte_alloc_one() 83 static inline pgtable_t pte_alloc_one(struct mm_struct *mm) in pte_alloc_one() 99 static inline void pte_free(struct mm_struct *mm, struct page *pte_page) in pte_free() 119 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr) in pmd_alloc_one() 138 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() 150 static inline pud_t *__pud_alloc_one(struct mm_struct *mm, unsigned long addr) in __pud_alloc_one() 169 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long addr) in pud_alloc_one() [all …]
|
D | mmu_context.h | 10 struct mm_struct; 21 static inline void enter_lazy_tlb(struct mm_struct *mm, in enter_lazy_tlb() 35 struct mm_struct *mm) in init_new_context() 46 static inline void destroy_context(struct mm_struct *mm) in destroy_context() 57 static inline void activate_mm(struct mm_struct *prev_mm, in activate_mm() 58 struct mm_struct *next_mm) in activate_mm() 71 struct mm_struct *mm) in deactivate_mm()
|
/Linux-v6.1/arch/arm/include/asm/ |
D | mmu_context.h | 24 void __check_vmalloc_seq(struct mm_struct *mm); 27 static inline void check_vmalloc_seq(struct mm_struct *mm) in check_vmalloc_seq() 38 void check_and_switch_context(struct mm_struct *mm, struct task_struct *tsk); 42 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context() 49 void a15_erratum_get_cpumask(int this_cpu, struct mm_struct *mm, 52 static inline void a15_erratum_get_cpumask(int this_cpu, struct mm_struct *mm, in a15_erratum_get_cpumask() 62 static inline void check_and_switch_context(struct mm_struct *mm, in check_and_switch_context() 85 struct mm_struct *mm = current->mm; in finish_arch_post_lock_switch() 117 switch_mm(struct mm_struct *prev, struct mm_struct *next, in switch_mm() 142 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
|
/Linux-v6.1/arch/arm64/include/asm/ |
D | mmu_context.h | 49 void cpu_do_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm); 51 static inline void cpu_switch_mm(pgd_t *pgd, struct mm_struct *mm) in cpu_switch_mm() 98 struct mm_struct *mm = current->active_mm; in cpu_uninstall_idmap() 187 void check_and_switch_context(struct mm_struct *mm); 191 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context() 200 struct mm_struct *mm) in update_saved_ttbr0() 216 struct mm_struct *mm) in update_saved_ttbr0() 223 enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb() 232 static inline void __switch_mm(struct mm_struct *next) in __switch_mm() 247 switch_mm(struct mm_struct *prev, struct mm_struct *next, in switch_mm() [all …]
|
/Linux-v6.1/arch/powerpc/include/asm/book3s/64/ |
D | pgalloc.h | 19 extern pmd_t *pmd_fragment_alloc(struct mm_struct *, unsigned long); 25 static inline pgd_t *radix__pgd_alloc(struct mm_struct *mm) in radix__pgd_alloc() 39 static inline void radix__pgd_free(struct mm_struct *mm, pgd_t *pgd) in radix__pgd_free() 48 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc() 81 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free() 88 static inline void p4d_populate(struct mm_struct *mm, p4d_t *pgd, pud_t *pud) in p4d_populate() 93 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long addr) in pud_alloc_one() 126 static inline void pud_free(struct mm_struct *mm, pud_t *pud) in pud_free() 131 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate() 142 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr) in pmd_alloc_one() [all …]
|
D | tlbflush-radix.h | 12 struct mm_struct; 65 extern void radix__flush_tlb_range_psize(struct mm_struct *mm, unsigned long start, 67 void radix__flush_tlb_pwc_range_psize(struct mm_struct *mm, unsigned long start, 75 extern void radix__local_flush_tlb_mm(struct mm_struct *mm); 76 extern void radix__local_flush_all_mm(struct mm_struct *mm); 78 extern void radix__local_flush_tlb_page_psize(struct mm_struct *mm, unsigned long vmaddr, 82 extern void radix__flush_tlb_mm(struct mm_struct *mm); 83 extern void radix__flush_all_mm(struct mm_struct *mm); 85 extern void radix__flush_tlb_page_psize(struct mm_struct *mm, unsigned long vmaddr, 94 extern void radix__flush_tlb_collapsed_pmd(struct mm_struct *mm, unsigned long addr);
|
/Linux-v6.1/arch/riscv/include/asm/ |
D | pgalloc.h | 18 static inline void pmd_populate_kernel(struct mm_struct *mm, in pmd_populate_kernel() 26 static inline void pmd_populate(struct mm_struct *mm, in pmd_populate() 35 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate() 42 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4d, pud_t *pud) in p4d_populate() 51 static inline void p4d_populate_safe(struct mm_struct *mm, p4d_t *p4d, in p4d_populate_safe() 62 static inline void pgd_populate(struct mm_struct *mm, pgd_t *pgd, p4d_t *p4d) in pgd_populate() 71 static inline void pgd_populate_safe(struct mm_struct *mm, pgd_t *pgd, in pgd_populate_safe() 83 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long addr) in pud_alloc_one() 92 static inline void pud_free(struct mm_struct *mm, pud_t *pud) in pud_free() 101 static inline p4d_t *p4d_alloc_one(struct mm_struct *mm, unsigned long addr) in p4d_alloc_one() [all …]
|
/Linux-v6.1/arch/alpha/include/asm/ |
D | mmu_context.h | 121 __get_new_mm_context(struct mm_struct *mm, long cpu) in __get_new_mm_context() 136 ev5_switch_mm(struct mm_struct *prev_mm, struct mm_struct *next_mm, in ev5_switch_mm() 166 ev4_switch_mm(struct mm_struct *prev_mm, struct mm_struct *next_mm, in ev4_switch_mm() 185 extern void __load_new_mm_context(struct mm_struct *); 194 struct mm_struct * mm = current->active_mm; \ 205 ev5_activate_mm(struct mm_struct *prev_mm, struct mm_struct *next_mm) in ev5_activate_mm() 211 ev4_activate_mm(struct mm_struct *prev_mm, struct mm_struct *next_mm) in ev4_activate_mm() 232 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context() 246 enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
|
D | tlbflush.h | 14 extern void __load_new_mm_context(struct mm_struct *); 21 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() 139 extern void flush_tlb_mm(struct mm_struct *);
|
/Linux-v6.1/arch/sparc/include/asm/ |
D | pgalloc_64.h | 26 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc() 31 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free() 43 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() 58 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() 63 pte_t *pte_alloc_one_kernel(struct mm_struct *mm); 64 pgtable_t pte_alloc_one(struct mm_struct *mm); 65 void pte_free_kernel(struct mm_struct *mm, pte_t *pte); 66 void pte_free(struct mm_struct *mm, pgtable_t ptepage);
|
/Linux-v6.1/arch/loongarch/include/asm/ |
D | mmu_context.h | 38 static inline int asid_valid(struct mm_struct *mm, unsigned int cpu) in asid_valid() 46 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb() 52 get_new_mmu_context(struct mm_struct *mm, unsigned long cpu) in get_new_mmu_context() 67 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context() 77 static inline void switch_mm_irqs_off(struct mm_struct *prev, struct mm_struct *next, in switch_mm_irqs_off() 102 static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, in switch_mm() 116 static inline void destroy_context(struct mm_struct *mm) in destroy_context() 128 drop_mmu_context(struct mm_struct *mm, unsigned int cpu) in drop_mmu_context()
|
/Linux-v6.1/arch/powerpc/include/asm/nohash/64/ |
D | pgalloc.h | 18 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4d, pud_t *pud) in p4d_populate() 23 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long addr) in pud_alloc_one() 29 static inline void pud_free(struct mm_struct *mm, pud_t *pud) in pud_free() 34 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate() 39 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, in pmd_populate_kernel() 45 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate() 51 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr) in pmd_alloc_one() 57 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
|
/Linux-v6.1/arch/sh/include/asm/ |
D | pgalloc.h | 12 extern pgd_t *pgd_alloc(struct mm_struct *); 13 extern void pgd_free(struct mm_struct *mm, pgd_t *pgd); 16 extern void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd); 17 extern pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address); 18 extern void pmd_free(struct mm_struct *mm, pmd_t *pmd); 22 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, in pmd_populate_kernel() 28 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
|