Lines Matching refs:mm
67 struct mm_struct *mm; member
99 struct mm_struct *mm);
111 struct mm_struct *mm,
121 struct mm_struct *mm,
132 struct mm_struct *mm,
140 struct mm_struct *mm,
217 void (*invalidate_range)(struct mmu_notifier *mn, struct mm_struct *mm,
230 struct mmu_notifier *(*alloc_notifier)(struct mm_struct *mm);
253 struct mm_struct *mm; member
261 static inline int mm_has_notifiers(struct mm_struct *mm) in mm_has_notifiers() argument
263 return unlikely(mm->mmu_notifier_mm); in mm_has_notifiers()
267 struct mm_struct *mm);
269 mmu_notifier_get(const struct mmu_notifier_ops *ops, struct mm_struct *mm) in mmu_notifier_get() argument
273 down_write(&mm->mmap_sem); in mmu_notifier_get()
274 ret = mmu_notifier_get_locked(ops, mm); in mmu_notifier_get()
275 up_write(&mm->mmap_sem); in mmu_notifier_get()
282 struct mm_struct *mm);
284 struct mm_struct *mm);
286 struct mm_struct *mm);
287 extern void __mmu_notifier_mm_destroy(struct mm_struct *mm);
288 extern void __mmu_notifier_release(struct mm_struct *mm);
289 extern int __mmu_notifier_clear_flush_young(struct mm_struct *mm,
292 extern int __mmu_notifier_clear_young(struct mm_struct *mm,
295 extern int __mmu_notifier_test_young(struct mm_struct *mm,
297 extern void __mmu_notifier_change_pte(struct mm_struct *mm,
302 extern void __mmu_notifier_invalidate_range(struct mm_struct *mm,
313 static inline void mmu_notifier_release(struct mm_struct *mm) in mmu_notifier_release() argument
315 if (mm_has_notifiers(mm)) in mmu_notifier_release()
316 __mmu_notifier_release(mm); in mmu_notifier_release()
319 static inline int mmu_notifier_clear_flush_young(struct mm_struct *mm, in mmu_notifier_clear_flush_young() argument
323 if (mm_has_notifiers(mm)) in mmu_notifier_clear_flush_young()
324 return __mmu_notifier_clear_flush_young(mm, start, end); in mmu_notifier_clear_flush_young()
328 static inline int mmu_notifier_clear_young(struct mm_struct *mm, in mmu_notifier_clear_young() argument
332 if (mm_has_notifiers(mm)) in mmu_notifier_clear_young()
333 return __mmu_notifier_clear_young(mm, start, end); in mmu_notifier_clear_young()
337 static inline int mmu_notifier_test_young(struct mm_struct *mm, in mmu_notifier_test_young() argument
340 if (mm_has_notifiers(mm)) in mmu_notifier_test_young()
341 return __mmu_notifier_test_young(mm, address); in mmu_notifier_test_young()
345 static inline void mmu_notifier_change_pte(struct mm_struct *mm, in mmu_notifier_change_pte() argument
348 if (mm_has_notifiers(mm)) in mmu_notifier_change_pte()
349 __mmu_notifier_change_pte(mm, address, pte); in mmu_notifier_change_pte()
358 if (mm_has_notifiers(range->mm)) { in mmu_notifier_invalidate_range_start()
371 if (mm_has_notifiers(range->mm)) { in mmu_notifier_invalidate_range_start_nonblock()
385 if (mm_has_notifiers(range->mm)) in mmu_notifier_invalidate_range_end()
392 if (mm_has_notifiers(range->mm)) in mmu_notifier_invalidate_range_only_end()
396 static inline void mmu_notifier_invalidate_range(struct mm_struct *mm, in mmu_notifier_invalidate_range() argument
399 if (mm_has_notifiers(mm)) in mmu_notifier_invalidate_range()
400 __mmu_notifier_invalidate_range(mm, start, end); in mmu_notifier_invalidate_range()
403 static inline void mmu_notifier_mm_init(struct mm_struct *mm) in mmu_notifier_mm_init() argument
405 mm->mmu_notifier_mm = NULL; in mmu_notifier_mm_init()
408 static inline void mmu_notifier_mm_destroy(struct mm_struct *mm) in mmu_notifier_mm_destroy() argument
410 if (mm_has_notifiers(mm)) in mmu_notifier_mm_destroy()
411 __mmu_notifier_mm_destroy(mm); in mmu_notifier_mm_destroy()
419 struct mm_struct *mm, in mmu_notifier_range_init() argument
425 range->mm = mm; in mmu_notifier_range_init()
553 #define mmu_notifier_range_init(range,event,flags,vma,mm,start,end) \ argument
562 static inline int mm_has_notifiers(struct mm_struct *mm) in mm_has_notifiers() argument
567 static inline void mmu_notifier_release(struct mm_struct *mm) in mmu_notifier_release() argument
571 static inline int mmu_notifier_clear_flush_young(struct mm_struct *mm, in mmu_notifier_clear_flush_young() argument
578 static inline int mmu_notifier_test_young(struct mm_struct *mm, in mmu_notifier_test_young() argument
584 static inline void mmu_notifier_change_pte(struct mm_struct *mm, in mmu_notifier_change_pte() argument
610 static inline void mmu_notifier_invalidate_range(struct mm_struct *mm, in mmu_notifier_invalidate_range() argument
615 static inline void mmu_notifier_mm_init(struct mm_struct *mm) in mmu_notifier_mm_init() argument
619 static inline void mmu_notifier_mm_destroy(struct mm_struct *mm) in mmu_notifier_mm_destroy() argument