Home
last modified time | relevance | path

Searched refs:hmm_pfns (Results 1 – 10 of 10) sorted by relevance

/linux-6.6.21/mm/
Dhmm.c48 range->hmm_pfns[i] = cpu_flags; in hmm_pfns_fill()
122 const unsigned long hmm_pfns[], unsigned long npages, in hmm_range_need_fault() argument
139 required_fault |= hmm_pte_need_fault(hmm_vma_walk, hmm_pfns[i], in hmm_range_need_fault()
154 unsigned long *hmm_pfns; in hmm_vma_walk_hole() local
158 hmm_pfns = &range->hmm_pfns[i]; in hmm_vma_walk_hole()
160 hmm_range_need_fault(hmm_vma_walk, hmm_pfns, npages, 0); in hmm_vma_walk_hole()
188 unsigned long end, unsigned long hmm_pfns[], in hmm_vma_handle_pmd() argument
200 hmm_range_need_fault(hmm_vma_walk, hmm_pfns, npages, cpu_flags); in hmm_vma_handle_pmd()
206 hmm_pfns[i] = pfn | cpu_flags; in hmm_vma_handle_pmd()
212 unsigned long end, unsigned long hmm_pfns[], pmd_t pmd);
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_hmm.c182 hmm_range->hmm_pfns = pfns; in amdgpu_hmm_range_get_pages()
213 hmm_range->hmm_pfns += MAX_WALK_BYTE >> PAGE_SHIFT; in amdgpu_hmm_range_get_pages()
219 hmm_range->hmm_pfns = pfns; in amdgpu_hmm_range_get_pages()
247 kvfree(hmm_range->hmm_pfns); in amdgpu_hmm_range_get_pages_done()
Damdgpu_ttm.c736 WARN_ONCE(!range->hmm_pfns, "No user pages to check\n"); in amdgpu_ttm_tt_get_user_pages_done()
/linux-6.6.21/drivers/infiniband/core/
Dumem_odp.c390 range.hmm_pfns = &(umem_odp->pfn_list[pfn_start_idx]); in ib_umem_odp_map_dma_and_lock()
423 WARN_ON(range.hmm_pfns[pfn_index] & HMM_PFN_ERROR); in ib_umem_odp_map_dma_and_lock()
424 WARN_ON(!(range.hmm_pfns[pfn_index] & HMM_PFN_VALID)); in ib_umem_odp_map_dma_and_lock()
426 if (!(range.hmm_pfns[pfn_index] & HMM_PFN_VALID)) { in ib_umem_odp_map_dma_and_lock()
431 if (range.hmm_pfns[pfn_index] & HMM_PFN_WRITE) in ib_umem_odp_map_dma_and_lock()
435 hmm_order = hmm_pfn_to_map_order(range.hmm_pfns[pfn_index]); in ib_umem_odp_map_dma_and_lock()
448 umem_odp, dma_index, hmm_pfn_to_page(range.hmm_pfns[pfn_index]), in ib_umem_odp_map_dma_and_lock()
/linux-6.6.21/drivers/gpu/drm/nouveau/
Dnouveau_svm.c553 if (!(range->hmm_pfns[0] & HMM_PFN_VALID)) { in nouveau_hmm_convert_pfn()
558 page = hmm_pfn_to_page(range->hmm_pfns[0]); in nouveau_hmm_convert_pfn()
567 if (hmm_pfn_to_map_order(range->hmm_pfns[0])) { in nouveau_hmm_convert_pfn()
570 args->p.page = hmm_pfn_to_map_order(range->hmm_pfns[0]) + in nouveau_hmm_convert_pfn()
584 if (range->hmm_pfns[0] & HMM_PFN_WRITE) in nouveau_hmm_convert_pfn()
660 unsigned long hmm_pfns[1]; in nouveau_range_fault() local
664 .hmm_pfns = hmm_pfns, in nouveau_range_fault()
/linux-6.6.21/include/linux/
Dhmm.h96 unsigned long *hmm_pfns; member
/linux-6.6.21/Documentation/translations/zh_CN/mm/
Dhmm.rst148 range.hmm_pfns = ...;
/linux-6.6.21/lib/
Dtest_hmm.c209 unsigned long *pfns = range->hmm_pfns; in dmirror_do_fault()
335 .hmm_pfns = pfns, in dmirror_fault()
1156 dmirror_mkentry(dmirror, range, perm + i, range->hmm_pfns[i]); in dmirror_range_snapshot()
1176 .hmm_pfns = pfns, in dmirror_snapshot()
/linux-6.6.21/drivers/gpu/drm/amd/amdkfd/
Dkfd_svm.c161 unsigned long *hmm_pfns, uint32_t gpuidx) in svm_range_dma_map_dev() argument
181 page = hmm_pfn_to_page(hmm_pfns[i]); in svm_range_dma_map_dev()
185 addr[i] = (hmm_pfns[i] << PAGE_SHIFT) + in svm_range_dma_map_dev()
207 unsigned long *hmm_pfns) in svm_range_dma_map() argument
226 hmm_pfns, gpuidx); in svm_range_dma_map()
1704 hmm_range->hmm_pfns); in svm_range_validate_and_map()
/linux-6.6.21/Documentation/mm/
Dhmm.rst176 range.hmm_pfns = ...;