Lines Matching full:notifier
32 * DOC: MMU Notifier
34 * For coherent userptr handling registers an MMU notifier to inform the driver
70 struct amdgpu_bo *bo = container_of(mni, struct amdgpu_bo, notifier); in amdgpu_hmm_invalidate_gfx()
107 struct amdgpu_bo *bo = container_of(mni, struct amdgpu_bo, notifier); in amdgpu_hmm_invalidate_hsa()
122 * amdgpu_hmm_register - register a BO for notifier updates
135 r = mmu_interval_notifier_insert(&bo->notifier, current->mm, in amdgpu_hmm_register()
139 r = mmu_interval_notifier_insert(&bo->notifier, current->mm, addr, in amdgpu_hmm_register()
145 * mmu_interval_notifier_remove() when the notifier isn't properly in amdgpu_hmm_register()
148 bo->notifier.mm = NULL; in amdgpu_hmm_register()
154 * amdgpu_hmm_unregister - unregister a BO for notifier updates
158 * Remove any registration of mmu notifier updates from the buffer object.
162 if (!bo->notifier.mm) in amdgpu_hmm_unregister()
164 mmu_interval_notifier_remove(&bo->notifier); in amdgpu_hmm_unregister()
165 bo->notifier.mm = NULL; in amdgpu_hmm_unregister()
168 int amdgpu_hmm_range_get_pages(struct mmu_interval_notifier *notifier, in amdgpu_hmm_range_get_pages() argument
190 hmm_range->notifier = notifier; in amdgpu_hmm_range_get_pages()
208 hmm_range->notifier_seq = mmu_interval_read_begin(notifier); in amdgpu_hmm_range_get_pages()
251 r = mmu_interval_read_retry(hmm_range->notifier, in amdgpu_hmm_range_get_pages_done()