Lines Matching defs:xe
111 static void ccs_test_run_tile(struct xe_device *xe, struct xe_tile *tile,
121 if (IS_DGFX(xe))
126 bo = xe_bo_create_user(xe, NULL, NULL, SZ_1M, DRM_XE_GEM_CPU_CACHING_WC,
155 static int ccs_test_run_device(struct xe_device *xe)
161 if (!xe_device_has_flat_ccs(xe)) {
166 xe_pm_runtime_get(xe);
168 for_each_tile(tile, xe, id) {
170 if (!IS_DGFX(xe) && id > 0)
172 ccs_test_run_tile(xe, tile, test);
175 xe_pm_runtime_put(xe);
186 static int evict_test_run_tile(struct xe_device *xe, struct xe_tile *tile, struct kunit *test)
190 struct xe_vm *vm = xe_migrate_get_vm(xe_device_get_root_tile(xe)->migrate);
195 dev_name(xe->drm.dev), tile->id);
199 bo = xe_bo_create_user(xe, NULL, vm, 0x10000,
209 external = xe_bo_create_user(xe, NULL, NULL, 0x10000,
226 err = xe_bo_evict_all(xe);
232 for_each_gt(__gt, xe, id)
234 err = xe_bo_restore_kernel(xe);
246 for_each_gt(__gt, xe, id) {
256 err = xe_bo_restore_user(xe);
326 static int evict_test_run_device(struct xe_device *xe)
332 if (!IS_DGFX(xe)) {
334 dev_name(xe->drm.dev));
338 xe_pm_runtime_get(xe);
340 for_each_tile(tile, xe, id)
341 evict_test_run_tile(xe, tile, test);
343 xe_pm_runtime_put(xe);