Searched refs:hmm_range (Results 1 – 17 of 17) sorted by relevance
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_hmm.c | 159 struct hmm_range **phmm_range) in amdgpu_hmm_range_get_pages() 161 struct hmm_range *hmm_range; in amdgpu_hmm_range_get_pages() local 168 hmm_range = kzalloc(sizeof(*hmm_range), GFP_KERNEL); in amdgpu_hmm_range_get_pages() 169 if (unlikely(!hmm_range)) in amdgpu_hmm_range_get_pages() 178 hmm_range->notifier = notifier; in amdgpu_hmm_range_get_pages() 179 hmm_range->default_flags = HMM_PFN_REQ_FAULT; in amdgpu_hmm_range_get_pages() 181 hmm_range->default_flags |= HMM_PFN_REQ_WRITE; in amdgpu_hmm_range_get_pages() 182 hmm_range->hmm_pfns = pfns; in amdgpu_hmm_range_get_pages() 183 hmm_range->start = start; in amdgpu_hmm_range_get_pages() 185 hmm_range->dev_private_owner = owner; in amdgpu_hmm_range_get_pages() [all …]
|
D | amdgpu_ttm.h | 46 struct hmm_range; 170 struct hmm_range **range); 172 struct hmm_range *range); 174 struct hmm_range *range); 178 struct hmm_range **range) in amdgpu_ttm_tt_get_user_pages() 183 struct hmm_range *range) in amdgpu_ttm_tt_discard_user_pages() 187 struct hmm_range *range) in amdgpu_ttm_tt_get_user_pages_done()
|
D | amdgpu_hmm.h | 37 struct hmm_range **phmm_range); 38 bool amdgpu_hmm_range_get_pages_done(struct hmm_range *hmm_range);
|
D | amdgpu_bo_list.h | 28 struct hmm_range; 42 struct hmm_range *range;
|
D | amdgpu_amdkfd.h | 71 struct hmm_range *range;
|
D | amdgpu_ttm.c | 661 struct hmm_range **range) in amdgpu_ttm_tt_get_user_pages() 711 struct hmm_range *range) in amdgpu_ttm_tt_discard_user_pages() 726 struct hmm_range *range) in amdgpu_ttm_tt_get_user_pages_done()
|
D | amdgpu_gem.c | 386 struct hmm_range *range; in amdgpu_gem_userptr_ioctl()
|
D | amdgpu_amdkfd_gpuvm.c | 1003 struct hmm_range *range; in init_user_pages()
|
/linux-6.6.21/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.6.21/include/linux/ |
D | hmm.h | 91 struct hmm_range { struct 105 int hmm_range_fault(struct hmm_range *range); argument
|
/linux-6.6.21/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.6.21/drivers/gpu/drm/nouveau/ |
D | nouveau_dmem.h | 29 struct hmm_range;
|
D | nouveau_svm.c | 541 struct hmm_range *range, in nouveau_hmm_convert_pfn() 661 struct hmm_range range = { in nouveau_range_fault()
|
/linux-6.6.21/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() 1039 static void dmirror_mkentry(struct dmirror *dmirror, struct hmm_range *range, in dmirror_mkentry() 1108 struct hmm_range *range, in dmirror_range_snapshot() 1175 struct hmm_range range = { in dmirror_snapshot()
|
/linux-6.6.21/drivers/infiniband/core/ |
D | umem_odp.c | 355 struct hmm_range range = {}; in ib_umem_odp_map_dma_and_lock()
|
/linux-6.6.21/Documentation/mm/ |
D | hmm.rst | 162 int hmm_range_fault(struct hmm_range *range); 170 struct hmm_range range; 214 The hmm_range struct has 2 fields, default_flags and pfn_flags_mask, that specify
|
/linux-6.6.21/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_svm.c | 1674 struct hmm_range *hmm_range; in svm_range_validate_and_map() local 1690 &hmm_range); in svm_range_validate_and_map() 1704 hmm_range->hmm_pfns); in svm_range_validate_and_map() 1710 if (!r && amdgpu_hmm_range_get_pages_done(hmm_range)) { in svm_range_validate_and_map()
|