Home
last modified time | relevance | path

Searched defs:mm (Results 1 – 25 of 539) sorted by relevance

12345678910>>...22

/linux/arch/powerpc/include/asm/
H A Dmmu_context.h45 static inline bool mm_iommu_is_devmem(struct mm_struct *mm, unsigned long hpa, in mm_iommu_is_devmem()
50 static inline void mm_iommu_init(struct mm_struct *mm) { } in mm_iommu_init()
72 static inline int alloc_extended_context(struct mm_struct *mm, in alloc_extended_context()
88 static inline bool need_extra_context(struct mm_struct *mm, unsigned long ea) in need_extra_context()
105 static inline int alloc_extended_context(struct mm_struct *mm, in alloc_extended_context()
113 static inline bool need_extra_context(struct mm_struct *mm, unsigned long ea) in need_extra_context()
120 static inline void inc_mm_active_cpus(struct mm_struct *mm) in inc_mm_active_cpus()
125 static inline void dec_mm_active_cpus(struct mm_struct *mm) in dec_mm_active_cpus()
131 static inline void mm_context_add_copro(struct mm_struct *mm) in mm_context_add_copro()
142 static inline void mm_context_remove_copro(struct mm_struct *mm) in mm_context_remove_copro()
[all …]
/linux/include/asm-generic/
H A Dpgalloc.h19 static inline pte_t *__pte_alloc_one_kernel_noprof(struct mm_struct *mm) in __pte_alloc_one_kernel_noprof()
43 static inline pte_t *pte_alloc_one_kernel_noprof(struct mm_struct *mm) in pte_alloc_one_kernel_noprof()
55 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
72 static inline pgtable_t __pte_alloc_one_noprof(struct mm_struct *mm, gfp_t gfp) in __pte_alloc_one_noprof()
97 static inline pgtable_t pte_alloc_one_noprof(struct mm_struct *mm) in pte_alloc_one_noprof()
114 static inline void pte_free(struct mm_struct *mm, struct page *pte_page) in pte_free()
136 static inline pmd_t *pmd_alloc_one_noprof(struct mm_struct *mm, unsigned long addr) in pmd_alloc_one_noprof()
160 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
173 static inline pud_t *__pud_alloc_one_noprof(struct mm_struct *mm, unsigned long addr) in __pud_alloc_one_noprof()
204 static inline pud_t *pud_alloc_one_noprof(struct mm_struct *mm, unsigned long addr) in pud_alloc_one_noprof()
[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()
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()
22 static inline void paravirt_alloc_pte(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_pte()
23 static inline void paravirt_alloc_pmd(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_pmd()
26 static inline void paravirt_alloc_pud(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_pud()
27 static inline void paravirt_alloc_p4d(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_p4d()
62 static inline void pmd_populate_kernel(struct mm_struct *mm, in pmd_populate_kernel()
69 static inline void pmd_populate_kernel_safe(struct mm_struct *mm, in pmd_populate_kernel_safe()
76 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
[all …]
/linux/include/linux/
H A Dksm.h37 static inline void ksm_map_zero_page(struct mm_struct *mm) in ksm_map_zero_page()
43 static inline void ksm_might_unmap_zero_page(struct mm_struct *mm, pte_t pte) in ksm_might_unmap_zero_page()
51 static inline long mm_ksm_zero_pages(struct mm_struct *mm) in mm_ksm_zero_pages()
56 static inline void ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork()
69 static inline int ksm_execve(struct mm_struct *mm) in ksm_execve()
77 static inline void ksm_exit(struct mm_struct *mm) in ksm_exit()
106 static inline vm_flags_t ksm_vma_flags(struct mm_struct *mm, in ksm_vma_flags()
112 static inline int ksm_disable(struct mm_struct *mm) in ksm_disable()
117 static inline void ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork()
121 static inline int ksm_execve(struct mm_struct *mm) in ksm_execve()
[all …]
H A Dmmu_notifier.h231 struct mm_struct *mm; member
251 struct mm_struct *mm; member
263 struct mm_struct *mm; member
271 static inline int mm_has_notifiers(struct mm_struct *mm) in mm_has_notifiers()
279 mmu_notifier_get(const struct mmu_notifier_ops *ops, struct mm_struct *mm) in mmu_notifier_get()
400 static inline void mmu_notifier_release(struct mm_struct *mm) in mmu_notifier_release()
406 static inline int mmu_notifier_clear_flush_young(struct mm_struct *mm, in mmu_notifier_clear_flush_young()
415 static inline int mmu_notifier_clear_young(struct mm_struct *mm, in mmu_notifier_clear_young()
424 static inline int mmu_notifier_test_young(struct mm_struct *mm, in mmu_notifier_test_young()
476 static inline void mmu_notifier_arch_invalidate_secondary_tlbs(struct mm_struct *mm, in mmu_notifier_arch_invalidate_secondary_tlbs()
[all …]
/linux/arch/m68k/include/asm/
H A Dmotorola_pgalloc.h27 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm) in pte_alloc_one_kernel()
32 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
37 static inline pgtable_t pte_alloc_one(struct mm_struct *mm) in pte_alloc_one()
42 static inline void pte_free(struct mm_struct *mm, pgtable_t pgtable) in pte_free()
54 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one()
59 static inline int pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
71 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
76 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
82 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate_kernel()
87 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, pgtable_t page) in pmd_populate()
[all …]
H A Dmmu_context.h28 static inline void get_mmu_context(struct mm_struct *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()
85 struct mm_struct *mm) in activate_mm()
96 struct mm_struct *mm; in load_ksp_mmu() local
179 struct mm_struct *mm) in init_new_context()
187 static inline void get_mmu_context(struct mm_struct *mm) in get_mmu_context()
195 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
201 static inline void activate_context(struct mm_struct *mm) in activate_context()
228 struct mm_struct *mm) in init_new_context()
[all …]
H A Dmcf_pgalloc.h8 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
15 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm) in pte_alloc_one_kernel()
35 #define pmd_populate(mm, pmd, pte) (pmd_val(*pmd) = (unsigned long)(pte)) argument
48 static inline pgtable_t pte_alloc_one(struct mm_struct *mm) in pte_alloc_one()
64 static inline void pte_free(struct mm_struct *mm, pgtable_t pgtable) in pte_free()
76 #define pmd_free(mm, pmd) BUG() argument
78 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
83 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
/linux/rust/helpers/
H A Dmm.c6 __rust_helper void rust_helper_mmgrab(struct mm_struct *mm) in rust_helper_mmgrab() argument
11 __rust_helper void rust_helper_mmdrop(struct mm_struct *mm) in rust_helper_mmdrop() argument
16 __rust_helper void rust_helper_mmget(struct mm_struct *mm) in rust_helper_mmget() argument
21 __rust_helper bool rust_helper_mmget_not_zero(struct mm_struct *mm) in rust_helper_mmget_not_zero() argument
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/powerpc/include/asm/book3s/64/
H A Dpgalloc.h25 static inline pgd_t *radix__pgd_alloc(struct mm_struct *mm) in radix__pgd_alloc()
39 static inline void radix__pgd_free(struct mm_struct *mm, pgd_t *pgd) in radix__pgd_free()
48 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
81 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
88 static inline void p4d_populate(struct mm_struct *mm, p4d_t *pgd, pud_t *pud) in p4d_populate()
93 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long addr) in pud_alloc_one()
126 static inline void pud_free(struct mm_struct *mm, pud_t *pud) in pud_free()
131 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
142 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr) in pmd_alloc_one()
147 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
[all …]
/linux/arch/x86/kernel/
H A Dldt.c42 void load_mm_ldt(struct mm_struct *mm) in load_mm_ldt()
138 struct mm_struct *mm = __mm; in flush_ldt() local
189 static void do_sanity_check(struct mm_struct *mm, in do_sanity_check()
234 static void map_ldt_struct_to_user(struct mm_struct *mm) in map_ldt_struct_to_user()
247 static void sanity_check_ldt_mapping(struct mm_struct *mm) in sanity_check_ldt_mapping()
264 static void map_ldt_struct_to_user(struct mm_struct *mm) in map_ldt_struct_to_user()
272 static void sanity_check_ldt_mapping(struct mm_struct *mm) in sanity_check_ldt_mapping()
288 map_ldt_struct(struct mm_struct *mm, struct ldt_struct *ldt, int slot) in map_ldt_struct()
349 static void unmap_ldt_struct(struct mm_struct *mm, struct ldt_struct *ldt) in unmap_ldt_struct()
383 map_ldt_struct(struct mm_struct *mm, struct ldt_struct *ldt, int slot) in map_ldt_struct()
[all …]
/linux/mm/
H A Dmmap_lock.c26 void __mmap_lock_do_trace_start_locking(struct mm_struct *mm, bool write) in __mmap_lock_do_trace_start_locking() argument
32 void __mmap_lock_do_trace_acquire_returned(struct mm_struct *mm, bool write, in __mmap_lock_do_trace_acquire_returned() argument
39 void __mmap_lock_do_trace_released(struct mm_struct *mm, bool write) in __mmap_lock_do_trace_released() argument
163 vma_start_read(struct mm_struct * mm,struct vm_area_struct * vma) vma_start_read() argument
245 lock_vma_under_rcu(struct mm_struct * mm,unsigned long address) lock_vma_under_rcu() argument
293 lock_next_vma_under_mmap_lock(struct mm_struct * mm,struct vma_iterator * vmi,unsigned long from_addr) lock_next_vma_under_mmap_lock() argument
318 lock_next_vma(struct mm_struct * mm,struct vma_iterator * vmi,unsigned long from_addr) lock_next_vma() argument
388 get_mmap_lock_carefully(struct mm_struct * mm,struct pt_regs * regs) get_mmap_lock_carefully() argument
402 mmap_upgrade_trylock(struct mm_struct * mm) mmap_upgrade_trylock() argument
415 upgrade_mmap_lock_carefully(struct mm_struct * mm,struct pt_regs * regs) upgrade_mmap_lock_carefully() argument
445 lock_mm_and_find_vma(struct mm_struct * mm,unsigned long addr,struct pt_regs * regs) lock_mm_and_find_vma() argument
507 lock_mm_and_find_vma(struct mm_struct * mm,unsigned long addr,struct pt_regs * regs) lock_mm_and_find_vma() argument
[all...]
H A Dmmu_notifier.c264 struct mm_struct *mm) in mn_itree_release()
302 struct mm_struct *mm) in mn_hlist_release()
350 void __mmu_notifier_release(struct mm_struct *mm) in __mmu_notifier_release()
367 int __mmu_notifier_clear_flush_young(struct mm_struct *mm, in __mmu_notifier_clear_flush_young()
387 int __mmu_notifier_clear_young(struct mm_struct *mm, in __mmu_notifier_clear_young()
407 int __mmu_notifier_test_young(struct mm_struct *mm, in __mmu_notifier_test_young()
573 void __mmu_notifier_arch_invalidate_secondary_tlbs(struct mm_struct *mm, in __mmu_notifier_arch_invalidate_secondary_tlbs()
597 struct mm_struct *mm) in __mmu_notifier_register()
699 struct mm_struct *mm) in mmu_notifier_register()
711 find_get_mmu_notifier(struct mm_struct *mm, const struct mmu_notifier_ops *ops) in find_get_mmu_notifier()
[all …]
/linux/include/linux/sched/
H A Dmm.h35 static inline void mmgrab(struct mm_struct *mm) in mmgrab()
47 static inline void mmdrop(struct mm_struct *mm) in mmdrop()
65 struct mm_struct *mm = container_of(rhp, struct mm_struct, delayed_drop); in __mmdrop_delayed() local
74 static inline void mmdrop_sched(struct mm_struct *mm) in mmdrop_sched()
81 static inline void mmdrop_sched(struct mm_struct *mm) in mmdrop_sched()
88 static inline void mmgrab_lazy_tlb(struct mm_struct *mm) in mmgrab_lazy_tlb()
94 static inline void mmdrop_lazy_tlb(struct mm_struct *mm) in mmdrop_lazy_tlb()
107 static inline void mmdrop_lazy_tlb_sched(struct mm_struct *mm) in mmdrop_lazy_tlb_sched()
131 static inline void mmget(struct mm_struct *mm) in mmget()
136 static inline bool mmget_not_zero(struct mm_struct *mm) in mmget_not_zero()
[all …]
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_mqd_manager_vi.c48 static void update_cu_mask(struct mqd_manager *mm, void *mqd, in update_cu_mask()
79 static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm, in allocate_mqd()
92 static void init_mqd(struct mqd_manager *mm, void **mqd, in init_mqd()
158 static int load_mqd(struct mqd_manager *mm, void *mqd, in load_mqd()
171 static void __update_mqd(struct mqd_manager *mm, void *mqd, in __update_mqd()
241 static bool check_preemption_failed(struct mqd_manager *mm, void *mqd) in check_preemption_failed()
248 static void update_mqd(struct mqd_manager *mm, void *mqd, in update_mqd()
255 static int get_wave_state(struct mqd_manager *mm, void *mqd, in get_wave_state()
278 static void get_checkpoint_info(struct mqd_manager *mm, void *mqd, u32 *ctl_stack_size) in get_checkpoint_info()
284 static void checkpoint_mqd(struct mqd_manager *mm, void *mqd, void *mqd_dst, void *ctl_stack_dst) in checkpoint_mqd()
[all …]
H A Dkfd_mqd_manager_cik.c45 static void update_cu_mask(struct mqd_manager *mm, void *mqd, in update_cu_mask()
76 static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm, in allocate_mqd()
89 static void init_mqd(struct mqd_manager *mm, void **mqd, in init_mqd()
143 static void init_mqd_sdma(struct mqd_manager *mm, void **mqd, in init_mqd_sdma()
160 static int load_mqd(struct mqd_manager *mm, void *mqd, uint32_t pipe_id, in load_mqd()
173 static void __update_mqd(struct mqd_manager *mm, void *mqd, in __update_mqd()
210 static bool check_preemption_failed(struct mqd_manager *mm, void *mqd) in check_preemption_failed()
217 static void update_mqd(struct mqd_manager *mm, void *mqd, in update_mqd()
224 static void update_mqd_sdma(struct mqd_manager *mm, void *mqd, in update_mqd_sdma()
252 static void checkpoint_mqd(struct mqd_manager *mm, void *mqd, void *mqd_dst, void *ctl_stack_dst) in checkpoint_mqd()
[all …]
H A Dkfd_mqd_manager_v9.c41 static uint64_t mqd_stride_v9(struct mqd_manager *mm, in mqd_stride_v9() argument
62 update_cu_mask(struct mqd_manager * mm,void * mqd,struct mqd_update_info * minfo,uint32_t inst) update_cu_mask() argument
126 allocate_mqd(struct mqd_manager * mm,struct queue_properties * q) allocate_mqd() argument
177 init_mqd(struct mqd_manager * mm,void ** mqd,struct kfd_mem_obj * mqd_mem_obj,uint64_t * gart_addr,struct queue_properties * q) init_mqd() argument
248 load_mqd(struct mqd_manager * mm,void * mqd,uint32_t pipe_id,uint32_t queue_id,struct queue_properties * p,struct mm_struct * mms) load_mqd() argument
260 update_mqd(struct mqd_manager * mm,void * mqd,struct queue_properties * q,struct mqd_update_info * minfo) update_mqd() argument
343 check_preemption_failed(struct mqd_manager * mm,void * mqd) check_preemption_failed() argument
353 get_wave_state(struct mqd_manager * mm,void * mqd,struct queue_properties * q,void __user * ctl_stack,u32 * ctl_stack_used_size,u32 * save_area_used_size) get_wave_state() argument
389 get_checkpoint_info(struct mqd_manager * mm,void * mqd,u32 * ctl_stack_size) get_checkpoint_info() argument
396 checkpoint_mqd(struct mqd_manager * mm,void * mqd,void * mqd_dst,void * ctl_stack_dst) checkpoint_mqd() argument
408 checkpoint_mqd_v9_4_3(struct mqd_manager * mm,void * mqd,void * mqd_dst,void * ctl_stack_dst) checkpoint_mqd_v9_4_3() argument
426 restore_mqd(struct mqd_manager * mm,void ** mqd,struct kfd_mem_obj * mqd_mem_obj,uint64_t * gart_addr,struct queue_properties * qp,const void * mqd_src,const void * ctl_stack_src,u32 ctl_stack_size) restore_mqd() argument
458 init_mqd_hiq(struct mqd_manager * mm,void ** mqd,struct kfd_mem_obj * mqd_mem_obj,uint64_t * gart_addr,struct queue_properties * q) init_mqd_hiq() argument
472 destroy_hiq_mqd(struct mqd_manager * mm,void * mqd,enum kfd_preempt_type type,unsigned int timeout,uint32_t pipe_id,uint32_t queue_id) destroy_hiq_mqd() argument
491 init_mqd_sdma(struct mqd_manager * mm,void ** mqd,struct kfd_mem_obj * mqd_mem_obj,uint64_t * gart_addr,struct queue_properties * q) init_mqd_sdma() argument
510 update_mqd_sdma(struct mqd_manager * mm,void * mqd,struct queue_properties * q,struct mqd_update_info * minfo) update_mqd_sdma() argument
541 checkpoint_mqd_sdma(struct mqd_manager * mm,void * mqd,void * mqd_dst,void * ctl_stack_dst) checkpoint_mqd_sdma() argument
553 restore_mqd_sdma(struct mqd_manager * mm,void ** mqd,struct kfd_mem_obj * mqd_mem_obj,uint64_t * gart_addr,struct queue_properties * qp,const void * mqd_src,const void * ctl_stack_src,const u32 ctl_stack_size) restore_mqd_sdma() argument
577 init_mqd_hiq_v9_4_3(struct mqd_manager * mm,void ** mqd,struct kfd_mem_obj * mqd_mem_obj,uint64_t * gart_addr,struct queue_properties * q) init_mqd_hiq_v9_4_3() argument
611 hiq_load_mqd_kiq_v9_4_3(struct mqd_manager * mm,void * mqd,uint32_t pipe_id,uint32_t queue_id,struct queue_properties * p,struct mm_struct * mms) hiq_load_mqd_kiq_v9_4_3() argument
635 destroy_hiq_mqd_v9_4_3(struct mqd_manager * mm,void * mqd,enum kfd_preempt_type type,unsigned int timeout,uint32_t pipe_id,uint32_t queue_id) destroy_hiq_mqd_v9_4_3() argument
662 check_preemption_failed_v9_4_3(struct mqd_manager * mm,void * mqd) check_preemption_failed_v9_4_3() argument
692 init_mqd_v9_4_3(struct mqd_manager * mm,void ** mqd,struct kfd_mem_obj * mqd_mem_obj,uint64_t * gart_addr,struct queue_properties * q) init_mqd_v9_4_3() argument
763 update_mqd_v9_4_3(struct mqd_manager * mm,void * mqd,struct queue_properties * q,struct mqd_update_info * minfo) update_mqd_v9_4_3() argument
802 restore_mqd_v9_4_3(struct mqd_manager * mm,void ** mqd,struct kfd_mem_obj * mqd_mem_obj,uint64_t * gart_addr,struct queue_properties * qp,const void * mqd_src,const void * ctl_stack_src,u32 ctl_stack_size) restore_mqd_v9_4_3() argument
842 destroy_mqd_v9_4_3(struct mqd_manager * mm,void * mqd,enum kfd_preempt_type type,unsigned int timeout,uint32_t pipe_id,uint32_t queue_id) destroy_mqd_v9_4_3() argument
870 load_mqd_v9_4_3(struct mqd_manager * mm,void * mqd,uint32_t pipe_id,uint32_t queue_id,struct queue_properties * p,struct mm_struct * mms) load_mqd_v9_4_3() argument
897 get_wave_state_v9_4_3(struct mqd_manager * mm,void * mqd,struct queue_properties * q,void __user * ctl_stack,u32 * ctl_stack_used_size,u32 * save_area_used_size) get_wave_state_v9_4_3() argument
[all...]
H A Dkfd_mqd_manager.c49 struct kfd_mem_obj *allocate_hiq_mqd(struct mqd_manager *mm, struct queue_properties *q) in allocate_hiq_mqd()
65 struct kfd_mem_obj *allocate_sdma_mqd(struct mqd_manager *mm, in allocate_sdma_mqd()
93 void free_mqd_hiq_sdma(struct mqd_manager *mm, void *mqd, in free_mqd_hiq_sdma()
100 void mqd_symmetrically_map_cu_mask(struct mqd_manager *mm, in mqd_symmetrically_map_cu_mask()
210 int kfd_hiq_load_mqd_kiq(struct mqd_manager *mm, void *mqd, in kfd_hiq_load_mqd_kiq()
218 int kfd_destroy_mqd_cp(struct mqd_manager *mm, void *mqd, in kfd_destroy_mqd_cp()
226 void kfd_free_mqd_cp(struct mqd_manager *mm, void *mqd, in kfd_free_mqd_cp()
237 bool kfd_is_occupied_cp(struct mqd_manager *mm, void *mqd, in kfd_is_occupied_cp()
245 int kfd_load_mqd_sdma(struct mqd_manager *mm, void *mqd, in kfd_load_mqd_sdma()
258 int kfd_destroy_mqd_sdma(struct mqd_manager *mm, void *mqd, in kfd_destroy_mqd_sdma()
[all …]
H A Dkfd_mqd_manager_v10.c45 static void update_cu_mask(struct mqd_manager *mm, void *mqd, in update_cu_mask()
76 static struct kfd_mem_obj *allocate_mqd(struct mqd_manager *mm, in allocate_mqd()
89 static void init_mqd(struct mqd_manager *mm, void **mqd, in init_mqd()
151 static int load_mqd(struct mqd_manager *mm, void *mqd, in load_mqd()
165 static void update_mqd(struct mqd_manager *mm, void *mqd, in update_mqd()
230 static bool check_preemption_failed(struct mqd_manager *mm, void *mqd) in check_preemption_failed()
237 static int get_wave_state(struct mqd_manager *mm, void *mqd, in get_wave_state()
275 static void checkpoint_mqd(struct mqd_manager *mm, void *mqd, void *mqd_dst, void *ctl_stack_dst) in checkpoint_mqd()
284 static void restore_mqd(struct mqd_manager *mm, void **mqd, in restore_mqd()
311 static void init_mqd_hiq(struct mqd_manager *mm, void **mqd, in init_mqd_hiq()
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_buddy.c27 static struct drm_buddy_block *drm_block_alloc(struct drm_buddy *mm, in drm_block_alloc()
50 static void drm_block_free(struct drm_buddy *mm, in drm_block_free()
93 static void rbtree_insert(struct drm_buddy *mm, in rbtree_insert()
102 static void rbtree_remove(struct drm_buddy *mm, in rbtree_remove()
126 static void mark_allocated(struct drm_buddy *mm, in mark_allocated()
135 static void mark_free(struct drm_buddy *mm, in mark_free()
147 static void mark_split(struct drm_buddy *mm, in mark_split()
181 static unsigned int __drm_buddy_free(struct drm_buddy *mm, in __drm_buddy_free()
225 static int __force_merge(struct drm_buddy *mm, in __force_merge()
299 int drm_buddy_init(struct drm_buddy *mm, u64 size, u64 chunk_size) in drm_buddy_init()
[all …]
/linux/arch/arm/include/asm/
H A Dpgalloc.h26 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
37 #define pmd_alloc_one(mm,addr) ({ BUG(); ((pmd_t *)2); }) argument
38 #define pmd_free(mm, pmd) do { } while (0) argument
41 #define pud_populate(mm,pmd,pte) do { } while (0) argument
43 #define pud_populate(mm,pmd,pte) BUG() argument
78 pte_alloc_one_kernel(struct mm_struct *mm) in pte_alloc_one_kernel()
95 pte_alloc_one(struct mm_struct *mm) in pte_alloc_one()
125 pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmdp, pte_t *ptep) in pmd_populate_kernel()
134 pmd_populate(struct mm_struct *mm, pmd_t *pmdp, pgtable_t ptep) in pmd_populate()
/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()
46 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
52 get_new_mmu_context(struct mm_struct *mm, unsigned long cpu, bool *need_flush) in get_new_mmu_context()
67 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context()
129 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
134 #define deactivate_mm(task, mm) do { } while (0) argument
141 drop_mmu_context(struct mm_struct *mm, unsigned int cpu) in drop_mmu_context()
/linux/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) in p4d_populate()
23 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long addr) in pud_alloc_one()
29 static inline void pud_free(struct mm_struct *mm, pud_t *pud) in pud_free()
34 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
39 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, in pmd_populate_kernel()
45 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
51 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr) in pmd_alloc_one()
57 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
/linux/kernel/
H A Dfork.c560 void dup_mm_exe_file(struct mm_struct *mm, struct mm_struct *oldmm) in dup_mm_exe_file()
575 static inline int mm_alloc_pgd(struct mm_struct *mm) in mm_alloc_pgd()
583 static inline void mm_free_pgd(struct mm_struct *mm) in mm_free_pgd()
588 #define mm_alloc_pgd(mm) (0) argument
589 #define mm_free_pgd(mm) argument
595 static inline int mm_alloc_id(struct mm_struct *mm) in mm_alloc_id()
606 static inline void mm_free_id(struct mm_struct *mm) in mm_free_id()
618 static inline int mm_alloc_id(struct mm_struct *mm) { return 0; } in mm_alloc_id()
619 static inline void mm_free_id(struct mm_struct *mm) {} in mm_free_id()
622 static void check_mm(struct mm_struct *mm) in check_mm()
[all …]
/linux/arch/arm64/include/asm/
H A Dpkeys.h37 static inline int execute_only_pkey(struct mm_struct *mm) in execute_only_pkey()
43 #define mm_pkey_allocation_map(mm) (mm)->context.pkey_allocation_map argument
44 #define mm_set_pkey_allocated(mm, pkey) do { \ argument
47 #define mm_set_pkey_free(mm, pkey) do { \ argument
51 static inline bool mm_pkey_is_allocated(struct mm_struct *mm, int pkey) in mm_pkey_is_allocated()
67 static inline int mm_pkey_alloc(struct mm_struct *mm) in mm_pkey_alloc()
96 static inline int mm_pkey_free(struct mm_struct *mm, int pkey) in mm_pkey_free()

12345678910>>...22