Lines Matching refs:vw
357 struct i915_vma_work *vw = container_of(work, typeof(*vw), base); in __vma_bind() local
358 struct i915_vma_resource *vma_res = vw->vma_res; in __vma_bind()
366 if (i915_gem_object_has_unknown_state(vw->obj)) in __vma_bind()
369 vma_res->ops->bind_vma(vma_res->vm, &vw->stash, in __vma_bind()
370 vma_res, vw->pat_index, vw->flags); in __vma_bind()
375 struct i915_vma_work *vw = container_of(work, typeof(*vw), base); in __vma_release() local
377 if (vw->obj) in __vma_release()
378 i915_gem_object_put(vw->obj); in __vma_release()
380 i915_vm_free_pt_stash(vw->vm, &vw->stash); in __vma_release()
381 if (vw->vma_res) in __vma_release()
382 i915_vma_resource_put(vw->vma_res); in __vma_release()
393 struct i915_vma_work *vw; in i915_vma_work() local
395 vw = kzalloc(sizeof(*vw), GFP_KERNEL); in i915_vma_work()
396 if (!vw) in i915_vma_work()
399 dma_fence_work_init(&vw->base, &bind_ops); in i915_vma_work()
400 vw->base.dma.error = -EAGAIN; /* disable the worker by default */ in i915_vma_work()
402 return vw; in i915_vma_work()