Lines Matching refs:log
32 struct vpu_tracing_buffer_header *log; in fw_log_ptr() local
34 if ((*offset + sizeof(*log)) > bo->base.size) in fw_log_ptr()
37 log = bo->kvaddr + *offset; in fw_log_ptr()
39 if (log->vpu_canary_start != VPU_TRACING_BUFFER_CANARY) in fw_log_ptr()
42 if (log->header_size < sizeof(*log) || log->header_size > 1024) { in fw_log_ptr()
43 ivpu_dbg(vdev, FW_BOOT, "Invalid header size 0x%x\n", log->header_size); in fw_log_ptr()
46 if ((char *)log + log->size > (char *)bo->kvaddr + bo->base.size) { in fw_log_ptr()
47 ivpu_dbg(vdev, FW_BOOT, "Invalid log size 0x%x\n", log->size); in fw_log_ptr()
51 *log_header = log; in fw_log_ptr()
52 *offset += log->size; in fw_log_ptr()
56 log->name, log->write_index, log->size, log->wrap_count, log->header_version, in fw_log_ptr()
57 log->header_size, log->format, log->alignment); in fw_log_ptr()
93 static void fw_log_print_buffer(struct ivpu_device *vdev, struct vpu_tracing_buffer_header *log, in fw_log_print_buffer() argument
96 char *log_buffer = (void *)log + log->header_size; in fw_log_print_buffer()
97 u32 log_size = log->size - log->header_size; in fw_log_print_buffer()
98 u32 log_start = log->read_index; in fw_log_print_buffer()
99 u32 log_end = log->write_index; in fw_log_print_buffer()
101 if (!(log->write_index || log->wrap_count) || in fw_log_print_buffer()
102 (log->write_index == log->read_index && only_new_msgs)) { in fw_log_print_buffer()
103 drm_printf(p, "==== %s \"%s\" log empty ====\n", prefix, log->name); in fw_log_print_buffer()
107 drm_printf(p, "==== %s \"%s\" log start ====\n", prefix, log->name); in fw_log_print_buffer()
108 if (log->write_index > log->read_index) { in fw_log_print_buffer()
115 drm_printf(p, "==== %s \"%s\" log end ====\n", prefix, log->name); in fw_log_print_buffer()