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