Lines Matching refs:mm
17 extern int init_new_context(struct task_struct *tsk, struct mm_struct *mm);
18 extern void destroy_context(struct mm_struct *mm);
23 extern bool mm_iommu_preregistered(struct mm_struct *mm);
24 extern long mm_iommu_get(struct mm_struct *mm,
27 extern long mm_iommu_put(struct mm_struct *mm,
29 extern void mm_iommu_init(struct mm_struct *mm);
30 extern void mm_iommu_cleanup(struct mm_struct *mm);
31 extern struct mm_iommu_table_group_mem_t *mm_iommu_lookup(struct mm_struct *mm,
34 struct mm_struct *mm, unsigned long ua, unsigned long size);
35 extern struct mm_iommu_table_group_mem_t *mm_iommu_find(struct mm_struct *mm,
41 extern void mm_iommu_ua_mark_dirty_rm(struct mm_struct *mm, unsigned long ua);
45 extern void switch_slb(struct task_struct *tsk, struct mm_struct *mm);
65 static inline int alloc_extended_context(struct mm_struct *mm, in alloc_extended_context() argument
76 VM_WARN_ON(mm->context.extended_id[index]); in alloc_extended_context()
77 mm->context.extended_id[index] = context_id; in alloc_extended_context()
81 static inline bool need_extra_context(struct mm_struct *mm, unsigned long ea) in need_extra_context() argument
85 context_id = get_ea_context(&mm->context, ea); in need_extra_context()
97 static inline int alloc_extended_context(struct mm_struct *mm, in alloc_extended_context() argument
105 static inline bool need_extra_context(struct mm_struct *mm, unsigned long ea) in need_extra_context() argument
112 extern void radix_kvm_prefetch_workaround(struct mm_struct *mm);
114 static inline void radix_kvm_prefetch_workaround(struct mm_struct *mm) { } in radix_kvm_prefetch_workaround() argument
118 extern int use_cop(unsigned long acop, struct mm_struct *mm);
119 extern void drop_cop(unsigned long acop, struct mm_struct *mm);
122 static inline void inc_mm_active_cpus(struct mm_struct *mm) in inc_mm_active_cpus() argument
124 atomic_inc(&mm->context.active_cpus); in inc_mm_active_cpus()
127 static inline void dec_mm_active_cpus(struct mm_struct *mm) in dec_mm_active_cpus() argument
129 atomic_dec(&mm->context.active_cpus); in dec_mm_active_cpus()
132 static inline void mm_context_add_copro(struct mm_struct *mm) in mm_context_add_copro() argument
139 if (atomic_inc_return(&mm->context.copros) == 1) in mm_context_add_copro()
140 inc_mm_active_cpus(mm); in mm_context_add_copro()
143 static inline void mm_context_remove_copro(struct mm_struct *mm) in mm_context_remove_copro() argument
166 flush_all_mm(mm); in mm_context_remove_copro()
168 c = atomic_dec_if_positive(&mm->context.copros); in mm_context_remove_copro()
173 dec_mm_active_cpus(mm); in mm_context_remove_copro()
177 static inline void inc_mm_active_cpus(struct mm_struct *mm) { } in inc_mm_active_cpus() argument
178 static inline void dec_mm_active_cpus(struct mm_struct *mm) { } in dec_mm_active_cpus() argument
179 static inline void mm_context_add_copro(struct mm_struct *mm) { } in mm_context_add_copro() argument
180 static inline void mm_context_remove_copro(struct mm_struct *mm) { } in mm_context_remove_copro() argument
199 #define deactivate_mm(tsk,mm) do { } while (0) argument
211 static inline void enter_lazy_tlb(struct mm_struct *mm, in enter_lazy_tlb() argument
221 struct mm_struct *mm) in arch_dup_mmap() argument
227 static inline void arch_exit_mmap(struct mm_struct *mm) in arch_exit_mmap() argument
231 extern void arch_exit_mmap(struct mm_struct *mm);
234 static inline void arch_unmap(struct mm_struct *mm, in arch_unmap() argument
238 if (start <= mm->context.vdso_base && mm->context.vdso_base < end) in arch_unmap()
239 mm->context.vdso_base = 0; in arch_unmap()
242 static inline void arch_bprm_mm_init(struct mm_struct *mm, in arch_bprm_mm_init() argument
258 #define pkey_mm_init(mm) argument