Home
last modified time | relevance | path

Searched refs:hmm_range (Results 1 – 17 of 17) sorted by relevance

/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_hmm.c159 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 …]
Damdgpu_ttm.h46 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()
Damdgpu_hmm.h37 struct hmm_range **phmm_range);
38 bool amdgpu_hmm_range_get_pages_done(struct hmm_range *hmm_range);
Damdgpu_bo_list.h28 struct hmm_range;
42 struct hmm_range *range;
Damdgpu_amdkfd.h71 struct hmm_range *range;
Damdgpu_ttm.c661 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()
Damdgpu_gem.c386 struct hmm_range *range; in amdgpu_gem_userptr_ioctl()
Damdgpu_amdkfd_gpuvm.c1003 struct hmm_range *range; in init_user_pages()
/linux-6.6.21/mm/
Dhmm.c32 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/
Dhmm.h91 struct hmm_range { struct
105 int hmm_range_fault(struct hmm_range *range); argument
/linux-6.6.21/Documentation/translations/zh_CN/mm/
Dhmm.rst129 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/
Dnouveau_dmem.h29 struct hmm_range;
Dnouveau_svm.c541 struct hmm_range *range, in nouveau_hmm_convert_pfn()
661 struct hmm_range range = { in nouveau_range_fault()
/linux-6.6.21/lib/
Dtest_hmm.c207 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/
Dumem_odp.c355 struct hmm_range range = {}; in ib_umem_odp_map_dma_and_lock()
/linux-6.6.21/Documentation/mm/
Dhmm.rst162 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/
Dkfd_svm.c1674 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()