Lines Matching refs:migrate

32 static int copy(struct intel_migrate *migrate,  in copy()  argument
33 int (*fn)(struct intel_migrate *migrate, in copy() argument
40 struct drm_i915_private *i915 = migrate->context->engine->i915; in copy()
85 err = fn(migrate, &ww, src, dst, &rq); in copy()
132 static int clear(struct intel_migrate *migrate, in clear() argument
133 int (*fn)(struct intel_migrate *migrate, in clear() argument
140 struct drm_i915_private *i915 = migrate->context->engine->i915; in clear()
167 err = fn(migrate, &ww, obj, sz, &rq); in clear()
208 static int __migrate_copy(struct intel_migrate *migrate, in __migrate_copy() argument
214 return intel_migrate_copy(migrate, ww, NULL, in __migrate_copy()
222 static int __global_copy(struct intel_migrate *migrate, in __global_copy() argument
228 return intel_context_migrate_copy(migrate->context, NULL, in __global_copy()
237 migrate_copy(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng) in migrate_copy() argument
239 return copy(migrate, __migrate_copy, sz, prng); in migrate_copy()
243 global_copy(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng) in global_copy() argument
245 return copy(migrate, __global_copy, sz, prng); in global_copy()
248 static int __migrate_clear(struct intel_migrate *migrate, in __migrate_clear() argument
254 return intel_migrate_clear(migrate, ww, NULL, in __migrate_clear()
261 static int __global_clear(struct intel_migrate *migrate, in __global_clear() argument
267 return intel_context_migrate_clear(migrate->context, NULL, in __global_clear()
275 migrate_clear(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng) in migrate_clear() argument
277 return clear(migrate, __migrate_clear, sz, prng); in migrate_clear()
281 global_clear(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng) in global_clear() argument
283 return clear(migrate, __global_clear, sz, prng); in global_clear()
288 struct intel_migrate *migrate = arg; in live_migrate_copy() local
289 struct drm_i915_private *i915 = migrate->context->engine->i915; in live_migrate_copy()
296 err = migrate_copy(migrate, sizes[i], &prng); in live_migrate_copy()
298 err = global_copy(migrate, sizes[i], &prng); in live_migrate_copy()
309 struct intel_migrate *migrate = arg; in live_migrate_clear() local
310 struct drm_i915_private *i915 = migrate->context->engine->i915; in live_migrate_clear()
317 err = migrate_clear(migrate, sizes[i], &prng); in live_migrate_clear()
319 err = global_clear(migrate, sizes[i], &prng); in live_migrate_clear()
330 struct intel_migrate *migrate; member
335 static int threaded_migrate(struct intel_migrate *migrate, in threaded_migrate() argument
352 thread[i].migrate = migrate; in threaded_migrate()
390 return migrate_copy(tm->migrate, 2 * CHUNK_SZ, &tm->prng); in __thread_migrate_copy()
402 return global_copy(tm->migrate, 2 * CHUNK_SZ, &tm->prng); in __thread_global_copy()
414 return migrate_clear(tm->migrate, 2 * CHUNK_SZ, &tm->prng); in __thread_migrate_clear()
421 return global_clear(tm->migrate, 2 * CHUNK_SZ, &tm->prng); in __thread_global_clear()
446 if (!gt->migrate.context) in intel_migrate_live_selftests()
449 return i915_subtests(tests, &gt->migrate); in intel_migrate_live_selftests()
545 err = __perf_clear_blt(gt->migrate.context, in perf_clear_blt()
633 err = __perf_copy_blt(gt->migrate.context, in perf_copy_blt()
665 if (!gt->migrate.context) in intel_migrate_perf_selftests()