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()
192 struct xe_bb *bb; in xe_migrate_sanity_test() local
230 bb = xe_bb_new(tile->primary_gt, 32, xe->info.has_usm); in xe_migrate_sanity_test()
231 if (IS_ERR(bb)) { in xe_migrate_sanity_test()
233 PTR_ERR(bb)); in xe_migrate_sanity_test()
252 emit_pte(m, bb, NUM_KERNEL_PDE - 1, xe_bo_is_vram(pt), false, in xe_migrate_sanity_test()
255 run_sanity_job(m, xe, bb, bb->len, "Writing PTE for our fake PT", test); in xe_migrate_sanity_test()
262 bb->len = 0; in xe_migrate_sanity_test()
263 bb->cs[bb->len++] = MI_BATCH_BUFFER_END; in xe_migrate_sanity_test()
267 emit_clear(tile->primary_gt, bb, xe_migrate_vm_addr(NUM_KERNEL_PDE - 1, 0), 4, 4, in xe_migrate_sanity_test()
269 run_sanity_job(m, xe, bb, 1, "Writing to our newly mapped pagetable", in xe_migrate_sanity_test()
322 xe_bb_free(bb, NULL); in xe_migrate_sanity_test()
396 struct xe_bb *bb; in blt_copy() local
423 bb = xe_bb_new(gt, batch_size, xe->info.has_usm); in blt_copy()
424 if (IS_ERR(bb)) { in blt_copy()
425 err = PTR_ERR(bb); in blt_copy()
432 emit_pte(m, bb, src_L0_pt, src_is_vram, false, in blt_copy()
438 emit_pte(m, bb, dst_L0_pt, dst_is_vram, false, in blt_copy()
441 bb->cs[bb->len++] = MI_BATCH_BUFFER_END; in blt_copy()
442 update_idx = bb->len; in blt_copy()
444 emit_copy(gt, bb, src_L0_ofs, dst_L0_ofs, src_L0, XE_PAGE_SIZE); in blt_copy()
447 flush_flags = xe_migrate_ccs_copy(m, bb, src_L0_ofs, in blt_copy()
452 job = xe_bb_create_migration_job(m->q, bb, in blt_copy()
473 xe_bb_free(bb, fence); in blt_copy()
478 xe_bb_free(bb, NULL); in blt_copy()