Home
last modified time | relevance | path

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

/openbmc/linux/mm/
H A Dhmm.c48 range->hmm_pfns[i] = cpu_flags; in hmm_pfns_fill()
154 unsigned long *hmm_pfns; in hmm_vma_walk_hole() local
158 hmm_pfns = &range->hmm_pfns[i]; in hmm_vma_walk_hole()
206 hmm_pfns[i] = pfn | cpu_flags; in hmm_vma_handle_pmd()
327 unsigned long *hmm_pfns = in hmm_vma_walk_pmd() local
435 unsigned long *hmm_pfns; in hmm_vma_walk_pud() local
445 hmm_pfns = &range->hmm_pfns[i]; in hmm_vma_walk_pud()
457 hmm_pfns[i] = pfn | cpu_flags; in hmm_vma_walk_pud()
491 pfn_req_flags = range->hmm_pfns[i]; in hmm_vma_walk_hugetlb_entry()
516 range->hmm_pfns[i] = pfn | cpu_flags; in hmm_vma_walk_hugetlb_entry()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_hmm.c194 hmm_range->hmm_pfns = pfns; in amdgpu_hmm_range_get_pages()
225 hmm_range->hmm_pfns += MAX_WALK_BYTE >> PAGE_SHIFT; in amdgpu_hmm_range_get_pages()
231 hmm_range->hmm_pfns = pfns; in amdgpu_hmm_range_get_pages()
259 kvfree(hmm_range->hmm_pfns); in amdgpu_hmm_range_get_pages_done()
H A Damdgpu_ttm.c751 WARN_ONCE(!range->hmm_pfns, "No user pages to check\n"); in amdgpu_ttm_tt_get_user_pages_done()
/openbmc/linux/drivers/infiniband/core/
H A 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()
/openbmc/linux/include/linux/
H A Dhmm.h96 unsigned long *hmm_pfns; member
/openbmc/linux/drivers/gpu/drm/nouveau/
H A 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()
/openbmc/linux/Documentation/translations/zh_CN/mm/
H A Dhmm.rst148 range.hmm_pfns = ...;
/openbmc/linux/lib/
H A 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()
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/
H A 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()
1730 hmm_range->hmm_pfns); in svm_range_validate_and_map()
/openbmc/linux/Documentation/mm/
H A Dhmm.rst176 range.hmm_pfns = ...;