Home
last modified time | relevance | path

Searched refs:mm (Results 1 – 25 of 49) sorted by relevance

12

/include/linux/
Dmmu_notifier.h51 struct mm_struct *mm);
61 struct mm_struct *mm,
72 struct mm_struct *mm,
119 struct mm_struct *mm,
122 struct mm_struct *mm,
142 static inline int mm_has_notifiers(struct mm_struct *mm) in mm_has_notifiers() argument
144 return unlikely(mm->mmu_notifier_mm); in mm_has_notifiers()
148 struct mm_struct *mm);
150 struct mm_struct *mm);
152 struct mm_struct *mm);
[all …]
Dmemcontrol.h40 extern int mem_cgroup_newpage_charge(struct page *page, struct mm_struct *mm,
43 extern int mem_cgroup_try_charge_swapin(struct mm_struct *mm,
49 extern int mem_cgroup_cache_charge(struct page *page, struct mm_struct *mm,
60 struct mm_struct *mm, gfp_t gfp_mask);
74 int mm_match_cgroup(const struct mm_struct *mm, const struct mem_cgroup *cgroup) in mm_match_cgroup() argument
78 mem = mem_cgroup_from_task((mm)->owner); in mm_match_cgroup()
125 struct mm_struct *mm, gfp_t gfp_mask) in mem_cgroup_newpage_charge() argument
131 struct mm_struct *mm, gfp_t gfp_mask) in mem_cgroup_cache_charge() argument
136 static inline int mem_cgroup_try_charge_swapin(struct mm_struct *mm, in mem_cgroup_try_charge_swapin() argument
160 struct mm_struct *mm, gfp_t gfp_mask) in mem_cgroup_shrink_usage() argument
[all …]
Dmm.h782 struct mm_struct *mm; member
809 extern int handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma,
812 static inline int handle_mm_fault(struct mm_struct *mm, in handle_mm_fault() argument
825 int get_user_pages(struct task_struct *tsk, struct mm_struct *mm, unsigned long start,
891 extern pte_t *get_locked_pte(struct mm_struct *mm, unsigned long addr, spinlock_t **ptl);
894 static inline int __pud_alloc(struct mm_struct *mm, pgd_t *pgd, in __pud_alloc() argument
900 int __pud_alloc(struct mm_struct *mm, pgd_t *pgd, unsigned long address);
904 static inline int __pmd_alloc(struct mm_struct *mm, pud_t *pud, in __pmd_alloc() argument
910 int __pmd_alloc(struct mm_struct *mm, pud_t *pud, unsigned long address);
913 int __pte_alloc(struct mm_struct *mm, pmd_t *pmd, unsigned long address);
[all …]
Dhugetlb.h33 int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma,
47 pte_t *huge_pte_alloc(struct mm_struct *mm,
49 pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr);
50 int huge_pmd_unshare(struct mm_struct *mm, unsigned long *addr, pte_t *ptep);
51 struct page *follow_huge_addr(struct mm_struct *mm, unsigned long address,
53 struct page *follow_huge_pmd(struct mm_struct *mm, unsigned long address,
55 struct page *follow_huge_pud(struct mm_struct *mm, unsigned long address,
79 #define follow_huge_addr(mm, addr, write) ERR_PTR(-EINVAL) argument
87 #define follow_huge_pmd(mm, addr, pmd, write) NULL argument
88 #define follow_huge_pud(mm, addr, pud, write) NULL argument
[all …]
Dsched.h361 #define set_mm_counter(mm, member, value) atomic_long_set(&(mm)->_##member, value) argument
362 #define get_mm_counter(mm, member) ((unsigned long)atomic_long_read(&(mm)->_##member)) argument
363 #define add_mm_counter(mm, member, value) atomic_long_add(value, &(mm)->_##member) argument
364 #define inc_mm_counter(mm, member) atomic_long_inc(&(mm)->_##member) argument
365 #define dec_mm_counter(mm, member) atomic_long_dec(&(mm)->_##member) argument
372 #define set_mm_counter(mm, member, value) (mm)->_##member = (value) argument
373 #define get_mm_counter(mm, member) ((mm)->_##member) argument
374 #define add_mm_counter(mm, member, value) (mm)->_##member += (value) argument
375 #define inc_mm_counter(mm, member) (mm)->_##member++ argument
376 #define dec_mm_counter(mm, member) (mm)->_##member-- argument
[all …]
Dmigrate.h21 extern int migrate_vmas(struct mm_struct *mm,
36 static inline int migrate_vmas(struct mm_struct *mm, in migrate_vmas() argument
/include/asm-m32r/
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() argument
52 mm_context(mm) = mc; in get_new_mmu_context()
58 static inline void get_mmu_context(struct mm_struct *mm) in get_mmu_context() argument
60 if (mm) { in get_mmu_context()
65 if ((mm_context(mm) ^ mc) & MMU_CONTEXT_VERSION_MASK) in get_mmu_context()
66 get_new_mmu_context(mm); in get_mmu_context()
75 struct mm_struct *mm) in init_new_context() 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() argument
21 static __inline__ pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc() argument
28 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free() argument
33 static __inline__ pte_t *pte_alloc_one_kernel(struct mm_struct *mm, in pte_alloc_one_kernel() argument
41 static __inline__ pgtable_t pte_alloc_one(struct mm_struct *mm, in pte_alloc_one() argument
50 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel() argument
55 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free() argument
61 #define __pte_free_tlb(tlb, pte) pte_free((tlb)->mm, (pte))
69 #define pmd_alloc_one(mm, addr) ({ BUG(); ((pmd_t *)2); }) argument
[all …]
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
Dcacheflush.h11 #define flush_cache_mm(mm) do { } while (0) argument
12 #define flush_cache_dup_mm(mm) do { } while (0) argument
32 #define flush_cache_mm(mm) do { } while (0) argument
33 #define flush_cache_dup_mm(mm) do { } while (0) argument
45 #define flush_cache_mm(mm) do { } while (0) argument
46 #define flush_cache_dup_mm(mm) do { } while (0) argument
Dprocessor.h130 extern void copy_segments(struct task_struct *p, struct mm_struct * mm);
131 extern void release_segments(struct mm_struct * mm);
136 #define copy_segments(p, mm) do { } while (0) argument
137 #define release_segments(mm) do { } while (0) argument
/include/asm-mn10300/
Dmmu_context.h36 #define mm_context(mm) (mm->context.tlbpid[smp_processor_id()]) argument
38 #define enter_lazy_tlb(mm, tsk) do {} while (0) argument
53 static inline unsigned long allocate_mmu_context(struct mm_struct *mm) in allocate_mmu_context() argument
68 mm_context(mm) = mc; in allocate_mmu_context()
75 static inline unsigned long get_mmu_context(struct mm_struct *mm) in get_mmu_context() argument
79 if (mm) { in get_mmu_context()
81 mc = mm_context(mm); in get_mmu_context()
85 mc = allocate_mmu_context(mm); in get_mmu_context()
94 struct mm_struct *mm) in init_new_context() argument
99 mm->context.tlbpid[i] = MMU_NO_CONTEXT; in init_new_context()
[all …]
Dpgalloc.h23 #define pmd_populate_kernel(mm, pmd, pte) \ argument
27 void pmd_populate(struct mm_struct *mm, pmd_t *pmd, struct page *pte) in pmd_populate() argument
43 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel() argument
48 static inline void pte_free(struct mm_struct *mm, struct page *pte) in pte_free() argument
Dtlbflush.h50 #define flush_tlb_mm(mm) \ argument
78 #define flush_tlb_pgtables(mm, start, end) do {} while (0) argument
/include/asm-frv/
Dmmu_context.h20 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb() argument
25 extern int init_new_context(struct task_struct *tsk, struct mm_struct *mm);
27 extern void destroy_context(struct mm_struct *mm);
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
Dpgalloc.h23 #define pmd_populate_kernel(mm, pmd, pte) __set_pmd(pmd, __pa(pte) | _PAGE_TABLE) argument
35 extern void pgd_free(struct mm_struct *mm, pgd_t *);
41 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel() argument
46 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free() argument
63 #define pmd_alloc_one(mm, addr) ({ BUG(); ((pmd_t *) 2); }) argument
64 #define pmd_free(mm, x) do { } while (0) argument
Dtlbflush.h35 #define flush_tlb_mm(mm) \ argument
38 __flush_tlb_mm((mm)->context.id); \
65 #define flush_tlb_mm(mm) BUG() argument
67 #define flush_tlb_range(mm,start,end) BUG() argument
Dpgtable.h181 #define set_pte_at(mm,addr,ptep,pteval) set_pte(ptep,pteval) argument
187 #define pgd_offset(mm, address) ((mm)->pgd + pgd_index(address)) argument
205 #define pgd_populate(mm, pgd, pud) do { } while (0) argument
228 #define pud_alloc_one(mm, address) NULL argument
229 #define pud_free(mm, x) do { } while (0) argument
242 #define pud_populate(mm, pmd, pte) do { } while (0) argument
360 #define pte_clear(mm,addr,xp) do { set_pte_at(mm, addr, xp, __pte(0)); } while (0) argument
400 static inline pte_t ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) in ptep_get_and_clear() argument
407 static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr, pte_t *ptep) in ptep_set_wrprotect() argument
512 struct mm_struct *mm; in update_mmu_cache() local
[all …]
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
/include/asm-generic/
D4level-fixup.h13 #define pmd_alloc(mm, pud, address) \ argument
14 ((unlikely(pgd_none(*(pud))) && __pmd_alloc(mm, pud, address))? \
17 #define pud_alloc(mm, pgd, address) (pgd) argument
25 #define pud_populate(mm, pud, pmd) pgd_populate(mm, pud, pmd) argument
31 #define pud_free(mm, x) do { } while (0) argument
Dpgtable.h95 static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long address, pte_t *ptep) in ptep_set_wrprotect() argument
98 set_pte_at(mm, address, ptep, pte_wrprotect(old_pte)); in ptep_set_wrprotect()
125 #define pgd_offset_gate(mm, addr) pgd_offset(mm, addr) argument
203 static inline pte_t __ptep_modify_prot_start(struct mm_struct *mm, in __ptep_modify_prot_start() argument
212 return ptep_get_and_clear(mm, addr, ptep); in __ptep_modify_prot_start()
215 static inline void __ptep_modify_prot_commit(struct mm_struct *mm, in __ptep_modify_prot_commit() argument
223 set_pte_at(mm, addr, ptep, pte); in __ptep_modify_prot_commit()
241 static inline pte_t ptep_modify_prot_start(struct mm_struct *mm, in ptep_modify_prot_start() argument
245 return __ptep_modify_prot_start(mm, addr, ptep); in ptep_modify_prot_start()
252 static inline void ptep_modify_prot_commit(struct mm_struct *mm, in ptep_modify_prot_commit() argument
[all …]
Dmm_hooks.h10 struct mm_struct *mm) in arch_dup_mmap() argument
14 static inline void arch_exit_mmap(struct mm_struct *mm) in arch_exit_mmap() argument
Dtlb.h40 struct mm_struct *mm; member
54 tlb_gather_mmu(struct mm_struct *mm, unsigned int full_mm_flush) in tlb_gather_mmu() argument
58 tlb->mm = mm; in tlb_gather_mmu()
146 #define tlb_migrate_finish(mm) do {} while (0) argument
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
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() argument

12