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