Lines Matching refs:mgr
85 void drm_vma_offset_manager_init(struct drm_vma_offset_manager *mgr, in drm_vma_offset_manager_init() argument
88 rwlock_init(&mgr->vm_lock); in drm_vma_offset_manager_init()
89 drm_mm_init(&mgr->vm_addr_space_mm, page_offset, size); in drm_vma_offset_manager_init()
104 void drm_vma_offset_manager_destroy(struct drm_vma_offset_manager *mgr) in drm_vma_offset_manager_destroy() argument
106 drm_mm_takedown(&mgr->vm_addr_space_mm); in drm_vma_offset_manager_destroy()
140 struct drm_vma_offset_node *drm_vma_offset_lookup_locked(struct drm_vma_offset_manager *mgr, in drm_vma_offset_lookup_locked() argument
148 iter = mgr->vm_addr_space_mm.interval_tree.rb_root.rb_node; in drm_vma_offset_lookup_locked()
201 int drm_vma_offset_add(struct drm_vma_offset_manager *mgr, in drm_vma_offset_add() argument
206 write_lock(&mgr->vm_lock); in drm_vma_offset_add()
209 ret = drm_mm_insert_node(&mgr->vm_addr_space_mm, in drm_vma_offset_add()
212 write_unlock(&mgr->vm_lock); in drm_vma_offset_add()
229 void drm_vma_offset_remove(struct drm_vma_offset_manager *mgr, in drm_vma_offset_remove() argument
232 write_lock(&mgr->vm_lock); in drm_vma_offset_remove()
239 write_unlock(&mgr->vm_lock); in drm_vma_offset_remove()