Lines Matching refs:mm

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; member
260 struct mm_struct *mm; member
273 struct mm_struct *mm; member
281 static inline int mm_has_notifiers(struct mm_struct *mm) in mm_has_notifiers() argument
283 return unlikely(mm->notifier_subscriptions); in mm_has_notifiers()
287 struct mm_struct *mm);
289 mmu_notifier_get(const struct mmu_notifier_ops *ops, struct mm_struct *mm) in mmu_notifier_get() argument
293 mmap_write_lock(mm); in mmu_notifier_get()
294 ret = mmu_notifier_get_locked(ops, mm); in mmu_notifier_get()
295 mmap_write_unlock(mm); in mmu_notifier_get()
302 struct mm_struct *mm);
304 struct mm_struct *mm);
306 struct mm_struct *mm);
311 struct mm_struct *mm, unsigned long start,
315 struct mmu_interval_notifier *interval_sub, struct mm_struct *mm,
386 extern void __mmu_notifier_subscriptions_destroy(struct mm_struct *mm);
387 extern void __mmu_notifier_release(struct mm_struct *mm);
388 extern int __mmu_notifier_clear_flush_young(struct mm_struct *mm,
391 extern int __mmu_notifier_clear_young(struct mm_struct *mm,
394 extern int __mmu_notifier_test_young(struct mm_struct *mm,
396 extern void __mmu_notifier_change_pte(struct mm_struct *mm,
401 extern void __mmu_notifier_invalidate_range(struct mm_struct *mm,
412 static inline void mmu_notifier_release(struct mm_struct *mm) in mmu_notifier_release() argument
414 if (mm_has_notifiers(mm)) in mmu_notifier_release()
415 __mmu_notifier_release(mm); in mmu_notifier_release()
418 static inline int mmu_notifier_clear_flush_young(struct mm_struct *mm, in mmu_notifier_clear_flush_young() argument
422 if (mm_has_notifiers(mm)) in mmu_notifier_clear_flush_young()
423 return __mmu_notifier_clear_flush_young(mm, start, end); in mmu_notifier_clear_flush_young()
427 static inline int mmu_notifier_clear_young(struct mm_struct *mm, in mmu_notifier_clear_young() argument
431 if (mm_has_notifiers(mm)) in mmu_notifier_clear_young()
432 return __mmu_notifier_clear_young(mm, start, end); in mmu_notifier_clear_young()
436 static inline int mmu_notifier_test_young(struct mm_struct *mm, in mmu_notifier_test_young() argument
439 if (mm_has_notifiers(mm)) in mmu_notifier_test_young()
440 return __mmu_notifier_test_young(mm, address); in mmu_notifier_test_young()
444 static inline void mmu_notifier_change_pte(struct mm_struct *mm, in mmu_notifier_change_pte() argument
447 if (mm_has_notifiers(mm)) in mmu_notifier_change_pte()
448 __mmu_notifier_change_pte(mm, address, pte); in mmu_notifier_change_pte()
457 if (mm_has_notifiers(range->mm)) { in mmu_notifier_invalidate_range_start()
470 if (mm_has_notifiers(range->mm)) { in mmu_notifier_invalidate_range_start_nonblock()
484 if (mm_has_notifiers(range->mm)) in mmu_notifier_invalidate_range_end()
491 if (mm_has_notifiers(range->mm)) in mmu_notifier_invalidate_range_only_end()
495 static inline void mmu_notifier_invalidate_range(struct mm_struct *mm, in mmu_notifier_invalidate_range() argument
498 if (mm_has_notifiers(mm)) in mmu_notifier_invalidate_range()
499 __mmu_notifier_invalidate_range(mm, start, end); in mmu_notifier_invalidate_range()
502 static inline void mmu_notifier_subscriptions_init(struct mm_struct *mm) in mmu_notifier_subscriptions_init() argument
504 mm->notifier_subscriptions = NULL; in mmu_notifier_subscriptions_init()
507 static inline void mmu_notifier_subscriptions_destroy(struct mm_struct *mm) in mmu_notifier_subscriptions_destroy() argument
509 if (mm_has_notifiers(mm)) in mmu_notifier_subscriptions_destroy()
510 __mmu_notifier_subscriptions_destroy(mm); in mmu_notifier_subscriptions_destroy()
518 struct mm_struct *mm, in mmu_notifier_range_init() argument
524 range->mm = mm; in mmu_notifier_range_init()
533 struct vm_area_struct *vma, struct mm_struct *mm, in mmu_notifier_range_init_owner() argument
536 mmu_notifier_range_init(range, event, flags, vma, mm, start, end); in mmu_notifier_range_init_owner()
662 #define mmu_notifier_range_init(range,event,flags,vma,mm,start,end) \ argument
664 #define mmu_notifier_range_init_owner(range, event, flags, vma, mm, start, \ argument
674 static inline int mm_has_notifiers(struct mm_struct *mm) in mm_has_notifiers() argument
679 static inline void mmu_notifier_release(struct mm_struct *mm) in mmu_notifier_release() argument
683 static inline int mmu_notifier_clear_flush_young(struct mm_struct *mm, in mmu_notifier_clear_flush_young() argument
690 static inline int mmu_notifier_test_young(struct mm_struct *mm, in mmu_notifier_test_young() argument
696 static inline void mmu_notifier_change_pte(struct mm_struct *mm, in mmu_notifier_change_pte() argument
722 static inline void mmu_notifier_invalidate_range(struct mm_struct *mm, in mmu_notifier_invalidate_range() argument
727 static inline void mmu_notifier_subscriptions_init(struct mm_struct *mm) in mmu_notifier_subscriptions_init() argument
731 static inline void mmu_notifier_subscriptions_destroy(struct mm_struct *mm) in mmu_notifier_subscriptions_destroy() argument