Lines Matching refs:mmo
84 spin_lock_init(&obj->mmo.lock); in i915_gem_object_init()
85 obj->mmo.offsets = RB_ROOT; in i915_gem_object_init()
173 struct i915_mmap_offset *mmo, *mn; in i915_gem_close_object() local
196 spin_lock(&obj->mmo.lock); in i915_gem_close_object()
197 rbtree_postorder_for_each_entry_safe(mmo, mn, &obj->mmo.offsets, offset) in i915_gem_close_object()
198 drm_vma_node_revoke(&mmo->vma_node, file); in i915_gem_close_object()
199 spin_unlock(&obj->mmo.lock); in i915_gem_close_object()
244 if (!RB_EMPTY_ROOT(&obj->mmo.offsets)) { in __i915_gem_object_free_mmaps()
245 struct i915_mmap_offset *mmo, *mn; in __i915_gem_object_free_mmaps() local
249 rbtree_postorder_for_each_entry_safe(mmo, mn, in __i915_gem_object_free_mmaps()
250 &obj->mmo.offsets, in __i915_gem_object_free_mmaps()
253 &mmo->vma_node); in __i915_gem_object_free_mmaps()
254 kfree(mmo); in __i915_gem_object_free_mmaps()
256 obj->mmo.offsets = RB_ROOT; in __i915_gem_object_free_mmaps()