Searched refs:hmm_range (Results 1 – 16 of 16) sorted by relevance
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_mn.c | 162 struct hmm_range **phmm_range, bool readonly, in amdgpu_hmm_range_get_pages() 165 struct hmm_range *hmm_range; in amdgpu_hmm_range_get_pages() local 171 hmm_range = kzalloc(sizeof(*hmm_range), GFP_KERNEL); in amdgpu_hmm_range_get_pages() 172 if (unlikely(!hmm_range)) in amdgpu_hmm_range_get_pages() 181 hmm_range->notifier = notifier; in amdgpu_hmm_range_get_pages() 182 hmm_range->default_flags = HMM_PFN_REQ_FAULT; in amdgpu_hmm_range_get_pages() 184 hmm_range->default_flags |= HMM_PFN_REQ_WRITE; in amdgpu_hmm_range_get_pages() 185 hmm_range->hmm_pfns = pfns; in amdgpu_hmm_range_get_pages() 186 hmm_range->start = start; in amdgpu_hmm_range_get_pages() 187 hmm_range->end = start + npages * PAGE_SIZE; in amdgpu_hmm_range_get_pages() [all …]
|
D | amdgpu_mn.h | 36 struct hmm_range **phmm_range, bool readonly, 38 int amdgpu_hmm_range_get_pages_done(struct hmm_range *hmm_range);
|
D | amdgpu_ttm.h | 42 struct hmm_range; 155 struct hmm_range **range); 157 struct hmm_range *range); 161 struct hmm_range **range) in amdgpu_ttm_tt_get_user_pages() 166 struct hmm_range *range) in amdgpu_ttm_tt_get_user_pages_done()
|
D | amdgpu_bo_list.h | 29 struct hmm_range; 41 struct hmm_range *range;
|
D | amdgpu_gem.c | 381 struct hmm_range *range; in amdgpu_gem_userptr_ioctl()
|
D | amdgpu_ttm.c | 659 struct hmm_range **range) in amdgpu_ttm_tt_get_user_pages() 714 struct hmm_range *range) in amdgpu_ttm_tt_get_user_pages_done()
|
D | amdgpu_amdkfd_gpuvm.c | 989 struct hmm_range *range; in init_user_pages() 2391 struct hmm_range *range; in update_invalid_user_pages()
|
/linux-6.1.9/mm/ |
D | hmm.c | 32 struct hmm_range *range; 43 struct hmm_range *range, unsigned long cpu_flags) in hmm_pfns_fill() 90 struct hmm_range *range = hmm_vma_walk->range; in hmm_pte_need_fault() 125 struct hmm_range *range = hmm_vma_walk->range; in hmm_range_need_fault() 151 struct hmm_range *range = hmm_vma_walk->range; in hmm_vma_walk_hole() 176 static inline unsigned long pmd_to_hmm_pfn_flags(struct hmm_range *range, in pmd_to_hmm_pfn_flags() 192 struct hmm_range *range = hmm_vma_walk->range; in hmm_vma_handle_pmd() 215 static inline unsigned long pte_to_hmm_pfn_flags(struct hmm_range *range, in pte_to_hmm_pfn_flags() 228 struct hmm_range *range = hmm_vma_walk->range; in hmm_vma_handle_pte() 326 struct hmm_range *range = hmm_vma_walk->range; in hmm_vma_walk_pmd() [all …]
|
/linux-6.1.9/include/linux/ |
D | hmm.h | 91 struct hmm_range { struct 105 int hmm_range_fault(struct hmm_range *range); argument
|
/linux-6.1.9/Documentation/translations/zh_CN/mm/ |
D | hmm.rst | 129 int hmm_range_fault(struct hmm_range *range); 142 struct hmm_range range; 184 hmm_range 结构有 2 个字段,default_flags 和 pfn_flags_mask,它们指定整个范围
|
/linux-6.1.9/drivers/gpu/drm/nouveau/ |
D | nouveau_dmem.h | 29 struct hmm_range;
|
D | nouveau_svm.c | 540 struct hmm_range *range, in nouveau_hmm_convert_pfn() 660 struct hmm_range range = { in nouveau_range_fault()
|
/linux-6.1.9/lib/ |
D | test_hmm.c | 207 static int dmirror_do_fault(struct dmirror *dmirror, struct hmm_range *range) in dmirror_do_fault() 288 struct hmm_range *range) in dmirror_range_fault() 333 struct hmm_range range = { in dmirror_fault() 1045 static void dmirror_mkentry(struct dmirror *dmirror, struct hmm_range *range, in dmirror_mkentry() 1114 struct hmm_range *range, in dmirror_range_snapshot() 1181 struct hmm_range range = { in dmirror_snapshot()
|
/linux-6.1.9/drivers/infiniband/core/ |
D | umem_odp.c | 355 struct hmm_range range = {}; in ib_umem_odp_map_dma_and_lock()
|
/linux-6.1.9/Documentation/mm/ |
D | hmm.rst | 164 int hmm_range_fault(struct hmm_range *range); 181 struct hmm_range range; 225 The hmm_range struct has 2 fields, default_flags and pfn_flags_mask, that specify
|
/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_svm.c | 1591 struct hmm_range *hmm_range; in svm_range_validate_and_map() local 1609 addr, npages, &hmm_range, in svm_range_validate_and_map() 1619 hmm_range->hmm_pfns); in svm_range_validate_and_map() 1626 if (amdgpu_hmm_range_get_pages_done(hmm_range)) { in svm_range_validate_and_map()
|