Searched refs:mm (Results 51 - 75 of 2900) sorted by relevance

1234567891011>>

/linux-master/include/asm-generic/
H A Dpgalloc.h12 * @mm: the mm_struct of the current context
19 static inline pte_t *__pte_alloc_one_kernel(struct mm_struct *mm) argument
32 * @mm: the mm_struct of the current context
36 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm) argument
38 return __pte_alloc_one_kernel(mm);
44 * @mm: the mm_struct of the current context
47 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) argument
54 * @mm: the mm_struct of the current context
64 static inline pgtable_t __pte_alloc_one(struct mm_struct *mm, gfp_t gfp) argument
82 * @mm
88 pte_alloc_one(struct mm_struct *mm) argument
104 pte_free(struct mm_struct *mm, struct page *pte_page) argument
127 pmd_alloc_one(struct mm_struct *mm, unsigned long addr) argument
146 pmd_free(struct mm_struct *mm, pmd_t *pmd) argument
160 __pud_alloc_one(struct mm_struct *mm, unsigned long addr) argument
187 pud_alloc_one(struct mm_struct *mm, unsigned long addr) argument
193 __pud_free(struct mm_struct *mm, pud_t *pud) argument
203 pud_free(struct mm_struct *mm, pud_t *pud) argument
212 pgd_free(struct mm_struct *mm, pgd_t *pgd) argument
[all...]
/linux-master/arch/powerpc/mm/book3s64/
H A Dmmu_context.c13 #include <linux/mm.h>
95 static int hash__init_new_context(struct mm_struct *mm) argument
99 mm->context.hash_context = kmalloc(sizeof(struct hash_mm_context),
101 if (!mm->context.hash_context)
111 * initialize context slice details for newly allocated mm's (which will
118 if (mm->context.id == 0) {
119 memset(mm->context.hash_context, 0, sizeof(struct hash_mm_context));
120 slice_init_new_context_exec(mm);
122 /* This is fork. Copy hash_context details from current->mm */
123 memcpy(mm
157 hash__init_new_context(struct mm_struct *mm) argument
164 radix__init_new_context(struct mm_struct *mm) argument
195 init_new_context(struct task_struct *tsk, struct mm_struct *mm) argument
261 destroy_pagetable_cache(struct mm_struct *mm) argument
275 destroy_context(struct mm_struct *mm) argument
301 arch_exit_mmap(struct mm_struct *mm) argument
[all...]
/linux-master/fs/proc/
H A Dtask_nommu.c3 #include <linux/mm.h>
11 #include <linux/sched/mm.h>
21 void task_mem(struct seq_file *m, struct mm_struct *mm) argument
23 VMA_ITERATOR(vmi, mm, 0);
28 mmap_read_lock(mm);
40 if (atomic_read(&mm->mm_count) > 1 ||
50 if (atomic_read(&mm->mm_count) > 1)
51 sbytes += kobjsize(mm);
53 bytes += kobjsize(mm);
72 mmap_read_unlock(mm);
81 task_vsize(struct mm_struct *mm) argument
94 task_statm(struct mm_struct *mm, unsigned long *shared, unsigned long *text, unsigned long *data, unsigned long *resident) argument
129 struct mm_struct *mm = vma->vm_mm; local
196 struct mm_struct *mm; local
229 struct mm_struct *mm = priv->mm; local
[all...]
/linux-master/include/linux/
H A Dksm.h12 #include <linux/mm.h>
23 int ksm_enable_merge_any(struct mm_struct *mm);
24 int ksm_disable_merge_any(struct mm_struct *mm);
25 int ksm_disable(struct mm_struct *mm);
27 int __ksm_enter(struct mm_struct *mm);
28 void __ksm_exit(struct mm_struct *mm);
38 static inline void ksm_might_unmap_zero_page(struct mm_struct *mm, pte_t pte) argument
42 mm->ksm_zero_pages--;
46 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) argument
51 ret = __ksm_enter(mm);
62 ksm_exit(struct mm_struct *mm) argument
100 ksm_disable(struct mm_struct *mm) argument
105 ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) argument
110 ksm_exit(struct mm_struct *mm) argument
114 ksm_might_unmap_zero_page(struct mm_struct *mm, pte_t pte) argument
[all...]
/linux-master/arch/powerpc/include/asm/nohash/64/
H A Dpgalloc.h18 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4d, pud_t *pud) argument
23 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long addr) argument
26 pgtable_gfp_flags(mm, GFP_KERNEL));
29 static inline void pud_free(struct mm_struct *mm, pud_t *pud) argument
34 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) argument
39 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, argument
45 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, argument
51 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr) argument
54 pgtable_gfp_flags(mm, GFP_KERNEL));
57 static inline void pmd_free(struct mm_struct *mm, pmd_ argument
[all...]
/linux-master/arch/sparc/mm/
H A Dtlb.c2 /* arch/sparc64/mm/tlb.c
9 #include <linux/mm.h>
26 struct mm_struct *mm = tb->mm; local
33 if (CTX_VALID(mm->context)) {
35 global_flush_tlb_page(mm, tb->vaddrs[0]);
38 smp_flush_tlb_pending(tb->mm, tb->tlb_nr,
41 __flush_tlb_pending(CTX_HWBITS(tb->mm->context),
69 static void tlb_batch_add_one(struct mm_struct *mm, unsigned long vaddr, argument
81 if (unlikely(nr != 0 && mm !
112 tlb_batch_add(struct mm_struct *mm, unsigned long vaddr, pte_t *ptep, pte_t orig, int fullmm, unsigned int hugepage_shift) argument
147 tlb_batch_pmd_scan(struct mm_struct *mm, unsigned long vaddr, pmd_t pmd) argument
170 __set_pmd_acct(struct mm_struct *mm, unsigned long addr, pmd_t orig, pmd_t pmd) argument
222 set_pmd_at(struct mm_struct *mm, unsigned long addr, pmd_t *pmdp, pmd_t pmd) argument
268 pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp, pgtable_t pgtable) argument
283 pgtable_trans_huge_withdraw(struct mm_struct *mm, pmd_t *pmdp) argument
[all...]
/linux-master/arch/powerpc/include/asm/book3s/32/
H A Dtlbflush.h11 void hash__flush_tlb_mm(struct mm_struct *mm);
13 void hash__flush_range(struct mm_struct *mm, unsigned long start, unsigned long end);
36 static inline void flush_range(struct mm_struct *mm, unsigned long start, unsigned long end) argument
40 hash__flush_range(mm, start, end);
47 static inline void flush_tlb_mm(struct mm_struct *mm) argument
50 hash__flush_tlb_mm(mm);
80 static inline void local_flush_tlb_page_psize(struct mm_struct *mm, argument
83 flush_range(mm, vmaddr, vmaddr);
86 static inline void local_flush_tlb_mm(struct mm_struct *mm) argument
88 flush_tlb_mm(mm);
[all...]
/linux-master/arch/powerpc/include/asm/
H A Dtlb.h48 flush_hash_entry(tlb->mm, ptep, address);
53 static inline int mm_is_core_local(struct mm_struct *mm) argument
55 return cpumask_subset(mm_cpumask(mm),
60 static inline int mm_is_thread_local(struct mm_struct *mm) argument
62 if (atomic_read(&mm->context.active_cpus) > 1)
64 return cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm));
67 static inline int mm_is_thread_local(struct mm_struct *mm) argument
69 return cpumask_equal(mm_cpumask(mm),
75 static inline int mm_is_core_local(struct mm_struct *mm) argument
80 static inline int mm_is_thread_local(struct mm_struct *mm) argument
[all...]
/linux-master/arch/mips/include/asm/
H A Dmmu_context.h86 * assigned to a struct mm, and we'll never target it with a ginvt instruction.
106 static inline u64 cpu_context(unsigned int cpu, const struct mm_struct *mm) argument
109 return atomic64_read(&mm->context.mmid);
111 return mm->context.asid[cpu];
115 struct mm_struct *mm, u64 ctx)
118 atomic64_set(&mm->context.mmid, ctx);
120 mm->context.asid[cpu] = ctx;
124 #define cpu_asid(cpu, mm) \
125 (cpu_context((cpu), (mm)) & cpu_asid_mask(&cpu_data[cpu]))
127 extern void get_new_mmu_context(struct mm_struct *mm);
114 set_cpu_context(unsigned int cpu, struct mm_struct *mm, u64 ctx) argument
137 init_new_context(struct task_struct *tsk, struct mm_struct *mm) argument
181 destroy_context(struct mm_struct *mm) argument
187 drop_mmu_context(struct mm_struct *mm) argument
[all...]
/linux-master/arch/arm/mm/
H A Dpgd.c3 * linux/arch/arm/mm/pgd.c
7 #include <linux/mm.h>
17 #include "mm.h"
30 pgd_t *pgd_alloc(struct mm_struct *mm) argument
57 new_p4d = p4d_alloc(mm, new_pgd + pgd_index(MODULES_VADDR),
62 new_pud = pud_alloc(mm, new_p4d, MODULES_VADDR);
66 new_pmd = pmd_alloc(mm, new_pud, 0);
91 new_p4d = p4d_alloc(mm, new_pgd, 0);
95 new_pud = pud_alloc(mm, new_p4d, 0);
99 new_pmd = pmd_alloc(mm, new_pu
142 pgd_free(struct mm_struct *mm, pgd_t *pgd_base) argument
[all...]
/linux-master/mm/
H A Dmmu_notifier.c3 * linux/mm/mmu_notifier.c
13 #include <linux/mm.h>
19 #include <linux/sched/mm.h>
33 * mm->notifier_subscriptions inside the mm_take_all_locks() protected
38 /* all mmu notifiers registered in this mm are queued in this list */
54 * this mm, such that PTES cannot be read into SPTEs (shadow PTEs) while any
57 * Note that the core mm creates nested invalidate_range_start()/end() regions
60 * progress on the mm side.
67 * - mm->active_invalidate_ranges != 0
73 * - mm
261 mn_itree_release(struct mmu_notifier_subscriptions *subscriptions, struct mm_struct *mm) argument
299 mn_hlist_release(struct mmu_notifier_subscriptions *subscriptions, struct mm_struct *mm) argument
348 __mmu_notifier_release(struct mm_struct *mm) argument
365 __mmu_notifier_clear_flush_young(struct mm_struct *mm, unsigned long start, unsigned long end) argument
385 __mmu_notifier_clear_young(struct mm_struct *mm, unsigned long start, unsigned long end) argument
405 __mmu_notifier_test_young(struct mm_struct *mm, unsigned long address) argument
427 __mmu_notifier_change_pte(struct mm_struct *mm, unsigned long address, pte_t pte) argument
588 __mmu_notifier_arch_invalidate_secondary_tlbs(struct mm_struct *mm, unsigned long start, unsigned long end) argument
611 __mmu_notifier_register(struct mmu_notifier *subscription, struct mm_struct *mm) argument
714 mmu_notifier_register(struct mmu_notifier *subscription, struct mm_struct *mm) argument
727 find_get_mmu_notifier(struct mm_struct *mm, const struct mmu_notifier_ops *ops) argument
766 mmu_notifier_get_locked(const struct mmu_notifier_ops *ops, struct mm_struct *mm) argument
795 __mmu_notifier_subscriptions_destroy(struct mm_struct *mm) argument
812 mmu_notifier_unregister(struct mmu_notifier *subscription, struct mm_struct *mm) argument
858 struct mm_struct *mm = subscription->mm; local
889 struct mm_struct *mm = subscription->mm; local
905 __mmu_interval_notifier_insert( struct mmu_interval_notifier *interval_sub, struct mm_struct *mm, struct mmu_notifier_subscriptions *subscriptions, unsigned long start, unsigned long length, const struct mmu_interval_notifier_ops *ops) argument
987 mmu_interval_notifier_insert(struct mmu_interval_notifier *interval_sub, struct mm_struct *mm, unsigned long start, unsigned long length, const struct mmu_interval_notifier_ops *ops) argument
1009 mmu_interval_notifier_insert_locked( struct mmu_interval_notifier *interval_sub, struct mm_struct *mm, unsigned long start, unsigned long length, const struct mmu_interval_notifier_ops *ops) argument
1055 struct mm_struct *mm = interval_sub->mm; local
[all...]
/linux-master/kernel/sched/
H A Dmembarrier.c89 * b: read rq->curr->mm == NULL
110 * e: current->mm = NULL
111 * b: read rq->curr->mm == NULL
124 * e: current->mm = NULL
125 * b: read rq->curr->mm == NULL
127 * f: current->mm = mm
205 struct mm_struct *mm = (struct mm_struct *) info; local
207 if (current->mm != mm)
220 membarrier_exec_mmap(struct mm_struct *mm) argument
317 struct mm_struct *mm = current->mm; local
436 sync_runqueues_membarrier_state(struct mm_struct *mm) argument
497 struct mm_struct *mm = p->mm; local
516 struct mm_struct *mm = p->mm; local
558 struct mm_struct *mm = p->mm; local
[all...]
/linux-master/arch/sh/mm/
H A Dtlbflush_32.c11 #include <linux/mm.h>
28 if (vma->vm_mm != current->mm) {
42 struct mm_struct *mm = vma->vm_mm; local
45 if (cpu_context(cpu, mm) != NO_CONTEXT) {
52 cpu_context(cpu, mm) = NO_CONTEXT;
53 if (mm == current->mm)
54 activate_context(mm, cpu);
59 asid = cpu_asid(cpu, mm);
63 if (mm !
106 local_flush_tlb_mm(struct mm_struct *mm) argument
[all...]
H A Dhugetlbpage.c3 * arch/sh/mm/hugetlbpage.c
14 #include <linux/mm.h>
24 pte_t *huge_pte_alloc(struct mm_struct *mm, struct vm_area_struct *vma, argument
33 pgd = pgd_offset(mm, addr);
35 p4d = p4d_alloc(mm, pgd, addr);
37 pud = pud_alloc(mm, p4d, addr);
39 pmd = pmd_alloc(mm, pud, addr);
41 pte = pte_alloc_huge(mm, pmd, addr);
49 pte_t *huge_pte_offset(struct mm_struct *mm, argument
58 pgd = pgd_offset(mm, add
[all...]
/linux-master/drivers/gpu/drm/i915/selftests/
H A Dmock_region.c18 i915_refct_sgt_put(obj->mm.rsgt);
19 obj->mm.rsgt = NULL;
20 intel_region_ttm_resource_free(obj->mm.region, obj->mm.res);
28 obj->mm.res = intel_region_ttm_resource_alloc(obj->mm.region,
32 if (IS_ERR(obj->mm.res))
33 return PTR_ERR(obj->mm.res);
35 obj->mm.rsgt = intel_region_ttm_resource_to_rsgt(obj->mm
[all...]
/linux-master/arch/nios2/kernel/
H A Dsys_nios2.c25 struct mm_struct *mm = current->mm; local
38 if (mmap_read_lock_killable(mm))
45 vma = find_vma(mm, addr);
47 mmap_read_unlock(mm);
53 mmap_read_unlock(mm);
/linux-master/drivers/net/ethernet/mscc/
H A Docelot_mm.c55 struct ocelot_mm_state *mm = &ocelot->mm[port]; local
66 ocelot_port->speed == SPEED_1000) && mm->tx_active)
67 val = mm->preemptible_tcs;
75 mm->active_preemptible_tcs = val;
82 mm->tx_active ? "active" : "inactive", mm->preemptible_tcs,
83 mm->active_preemptible_tcs);
93 struct ocelot_mm_state *mm = &ocelot->mm[por local
108 struct ocelot_mm_state *mm = &ocelot->mm[port]; local
174 struct ocelot_mm_state *mm; local
238 struct ocelot_mm_state *mm; local
275 struct ocelot_mm_state *mm; local
[all...]
/linux-master/arch/arm/include/asm/
H A Dmmu.h27 #define ASID(mm) ((unsigned int)((mm)->context.id.counter & ~ASID_MASK))
29 #define ASID(mm) (0)
/linux-master/arch/x86/um/
H A Dmem_64.c2 #include <linux/mm.h>
/linux-master/arch/arm/xen/
H A DMakefile2 obj-y := enlighten.o hypercall.o grant-table.o p2m.o mm.o
/linux-master/arch/x86/include/asm/
H A Dcacheflush.h5 #include <linux/mm.h>
/linux-master/arch/um/include/asm/
H A Dtlb.h5 #include <linux/mm.h>
/linux-master/arch/arc/include/asm/
H A Dpgalloc.h32 #include <linux/mm.h>
37 pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) argument
49 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, pgtable_t pte_page) argument
54 static inline pgd_t *pgd_alloc(struct mm_struct *mm) argument
75 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4dp, pud_t *pudp) argument
80 #define __pud_free_tlb(tlb, pmd, addr) pud_free((tlb)->mm, pmd)
86 static inline void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmdp) argument
91 #define __pmd_free_tlb(tlb, pmd, addr) pmd_free((tlb)->mm, pmd)
95 #define __pte_free_tlb(tlb, pte, addr) pte_free((tlb)->mm, pte)
/linux-master/arch/parisc/include/asm/
H A Dpgalloc.h6 #include <linux/mm.h>
19 static inline pgd_t *pgd_alloc(struct mm_struct *mm) argument
32 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) argument
41 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) argument
47 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) argument
57 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) argument
64 pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) argument
70 #define pmd_populate(mm, pmd, pte_page) \
71 pmd_populate_kernel(mm, pmd, page_address(pte_page))
/linux-master/arch/nios2/include/asm/
H A Dpgalloc.h13 #include <linux/mm.h>
17 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, argument
23 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, argument
29 extern pgd_t *pgd_alloc(struct mm_struct *mm);

Completed in 234 milliseconds

1234567891011>>