Lines Matching refs:bb
38 struct xe_bb *bb, u32 second_idx, const char *str, in run_sanity_job() argument
42 struct xe_sched_job *job = xe_bb_create_migration_job(m->q, bb, in run_sanity_job()
191 struct xe_bb *bb; in xe_migrate_sanity_test() local
232 bb = xe_bb_new(tile->primary_gt, 32, xe->info.has_usm); in xe_migrate_sanity_test()
233 if (IS_ERR(bb)) { in xe_migrate_sanity_test()
235 PTR_ERR(bb)); in xe_migrate_sanity_test()
254 emit_pte(m, bb, NUM_KERNEL_PDE - 1, xe_bo_is_vram(pt), false, in xe_migrate_sanity_test()
257 run_sanity_job(m, xe, bb, bb->len, "Writing PTE for our fake PT", test); in xe_migrate_sanity_test()
264 bb->len = 0; in xe_migrate_sanity_test()
265 bb->cs[bb->len++] = MI_BATCH_BUFFER_END; in xe_migrate_sanity_test()
269 emit_clear(tile->primary_gt, bb, xe_migrate_vm_addr(NUM_KERNEL_PDE - 1, 0), 4, 4, in xe_migrate_sanity_test()
271 run_sanity_job(m, xe, bb, 1, "Writing to our newly mapped pagetable", in xe_migrate_sanity_test()
324 xe_bb_free(bb, NULL); in xe_migrate_sanity_test()
398 struct xe_bb *bb; in blt_copy() local
425 bb = xe_bb_new(gt, batch_size, xe->info.has_usm); in blt_copy()
426 if (IS_ERR(bb)) { in blt_copy()
427 err = PTR_ERR(bb); in blt_copy()
434 emit_pte(m, bb, src_L0_pt, src_is_vram, false, in blt_copy()
440 emit_pte(m, bb, dst_L0_pt, dst_is_vram, false, in blt_copy()
443 bb->cs[bb->len++] = MI_BATCH_BUFFER_END; in blt_copy()
444 update_idx = bb->len; in blt_copy()
446 emit_copy(gt, bb, src_L0_ofs, dst_L0_ofs, src_L0, XE_PAGE_SIZE); in blt_copy()
449 flush_flags = xe_migrate_ccs_copy(m, bb, src_L0_ofs, in blt_copy()
454 job = xe_bb_create_migration_job(m->q, bb, in blt_copy()
475 xe_bb_free(bb, fence); in blt_copy()
480 xe_bb_free(bb, NULL); in blt_copy()