Lines Matching refs:ww
123 struct i915_gem_ww_ctx ww; in i915_gem_begin_cpu_access() local
126 i915_gem_ww_ctx_init(&ww, true); in i915_gem_begin_cpu_access()
128 err = i915_gem_object_lock(obj, &ww); in i915_gem_begin_cpu_access()
136 err = i915_gem_ww_ctx_backoff(&ww); in i915_gem_begin_cpu_access()
140 i915_gem_ww_ctx_fini(&ww); in i915_gem_begin_cpu_access()
147 struct i915_gem_ww_ctx ww; in i915_gem_end_cpu_access() local
150 i915_gem_ww_ctx_init(&ww, true); in i915_gem_end_cpu_access()
152 err = i915_gem_object_lock(obj, &ww); in i915_gem_end_cpu_access()
160 err = i915_gem_ww_ctx_backoff(&ww); in i915_gem_end_cpu_access()
164 i915_gem_ww_ctx_fini(&ww); in i915_gem_end_cpu_access()
172 struct i915_gem_ww_ctx ww; in i915_gem_dmabuf_attach() local
178 for_i915_gem_ww(&ww, err, true) { in i915_gem_dmabuf_attach()
179 err = i915_gem_object_lock(obj, &ww); in i915_gem_dmabuf_attach()
183 err = i915_gem_object_migrate(obj, &ww, INTEL_REGION_SMEM); in i915_gem_dmabuf_attach()