Home
last modified time | relevance | path

Searched refs:uvma (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/gpu/drm/xe/
H A Dxe_userptr.c24 * @uvma: The userptr vma
34 int xe_vma_userptr_check_repin(struct xe_userptr_vma *uvma) in xe_vma_userptr_check_repin() argument
36 return mmu_interval_check_retry(&uvma->userptr.notifier, in xe_vma_userptr_check_repin()
37 uvma->userptr.pages.notifier_seq) ? in xe_vma_userptr_check_repin()
61 static bool __xe_vma_userptr_lockdep(struct xe_userptr_vma *uvma) in xe_vma_userptr_pin_pages()
63 struct xe_vma *vma = &uvma->vma; in xe_vma_userptr_pin_pages()
71 #define xe_vma_userptr_lockdep(uvma) \ in xe_vma_userptr_pin_pages()
72 lockdep_assert(__xe_vma_userptr_lockdep(uvma)) in xe_vma_userptr_pin_pages()
74 #define xe_vma_userptr_lockdep(uvma) in xe_vma_userptr_pin_pages()
77 int xe_vma_userptr_pin_pages(struct xe_userptr_vma *uvma) in xe_vma_userptr_pin_pages()
60 xe_vma_userptr_pin_pages(struct xe_userptr_vma * uvma) xe_vma_userptr_pin_pages() argument
86 xe_vma_userptr_do_inval(struct xe_vm * vm,struct xe_userptr_vma * uvma,bool is_deferred) xe_vma_userptr_do_inval() argument
131 xe_vma_userptr_complete_tlb_inval(struct xe_vm * vm,struct xe_userptr_vma * uvma) xe_vma_userptr_complete_tlb_inval() argument
152 xe_vma_userptr_invalidate_pass1(struct xe_vm * vm,struct xe_userptr_vma * uvma) xe_vma_userptr_invalidate_pass1() argument
208 struct xe_userptr_vma *uvma = container_of(mni, typeof(*uvma), userptr.notifier); xe_vma_userptr_invalidate_start() local
236 struct xe_userptr_vma *uvma = container_of(finish, typeof(*uvma), userptr.finish); xe_vma_userptr_invalidate_finish() local
270 xe_vma_userptr_force_invalidate(struct xe_userptr_vma * uvma) xe_vma_userptr_force_invalidate() argument
299 struct xe_userptr_vma *uvma, *next; xe_vm_userptr_pin() local
389 xe_userptr_setup(struct xe_userptr_vma * uvma,unsigned long start,unsigned long range) xe_userptr_setup() argument
410 xe_userptr_remove(struct xe_userptr_vma * uvma) xe_userptr_remove() argument
426 xe_userptr_destroy(struct xe_userptr_vma * uvma) xe_userptr_destroy() argument
[all...]
H A Dxe_pt.c1536 static bool xe_pt_userptr_inject_eagain(struct xe_userptr_vma *uvma) in xe_pt_userptr_inject_eagain()
1538 u32 divisor = uvma->userptr.divisor ? uvma->userptr.divisor : 2; in xe_pt_userptr_inject_eagain()
1542 uvma->userptr.divisor = divisor << 1; in xe_pt_userptr_inject_eagain()
1551 static bool xe_pt_userptr_inject_eagain(struct xe_userptr_vma *uvma)
1560 struct xe_userptr_vma *uvma; in vma_check_userptr()
1568 uvma = to_userptr_vma(vma); in vma_check_userptr()
1569 if (xe_pt_userptr_inject_eagain(uvma)) in vma_check_userptr()
1570 xe_vma_userptr_force_invalidate(uvma); in vma_check_userptr()
1572 notifier_seq = uvma in vma_check_userptr()
1531 xe_pt_userptr_inject_eagain(struct xe_userptr_vma * uvma) xe_pt_userptr_inject_eagain() argument
1546 xe_pt_userptr_inject_eagain(struct xe_userptr_vma * uvma) xe_pt_userptr_inject_eagain() argument
1556 struct xe_userptr_vma *uvma; vma_check_userptr() local
[all...]
H A Dxe_pagefault.c191 struct xe_userptr_vma *uvma = to_userptr_vma(vma); in xe_pagefault_service()
193 err = xe_vma_userptr_pin_pages(uvma); in xe_pagefault_service()
110 struct xe_userptr_vma *uvma = to_userptr_vma(vma); xe_pagefault_handle_vma() local
H A Dxe_vm.c1151 struct xe_userptr_vma *uvma = kzalloc_obj(*uvma); in xe_vma_create()
1153 if (!uvma) in xe_vma_create()
1156 vma = &uvma->vma; in xe_vma_create()
1222 struct xe_userptr_vma *uvma = to_userptr_vma(vma); in xe_vma_destroy_late()
1228 err = xe_userptr_setup(uvma, xe_vma_userptr(vma), size); in xe_vma_destroy_late()
1254 struct xe_userptr_vma *uvma = to_userptr_vma(vma); in vma_destroy_cb()
1256 xe_userptr_remove(uvma); in vma_destroy_cb()
2374 struct xe_userptr_vma *uvma = to_userptr_vma(vma); in print_op()
2377 list_move_tail(&uvma in print_op()
1128 struct xe_userptr_vma *uvma = kzalloc_obj(*uvma); xe_vma_create() local
1199 struct xe_userptr_vma *uvma = to_userptr_vma(vma); xe_vma_create() local
1229 struct xe_userptr_vma *uvma = to_userptr_vma(vma); xe_vma_destroy_late() local
[all...]
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_uvmm.c181 nouveau_uvma_vmm_put(struct nouveau_uvma *uvma) in nouveau_uvma_vmm_put() argument
183 u64 addr = uvma->va.va.addr; in nouveau_uvma_vmm_put()
184 u64 range = uvma->va.va.range; in nouveau_uvma_vmm_put()
185 u8 page_shift = uvma->page_shift; in nouveau_uvma_vmm_put()
187 return nouveau_uvmm_vmm_put(to_uvmm(uvma), addr, range, page_shift); in nouveau_uvma_vmm_put()
191 nouveau_uvma_map(struct nouveau_uvma *uvma, in nouveau_uvma_map() argument
194 u64 addr = uvma->va.va.addr; in nouveau_uvma_map()
195 u64 offset = uvma->va.gem.offset; in nouveau_uvma_map()
196 u64 range = uvma->va.va.range; in nouveau_uvma_map()
197 u8 page_shift = uvma->page_shift; in nouveau_uvma_map()
[all …]