/linux-6.6.21/mm/ |
D | userfaultfd.c | 23 struct vm_area_struct *find_dst_vma(struct mm_struct *dst_mm, in find_dst_vma() argument 33 dst_vma = find_vma(dst_mm, dst_start); in find_dst_vma() 76 struct mm_struct *dst_mm = dst_vma->vm_mm; in mfill_atomic_install_pte() local 94 dst_pte = pte_offset_map_lock(dst_mm, dst_pmd, dst_addr, &ptl); in mfill_atomic_install_pte() 127 inc_mm_counter(dst_mm, mm_counter(page)); in mfill_atomic_install_pte() 129 set_pte_at(dst_mm, dst_addr, dst_pte, _dst_pte); in mfill_atomic_install_pte() 298 struct mm_struct *dst_mm = dst_vma->vm_mm; in mfill_atomic_pte_poison() local 304 dst_pte = pte_offset_map_lock(dst_mm, dst_pmd, dst_addr, &ptl); in mfill_atomic_pte_poison() 318 set_pte_at(dst_mm, dst_addr, dst_pte, _dst_pte); in mfill_atomic_pte_poison() 363 struct mm_struct *dst_mm = dst_vma->vm_mm; in mfill_atomic_hugetlb() local [all …]
|
D | huge_memory.c | 1062 int copy_huge_pmd(struct mm_struct *dst_mm, struct mm_struct *src_mm, in copy_huge_pmd() argument 1076 pgtable = pte_alloc_one(dst_mm); in copy_huge_pmd() 1080 dst_ptl = pmd_lock(dst_mm, dst_pmd); in copy_huge_pmd() 1102 add_mm_counter(dst_mm, MM_ANONPAGES, HPAGE_PMD_NR); in copy_huge_pmd() 1103 mm_inc_nr_ptes(dst_mm); in copy_huge_pmd() 1104 pgtable_trans_huge_deposit(dst_mm, dst_pmd, pgtable); in copy_huge_pmd() 1107 set_pmd_at(dst_mm, addr, dst_pmd, pmd); in copy_huge_pmd() 1114 pte_free(dst_mm, pgtable); in copy_huge_pmd() 1128 mm_get_huge_zero_page(dst_mm); in copy_huge_pmd() 1139 pte_free(dst_mm, pgtable); in copy_huge_pmd() [all …]
|
D | memory.c | 766 copy_nonpresent_pte(struct mm_struct *dst_mm, struct mm_struct *src_mm, in copy_nonpresent_pte() argument 781 if (unlikely(list_empty(&dst_mm->mmlist))) { in copy_nonpresent_pte() 783 if (list_empty(&dst_mm->mmlist)) in copy_nonpresent_pte() 784 list_add(&dst_mm->mmlist, in copy_nonpresent_pte() 863 set_pte_at(dst_mm, addr, dst_pte, in copy_nonpresent_pte() 869 set_pte_at(dst_mm, addr, dst_pte, pte); in copy_nonpresent_pte() 1005 struct mm_struct *dst_mm = dst_vma->vm_mm; in copy_pte_range() local 1028 dst_pte = pte_alloc_map_lock(dst_mm, dst_pmd, addr, &dst_ptl); in copy_pte_range() 1061 ret = copy_nonpresent_pte(dst_mm, src_mm, in copy_pte_range() 1105 add_mm_rss_vec(dst_mm, rss); in copy_pte_range() [all …]
|
D | hugetlb.c | 6291 struct mm_struct *dst_mm = dst_vma->vm_mm; in hugetlb_mfill_atomic_pte() local 6307 ptl = huge_pte_lock(h, dst_mm, dst_pte); in hugetlb_mfill_atomic_pte() 6316 set_huge_pte_at(dst_mm, dst_addr, dst_pte, _dst_pte, in hugetlb_mfill_atomic_pte() 6426 ptl = huge_pte_lock(h, dst_mm, dst_pte); in hugetlb_mfill_atomic_pte() 6468 set_huge_pte_at(dst_mm, dst_addr, dst_pte, _dst_pte, huge_page_size(h)); in hugetlb_mfill_atomic_pte() 6470 hugetlb_count_add(pages_per_huge_page(h), dst_mm); in hugetlb_mfill_atomic_pte()
|
/linux-6.6.21/include/linux/ |
D | userfaultfd_k.h | 77 extern ssize_t mfill_atomic_copy(struct mm_struct *dst_mm, unsigned long dst_start, 80 extern ssize_t mfill_atomic_zeropage(struct mm_struct *dst_mm, 84 extern ssize_t mfill_atomic_continue(struct mm_struct *dst_mm, unsigned long dst_start, 87 extern ssize_t mfill_atomic_poison(struct mm_struct *dst_mm, unsigned long start, 90 extern int mwriteprotect_range(struct mm_struct *dst_mm,
|
D | huge_mm.h | 11 int copy_huge_pmd(struct mm_struct *dst_mm, struct mm_struct *src_mm, 15 int copy_huge_pud(struct mm_struct *dst_mm, struct mm_struct *src_mm,
|
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ttm.c | 300 struct amdgpu_res_cursor src_mm, dst_mm; in amdgpu_ttm_copy_mem_to_mem() local 310 amdgpu_res_first(dst->mem, dst->offset, size, &dst_mm); in amdgpu_ttm_copy_mem_to_mem() 318 cur_size = min3(src_mm.size, dst_mm.size, 256ULL << 20); in amdgpu_ttm_copy_mem_to_mem() 326 r = amdgpu_ttm_map_buffer(dst->bo, dst->mem, &dst_mm, in amdgpu_ttm_copy_mem_to_mem() 340 amdgpu_res_next(&dst_mm, cur_size); in amdgpu_ttm_copy_mem_to_mem()
|