Lines Matching refs:vw
325 struct i915_vma_work *vw = container_of(work, typeof(*vw), base); in __vma_bind() local
326 struct i915_vma_resource *vma_res = vw->vma_res; in __vma_bind()
334 if (i915_gem_object_has_unknown_state(vw->obj)) in __vma_bind()
337 vma_res->ops->bind_vma(vma_res->vm, &vw->stash, in __vma_bind()
338 vma_res, vw->pat_index, vw->flags); in __vma_bind()
343 struct i915_vma_work *vw = container_of(work, typeof(*vw), base); in __vma_release() local
345 if (vw->obj) in __vma_release()
346 i915_gem_object_put(vw->obj); in __vma_release()
348 i915_vm_free_pt_stash(vw->vm, &vw->stash); in __vma_release()
349 if (vw->vma_res) in __vma_release()
350 i915_vma_resource_put(vw->vma_res); in __vma_release()
361 struct i915_vma_work *vw; in i915_vma_work() local
363 vw = kzalloc(sizeof(*vw), GFP_KERNEL); in i915_vma_work()
364 if (!vw) in i915_vma_work()
367 dma_fence_work_init(&vw->base, &bind_ops); in i915_vma_work()
368 vw->base.dma.error = -EAGAIN; /* disable the worker by default */ in i915_vma_work()
370 return vw; in i915_vma_work()