Lines Matching refs:snapshot
333 struct xe_sched_job_snapshot *snapshot; in xe_sched_job_snapshot_capture() local
334 size_t len = sizeof(*snapshot) + (sizeof(u64) * q->width); in xe_sched_job_snapshot_capture()
337 snapshot = kzalloc(len, GFP_ATOMIC); in xe_sched_job_snapshot_capture()
338 if (!snapshot) in xe_sched_job_snapshot_capture()
341 snapshot->batch_addr_len = q->width; in xe_sched_job_snapshot_capture()
343 snapshot->batch_addr[i] = in xe_sched_job_snapshot_capture()
346 return snapshot; in xe_sched_job_snapshot_capture()
349 void xe_sched_job_snapshot_free(struct xe_sched_job_snapshot *snapshot) in xe_sched_job_snapshot_free() argument
351 kfree(snapshot); in xe_sched_job_snapshot_free()
355 xe_sched_job_snapshot_print(struct xe_sched_job_snapshot *snapshot, in xe_sched_job_snapshot_print() argument
360 if (!snapshot) in xe_sched_job_snapshot_print()
363 for (i = 0; i < snapshot->batch_addr_len; i++) in xe_sched_job_snapshot_print()
364 drm_printf(p, "batch_addr[%u]: 0x%016llx\n", i, snapshot->batch_addr[i]); in xe_sched_job_snapshot_print()