Home
last modified time | relevance | path

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

12345678910>>...36

/linux/drivers/gpu/
H A Dbuddy.c75 static struct gpu_buddy_block *gpu_block_alloc(struct gpu_buddy *mm, in gpu_block_alloc() argument
98 static void gpu_block_free(struct gpu_buddy *mm, in gpu_block_free() argument
128 static void rbtree_insert(struct gpu_buddy *mm, in rbtree_insert() argument
140 root = &mm->free_trees[tree][order]; in rbtree_insert()
166 static void rbtree_remove(struct gpu_buddy *mm, in rbtree_remove() argument
174 root = &mm->free_trees[tree][order]; in rbtree_remove()
190 static void mark_allocated(struct gpu_buddy *mm, in mark_allocated() argument
196 mm->free_scoreboard[gpu_buddy_block_order(block)]--; in mark_allocated()
197 mm->used_scoreboard[gpu_buddy_block_order(block)]++; in mark_allocated()
199 rbtree_remove(mm, block); in mark_allocated()
[all …]
/linux/include/linux/
H A Dmmap_lock.h26 void __mmap_lock_do_trace_start_locking(struct mm_struct *mm, bool write);
27 void __mmap_lock_do_trace_acquire_returned(struct mm_struct *mm, bool write,
29 void __mmap_lock_do_trace_released(struct mm_struct *mm, bool write);
31 static inline void __mmap_lock_trace_start_locking(struct mm_struct *mm, in __mmap_lock_trace_start_locking() argument
35 __mmap_lock_do_trace_start_locking(mm, write); in __mmap_lock_trace_start_locking()
38 static inline void __mmap_lock_trace_acquire_returned(struct mm_struct *mm, in __mmap_lock_trace_acquire_returned() argument
42 __mmap_lock_do_trace_acquire_returned(mm, write, success); in __mmap_lock_trace_acquire_returned()
45 static inline void __mmap_lock_trace_released(struct mm_struct *mm, bool write) in __mmap_lock_trace_released() argument
48 __mmap_lock_do_trace_released(mm, write); in __mmap_lock_trace_released()
53 static inline void __mmap_lock_trace_start_locking(struct mm_struct *mm, in __mmap_lock_trace_start_locking() argument
[all …]
/linux/arch/powerpc/include/asm/
H A Dmmu_context.h18 extern int init_new_context(struct task_struct *tsk, struct mm_struct *mm);
20 extern void destroy_context(struct mm_struct *mm);
24 extern bool mm_iommu_preregistered(struct mm_struct *mm);
25 extern long mm_iommu_new(struct mm_struct *mm,
28 extern long mm_iommu_newdev(struct mm_struct *mm, unsigned long ua,
31 extern long mm_iommu_put(struct mm_struct *mm,
33 extern void mm_iommu_init(struct mm_struct *mm);
34 extern struct mm_iommu_table_group_mem_t *mm_iommu_lookup(struct mm_struct *mm,
36 extern struct mm_iommu_table_group_mem_t *mm_iommu_get(struct mm_struct *mm,
40 extern bool mm_iommu_is_devmem(struct mm_struct *mm, unsigned long hpa,
[all …]
/linux/arch/m68k/include/asm/
H A Dmmu_context.h28 static inline void get_mmu_context(struct mm_struct *mm) in get_mmu_context() argument
32 if (mm->context != NO_CONTEXT) in get_mmu_context()
45 mm->context = ctx; in get_mmu_context()
46 context_mm[ctx] = mm; in get_mmu_context()
52 #define init_new_context(tsk, mm) (((mm)->context = NO_CONTEXT), 0) argument
58 static inline void destroy_context(struct mm_struct *mm) in destroy_context() argument
60 if (mm->context != NO_CONTEXT) { in destroy_context()
61 clear_bit(mm->context, context_map); in destroy_context()
62 mm->context = NO_CONTEXT; in destroy_context()
75 get_mmu_context(tsk->mm); in switch_mm()
[all …]
H A Dmotorola_pgalloc.h18 extern void *get_pointer_table(struct mm_struct *mm, int type);
27 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm) in pte_alloc_one_kernel() argument
29 return get_pointer_table(mm, TABLE_PTE); in pte_alloc_one_kernel()
32 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel() argument
37 static inline pgtable_t pte_alloc_one(struct mm_struct *mm) in pte_alloc_one() argument
39 return get_pointer_table(mm, TABLE_PTE); in pte_alloc_one()
42 static inline void pte_free(struct mm_struct *mm, pgtable_t pgtable) in pte_free() argument
54 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one() argument
56 return get_pointer_table(mm, TABLE_PMD); in pmd_alloc_one()
59 static inline int pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() argument
[all …]
/linux/arch/powerpc/mm/book3s64/
H A Dmmu_context.c95 static int hash__init_new_context(struct mm_struct *mm) in hash__init_new_context() argument
99 mm->context.hash_context = kmalloc_obj(struct hash_mm_context); in hash__init_new_context()
100 if (!mm->context.hash_context) in hash__init_new_context()
117 if (mm->context.id == 0) { in hash__init_new_context()
118 memset(mm->context.hash_context, 0, sizeof(struct hash_mm_context)); in hash__init_new_context()
119 slice_init_new_context_exec(mm); in hash__init_new_context()
122 …memcpy(mm->context.hash_context, current->mm->context.hash_context, sizeof(struct hash_mm_context)… in hash__init_new_context()
125 if (current->mm->context.hash_context->spt) { in hash__init_new_context()
126 mm->context.hash_context->spt = kmalloc_obj(struct subpage_prot_table); in hash__init_new_context()
127 if (!mm->context.hash_context->spt) { in hash__init_new_context()
[all …]
H A Dsubpage_prot.c22 void subpage_prot_free(struct mm_struct *mm) in subpage_prot_free() argument
24 struct subpage_prot_table *spt = mm_ctx_subpage_prot(&mm->context); in subpage_prot_free()
53 static void hpte_flush_range(struct mm_struct *mm, unsigned long addr, in hpte_flush_range() argument
63 pgd = pgd_offset(mm, addr); in hpte_flush_range()
73 pte = pte_offset_map_lock(mm, pmd, addr, &ptl); in hpte_flush_range()
78 pte_update(mm, addr, pte, 0, 0, 0); in hpte_flush_range()
92 struct mm_struct *mm = current->mm; in subpage_prot_clear() local
99 mmap_write_lock(mm); in subpage_prot_clear()
101 spt = mm_ctx_subpage_prot(&mm->context); in subpage_prot_clear()
130 hpte_flush_range(mm, addr, nw); in subpage_prot_clear()
[all …]
/linux/tools/testing/vma/tests/
H A Dmerge.c73 static struct vm_area_struct *try_merge_new_vma(struct mm_struct *mm, in try_merge_new_vma() argument
93 return alloc_and_link_vma(mm, start, end, pgoff, vma_flags); in try_merge_new_vma()
101 struct mm_struct mm = {}; in test_simple_merge() local
102 struct vm_area_struct *vma_left = alloc_vma(&mm, 0, 0x1000, 0, vma_flags); in test_simple_merge()
103 struct vm_area_struct *vma_right = alloc_vma(&mm, 0x2000, 0x3000, 2, vma_flags); in test_simple_merge()
104 VMA_ITERATOR(vmi, &mm, 0x1000); in test_simple_merge()
106 .mm = &mm, in test_simple_merge()
115 ASSERT_FALSE(attach_vma(&mm, vma_left)); in test_simple_merge()
116 ASSERT_FALSE(attach_vma(&mm, vma_right)); in test_simple_merge()
128 mtree_destroy(&mm.mm_mt); in test_simple_merge()
[all …]
/linux/arch/arm/include/asm/
H A Dmmu_context.h24 void __check_vmalloc_seq(struct mm_struct *mm);
27 static inline void check_vmalloc_seq(struct mm_struct *mm) in check_vmalloc_seq() argument
30 unlikely(atomic_read(&mm->context.vmalloc_seq) != in check_vmalloc_seq()
32 __check_vmalloc_seq(mm); in check_vmalloc_seq()
38 void check_and_switch_context(struct mm_struct *mm, struct task_struct *tsk);
42 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context() argument
44 atomic64_set(&mm->context.id, 0); in init_new_context()
49 void a15_erratum_get_cpumask(int this_cpu, struct mm_struct *mm,
52 static inline void a15_erratum_get_cpumask(int this_cpu, struct mm_struct *mm, in a15_erratum_get_cpumask() argument
62 static inline void check_and_switch_context(struct mm_struct *mm, in check_and_switch_context() argument
[all …]
/linux/arch/arm/mm/
H A Dpgd.c20 #define _pgd_alloc(mm) kmalloc_objs(pgd_t, PTRS_PER_PGD, GFP_KERNEL | __GFP_ZERO) argument
21 #define _pgd_free(mm, pgd) kfree(pgd) argument
23 #define _pgd_alloc(mm) __pgd_alloc(mm, 2) argument
24 #define _pgd_free(mm, pgd) __pgd_free(mm, pgd) argument
30 pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc() argument
38 new_pgd = _pgd_alloc(mm); in pgd_alloc()
55 new_p4d = p4d_alloc(mm, new_pgd + pgd_index(MODULES_VADDR), in pgd_alloc()
60 new_pud = pud_alloc(mm, new_p4d, MODULES_VADDR); in pgd_alloc()
64 new_pmd = pmd_alloc(mm, new_pud, 0); in pgd_alloc()
89 new_p4d = p4d_alloc(mm, new_pgd, 0); in pgd_alloc()
[all …]
/linux/arch/sparc/mm/
H A Dtsb.c121 struct mm_struct *mm = tb->mm; in flush_tsb_user() local
124 spin_lock_irqsave(&mm->context.lock, flags); in flush_tsb_user()
127 base = (unsigned long) mm->context.tsb_block[MM_TSB_BASE].tsb; in flush_tsb_user()
128 nentries = mm->context.tsb_block[MM_TSB_BASE].tsb_nentries; in flush_tsb_user()
140 else if (mm->context.tsb_block[MM_TSB_HUGE].tsb) { in flush_tsb_user()
141 base = (unsigned long) mm->context.tsb_block[MM_TSB_HUGE].tsb; in flush_tsb_user()
142 nentries = mm->context.tsb_block[MM_TSB_HUGE].tsb_nentries; in flush_tsb_user()
149 spin_unlock_irqrestore(&mm->context.lock, flags); in flush_tsb_user()
152 void flush_tsb_user_page(struct mm_struct *mm, unsigned long vaddr, in flush_tsb_user_page() argument
157 spin_lock_irqsave(&mm->context.lock, flags); in flush_tsb_user_page()
[all …]
/linux/fs/proc/
H A Dtask_nommu.c21 void task_mem(struct seq_file *m, struct mm_struct *mm) in task_mem() argument
23 VMA_ITERATOR(vmi, mm, 0); in task_mem()
28 mmap_read_lock(mm); in task_mem()
40 if (atomic_read(&mm->mm_count) > 1 || in task_mem()
50 if (atomic_read(&mm->mm_count) > 1) in task_mem()
51 sbytes += kobjsize(mm); in task_mem()
53 bytes += kobjsize(mm); in task_mem()
72 mmap_read_unlock(mm); in task_mem()
81 unsigned long task_vsize(struct mm_struct *mm) in task_vsize() argument
83 VMA_ITERATOR(vmi, mm, 0); in task_vsize()
[all …]
/linux/drivers/net/ethernet/mscc/
H A Docelot_mm.c55 struct ocelot_mm_state *mm = &ocelot->mm[port]; in ocelot_port_update_active_preemptible_tcs() local
66 ocelot_port->speed == SPEED_1000) && mm->tx_active) in ocelot_port_update_active_preemptible_tcs()
67 val = mm->preemptible_tcs; in ocelot_port_update_active_preemptible_tcs()
75 mm->active_preemptible_tcs = val; in ocelot_port_update_active_preemptible_tcs()
82 mm->tx_active ? "active" : "inactive", mm->preemptible_tcs, in ocelot_port_update_active_preemptible_tcs()
83 mm->active_preemptible_tcs); in ocelot_port_update_active_preemptible_tcs()
93 struct ocelot_mm_state *mm = &ocelot->mm[port]; in ocelot_port_change_fp() local
97 if (mm->preemptible_tcs == preemptible_tcs) in ocelot_port_change_fp()
100 mm->preemptible_tcs = preemptible_tcs; in ocelot_port_change_fp()
108 struct ocelot_mm_state *mm = &ocelot->mm[port]; in ocelot_mm_update_port_status() local
[all …]
/linux/include/trace/events/
H A Dksm.h77 TP_PROTO(void *mm),
79 TP_ARGS(mm),
82 __field(void *, mm)
86 __entry->mm = mm;
89 TP_printk("mm %p", __entry->mm)
101 TP_PROTO(void *mm),
103 TP_ARGS(mm)
115 TP_PROTO(void *mm),
117 TP_ARGS(mm)
132 TP_PROTO(unsigned long pfn, void *rmap_item, void *mm, int err),
[all …]
/linux/rust/helpers/
H A Dmm.c3 #include <linux/mm.h>
4 #include <linux/sched/mm.h>
6 __rust_helper void rust_helper_mmgrab(struct mm_struct *mm) in rust_helper_mmgrab() argument
8 mmgrab(mm); in rust_helper_mmgrab()
11 __rust_helper void rust_helper_mmdrop(struct mm_struct *mm) in rust_helper_mmdrop() argument
13 mmdrop(mm); in rust_helper_mmdrop()
16 __rust_helper void rust_helper_mmget(struct mm_struct *mm) in rust_helper_mmget() argument
18 mmget(mm); in rust_helper_mmget()
21 __rust_helper bool rust_helper_mmget_not_zero(struct mm_struct *mm) in rust_helper_mmget_not_zero() argument
23 return mmget_not_zero(mm); in rust_helper_mmget_not_zero()
26 rust_helper_mmap_read_lock(struct mm_struct * mm) rust_helper_mmap_read_lock() argument
31 rust_helper_mmap_read_trylock(struct mm_struct * mm) rust_helper_mmap_read_trylock() argument
36 rust_helper_mmap_read_unlock(struct mm_struct * mm) rust_helper_mmap_read_unlock() argument
41 rust_helper_vma_lookup(struct mm_struct * mm,unsigned long addr) rust_helper_vma_lookup() argument
[all...]
/linux/arch/mips/include/asm/
H A Dmmu_context.h106 static inline u64 cpu_context(unsigned int cpu, const struct mm_struct *mm) in cpu_context() argument
109 return atomic64_read(&mm->context.mmid); in cpu_context()
111 return mm->context.asid[cpu]; in cpu_context()
115 struct mm_struct *mm, u64 ctx) in set_cpu_context() argument
118 atomic64_set(&mm->context.mmid, ctx); in set_cpu_context()
120 mm->context.asid[cpu] = ctx; in set_cpu_context()
124 #define cpu_asid(cpu, mm) \ argument
125 (cpu_context((cpu), (mm)) & cpu_asid_mask(&cpu_data[cpu]))
127 extern void get_new_mmu_context(struct mm_struct *mm);
128 extern void check_mmu_context(struct mm_struct *mm);
[all …]
/linux/arch/x86/include/asm/
H A Dpgalloc.h15 static inline int __paravirt_pgd_alloc(struct mm_struct *mm) { return 0; } in __paravirt_pgd_alloc() argument
20 #define paravirt_pgd_alloc(mm) __paravirt_pgd_alloc(mm) argument
21 static inline void paravirt_pgd_free(struct mm_struct *mm, pgd_t *pgd) {} in paravirt_pgd_free() argument
22 static inline void paravirt_alloc_pte(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_pte() argument
23 static inline void paravirt_alloc_pmd(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_pmd() argument
26 static inline void paravirt_alloc_pud(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_pud() argument
27 static inline void paravirt_alloc_p4d(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_p4d() argument
50 extern void pgd_free(struct mm_struct *mm, pgd_t *pgd);
62 static inline void pmd_populate_kernel(struct mm_struct *mm, in pmd_populate_kernel() argument
65 paravirt_alloc_pte(mm, __pa(pte) >> PAGE_SHIFT); in pmd_populate_kernel()
[all …]
/linux/kernel/
H A Dfork.c12 * management can be a bitch. See 'mm/memory.c': 'copy_page_range()'
18 #include <linux/sched/mm.h>
46 #include <linux/mm.h>
121 #include "../mm/internal.h"
482 /* SLAB cache for mm_struct structures (tsk->mm) */
566 void dup_mm_exe_file(struct mm_struct *mm, struct mm_struct *oldmm) in dup_mm_exe_file() argument
571 RCU_INIT_POINTER(mm->exe_file, exe_file); in dup_mm_exe_file()
581 static inline int mm_alloc_pgd(struct mm_struct *mm) in mm_alloc_pgd() argument
583 mm->pgd = pgd_alloc(mm); in mm_alloc_pgd()
589 mm_free_pgd(struct mm_struct * mm) mm_free_pgd() argument
594 mm_alloc_pgd(mm) global() argument
595 mm_free_pgd(mm) global() argument
601 mm_alloc_id(struct mm_struct * mm) mm_alloc_id() argument
612 mm_free_id(struct mm_struct * mm) mm_free_id() argument
624 mm_alloc_id(struct mm_struct * mm) mm_alloc_id() argument
625 mm_free_id(struct mm_struct * mm) mm_free_id() argument
628 check_mm(struct mm_struct * mm) check_mm() argument
656 free_mm(mm) global() argument
660 struct mm_struct *mm = arg; do_check_lazy_tlb() local
667 struct mm_struct *mm = arg; do_shoot_lazy_tlb() local
676 cleanup_lazy_tlbs(struct mm_struct * mm) cleanup_lazy_tlbs() argument
724 __mmdrop(struct mm_struct * mm) __mmdrop() argument
749 struct mm_struct *mm; mmdrop_async_fn() local
755 mmdrop_async(struct mm_struct * mm) mmdrop_async() argument
1051 mm_init_aio(struct mm_struct * mm) mm_init_aio() argument
1059 mm_clear_owner(struct mm_struct * mm,struct task_struct * p) mm_clear_owner() argument
1068 mm_init_owner(struct mm_struct * mm,struct task_struct * p) mm_init_owner() argument
1075 mm_init_uprobes_state(struct mm_struct * mm) mm_init_uprobes_state() argument
1082 mmap_init_lock(struct mm_struct * mm) mmap_init_lock() argument
1091 mm_init(struct mm_struct * mm,struct task_struct * p) mm_init() argument
1174 struct mm_struct *mm; mm_alloc() local
1185 __mmput(struct mm_struct * mm) __mmput() argument
1211 mmput(struct mm_struct * mm) mmput() argument
1223 struct mm_struct *mm = container_of(work, struct mm_struct, mmput_async_fn() local
1229 mmput_async(struct mm_struct * mm) mmput_async() argument
1252 set_mm_exe_file(struct mm_struct * mm,struct file * new_exe_file) set_mm_exe_file() argument
1289 replace_mm_exe_file(struct mm_struct * mm,struct file * new_exe_file) replace_mm_exe_file() argument
1340 get_mm_exe_file(struct mm_struct * mm) get_mm_exe_file() argument
1361 struct mm_struct *mm; get_task_exe_file() local
1386 struct mm_struct *mm; get_task_mm() local
1400 may_access_mm(struct mm_struct * mm,struct task_struct * task,unsigned int mode) may_access_mm() argument
1413 struct mm_struct *mm; mm_access() local
1478 mm_release(struct task_struct * tsk,struct mm_struct * mm) mm_release() argument
1511 mm_exit_exec_release(struct task_struct * tsk,struct mm_struct * mm) mm_exit_exec_release() argument
1530 struct mm_struct *mm; dup_mm() local
1570 struct mm_struct *mm, *oldmm; copy_mm() local
[all...]
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_mqd_manager_v9.c38 static void update_mqd(struct mqd_manager *mm, void *mqd,
42 static uint64_t mqd_stride_v9(struct mqd_manager *mm, in mqd_stride_v9() argument
45 if (mm->dev->kfd->cwsr_enabled && in mqd_stride_v9()
57 return mm->mqd_size; in mqd_stride_v9()
70 static void update_cu_mask(struct mqd_manager *mm, void *mqd, in update_cu_mask() argument
79 mqd_symmetrically_map_cu_mask(mm, in update_cu_mask()
88 if (KFD_GC_VERSION(mm->dev) != IP_VERSION(9, 4, 3) && in update_cu_mask()
89 KFD_GC_VERSION(mm->dev) != IP_VERSION(9, 4, 4) && in update_cu_mask()
90 KFD_GC_VERSION(mm->dev) != IP_VERSION(9, 5, 0)) { in update_cu_mask()
119 static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm, in allocate_mqd() argument
[all …]
H A Dkfd_mqd_manager.h71 struct kfd_mem_obj* (*allocate_mqd)(struct mqd_manager *mm,
74 void (*init_mqd)(struct mqd_manager *mm, void **mqd,
78 int (*load_mqd)(struct mqd_manager *mm, void *mqd,
83 void (*update_mqd)(struct mqd_manager *mm, void *mqd,
87 int (*destroy_mqd)(struct mqd_manager *mm, void *mqd,
92 void (*free_mqd)(struct mqd_manager *mm, void *mqd,
95 bool (*is_occupied)(struct mqd_manager *mm, void *mqd,
99 int (*get_wave_state)(struct mqd_manager *mm, void *mqd,
105 int (*get_checkpoint_info)(struct mqd_manager *mm, void *mqd,
108 void (*checkpoint_mqd)(struct mqd_manager *mm,
[all …]
/linux/arch/loongarch/include/asm/
H A Dmmu_context.h34 #define cpu_context(cpu, mm) ((mm)->context.asid[cpu]) argument
36 #define cpu_asid(cpu, mm) (cpu_context((cpu), (mm)) & cpu_asid_mask(&cpu_data[cpu])) argument
38 static inline int asid_valid(struct mm_struct *mm, unsigned int cpu) in asid_valid() argument
40 if ((cpu_context(cpu, mm) ^ asid_cache(cpu)) & asid_version_mask(cpu)) in asid_valid()
46 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb() argument
52 get_new_mmu_context(struct mm_struct *mm, unsigned long cpu, bool *need_flush) in get_new_mmu_context() argument
59 cpu_context(cpu, mm) = asid_cache(cpu) = asid; in get_new_mmu_context()
67 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context() argument
72 cpu_context(i, mm) = 0; in init_new_context()
129 static inline void destroy_context(struct mm_struct *mm) in destroy_context() argument
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/core/
H A Dmm.c26 #define node(root, dir) ((root)->nl_entry.dir == &mm->nodes) ? NULL : \
30 nvkm_mm_dump(struct nvkm_mm *mm, const char *header) in nvkm_mm_dump() argument
36 list_for_each_entry(node, &mm->nodes, nl_entry) { in nvkm_mm_dump()
41 list_for_each_entry(node, &mm->free, fl_entry) { in nvkm_mm_dump()
48 nvkm_mm_free(struct nvkm_mm *mm, struct nvkm_mm_node **pthis) in nvkm_mm_free() argument
72 list_for_each_entry(prev, &mm->free, fl_entry) { in nvkm_mm_free()
86 region_head(struct nvkm_mm *mm, struct nvkm_mm_node *a, u32 size) in region_head() argument
111 nvkm_mm_head(struct nvkm_mm *mm, u8 heap, u8 type, u32 size_max, u32 size_min, in nvkm_mm_head() argument
121 list_for_each_entry(this, &mm->free, fl_entry) { in nvkm_mm_head()
131 s = roundup(s, mm->block_size); in nvkm_mm_head()
[all …]
/linux/kernel/futex/
H A Dcore.c71 void *mm; member
144 struct mm_struct *mm; in futex_private_hash_put() local
149 mm = fph->mm; in futex_private_hash_put()
151 wake_up_var(mm); in futex_private_hash_put()
199 static bool __futex_pivot_hash(struct mm_struct *mm, struct futex_private_hash *new) in __futex_pivot_hash() argument
201 struct futex_mm_phash *mmph = &mm->futex.phash; in __futex_pivot_hash()
226 static void futex_pivot_hash(struct mm_struct *mm) in futex_pivot_hash()
228 scoped_guard(mutex, &mm->futex.phash.lock) { in futex_pivot_hash()
231 fph = mm in futex_pivot_hash()
224 futex_pivot_hash(struct mm_struct * mm) futex_pivot_hash() argument
237 futex_private_hash(struct mm_struct * mm) futex_private_hash() argument
291 __futex_key_to_node(struct mm_struct * mm,unsigned long addr) __futex_key_to_node() argument
320 futex_key_to_node_opt(struct mm_struct * mm,unsigned long addr) futex_key_to_node_opt() argument
337 futex_mpol(struct mm_struct * mm,unsigned long addr) futex_mpol() argument
351 futex_mpol(struct mm_struct * mm,unsigned long addr) futex_mpol() argument
510 struct mm_struct *mm = current->mm; get_futex_key() local
744 struct mm_struct *mm = current->mm; fault_in_user_writeable() local
1612 struct mm_struct *mm = fph->mm; __futex_ref_atomic_begin() local
1634 struct mm_struct *mm = fph->mm; __futex_ref_atomic_end() local
1676 struct mm_struct *mm = container_of(head, struct mm_struct, futex.phash.rcu); futex_ref_rcu() local
1701 struct mm_struct *mm = fph->mm; futex_ref_drop() local
1747 struct mm_struct *mm = fph->mm; futex_ref_get() local
1761 struct mm_struct *mm = fph->mm; futex_ref_put() local
1775 struct mm_struct *mm = fph->mm; futex_ref_is_dead() local
1792 futex_hash_free(struct mm_struct * mm) futex_hash_free() argument
1802 futex_pivot_pending(struct mm_struct * mm) futex_pivot_pending() argument
1842 struct mm_struct *mm = current->mm; futex_hash_allocate() local
2057 futex_mm_init(struct mm_struct * mm) futex_mm_init() argument
[all...]
/linux/Documentation/translations/zh_CN/core-api/
H A Dmm-api.rst3 :Original: Documentation/core-api/mm-api.rst
31 mm/gup.c
51 mm/slab.c
53 mm/slab_common.c
55 mm/util.c
62 mm/vmalloc.c
73 mm/filemap.c
78 mm/readahead.c
83 mm/page-writeback.c
88 mm/truncate.c
[all …]
/linux/arch/s390/mm/
H A Dgmap_helpers.c42 pte_t *try_get_locked_pte(struct mm_struct *mm, unsigned long vmaddr, spinlock_t **ptl) in try_get_locked_pte() argument
51 pgdp = pgd_offset(mm, vmaddr); in try_get_locked_pte()
67 ptep = pte_offset_map_rw_nolock(mm, pmdp, vmaddr, &pmdval, ptl); in try_get_locked_pte()
93 void gmap_helper_zap_one_page(struct mm_struct *mm, unsigned long vmaddr) in gmap_helper_zap_one_page() argument
101 mmap_assert_locked(mm); in gmap_helper_zap_one_page()
104 vma = vma_lookup(mm, vmaddr); in gmap_helper_zap_one_page()
109 ptep = try_get_locked_pte(mm, vmaddr, &ptl); in gmap_helper_zap_one_page()
114 dec_mm_counter(mm, MM_SWAPENTS); in gmap_helper_zap_one_page()
116 pte_clear(mm, vmaddr, ptep); in gmap_helper_zap_one_page()
132 void gmap_helper_discard(struct mm_struct *mm, unsigned long vmaddr, unsigned long end) in gmap_helper_discard() argument
[all …]

12345678910>>...36