Lines Matching +full:class +full:- +full:d

1 // SPDX-License-Identifier: GPL-2.0
22 * err_print_prefix -- error handling print routines should prefix
50 printk("%s -- Frame Header --\n" in mchk_dump_logout_frame()
51 " Frame Size: %d (0x%x) bytes\n" in mchk_dump_logout_frame()
54 " Frame Rev: %d\n" in mchk_dump_logout_frame()
57 " -- Processor Region --\n", in mchk_dump_logout_frame()
59 mchk_header->size, mchk_header->size, in mchk_dump_logout_frame()
60 mchk_header->retry ? "RETRY " : "", in mchk_dump_logout_frame()
61 mchk_header->err2 ? "SECOND_ERR " : "", in mchk_dump_logout_frame()
62 mchk_header->code, in mchk_dump_logout_frame()
63 mchk_header->frame_rev, in mchk_dump_logout_frame()
64 mchk_header->proc_offset, in mchk_dump_logout_frame()
65 mchk_header->sys_offset); in mchk_dump_logout_frame()
68 ((unsigned long)mchk_header + mchk_header->proc_offset), in mchk_dump_logout_frame()
69 mchk_header->sys_offset - mchk_header->proc_offset, in mchk_dump_logout_frame()
72 printk("%s -- System Region --\n", err_print_prefix); in mchk_dump_logout_frame()
74 ((unsigned long)mchk_header + mchk_header->sys_offset), in mchk_dump_logout_frame()
75 mchk_header->size - mchk_header->sys_offset, in mchk_dump_logout_frame()
77 printk("%s -- End of Frame --\n", err_print_prefix); in mchk_dump_logout_frame()
96 if (header->class != EL_CLASS__HEADER) { in el_process_header_subpacket()
97 printk("%s** Unexpected header CLASS %d TYPE %d, aborting\n", in el_process_header_subpacket()
99 header->class, header->type); in el_process_header_subpacket()
103 switch(header->type) { in el_process_header_subpacket()
106 length = header->by_type.sys_err.frame_length; in el_process_header_subpacket()
108 header->by_type.sys_err.frame_packet_count; in el_process_header_subpacket()
113 length = header->by_type.sys_event.frame_length; in el_process_header_subpacket()
115 header->by_type.sys_event.frame_packet_count; in el_process_header_subpacket()
116 timestamp = header->by_type.sys_event.timestamp; in el_process_header_subpacket()
120 length = header->by_type.err_halt.frame_length; in el_process_header_subpacket()
122 header->by_type.err_halt.frame_packet_count; in el_process_header_subpacket()
123 timestamp = header->by_type.err_halt.timestamp; in el_process_header_subpacket()
127 length = header->by_type.logout_header.frame_length; in el_process_header_subpacket()
132 printk("%s** Unknown header - CLASS %d TYPE %d, aborting\n", in el_process_header_subpacket()
134 header->class, header->type); in el_process_header_subpacket()
139 " CLASS %d, TYPE %d\n", in el_process_header_subpacket()
142 header->class, header->type); in el_process_header_subpacket()
152 ((unsigned long)header + header->length + length); in el_process_header_subpacket()
162 for (; h && h->class != header->class; h = h->next); in el_process_subpacket_reg()
163 if (h) next = h->handler(header); in el_process_subpacket_reg()
171 if (timestamp->as_int) in el_print_timestamp()
172 printk("%s TIMESTAMP: %d/%d/%02d %d:%02d:%0d\n", in el_print_timestamp()
174 timestamp->b.month, timestamp->b.day, in el_print_timestamp()
175 timestamp->b.year, timestamp->b.hour, in el_print_timestamp()
176 timestamp->b.minute, timestamp->b.second); in el_print_timestamp()
186 ((unsigned long)header + header->length); in el_process_subpackets()
189 printk("%sPROCESSING SUBPACKET %d\n", err_print_prefix, i); in el_process_subpackets()
199 switch(header->class) { in el_process_subpacket()
208 printk("%s** Unexpected header CLASS %d TYPE %d" in el_process_subpacket()
209 " -- aborting.\n", in el_process_subpacket()
211 header->class, header->type); in el_process_subpacket()
225 for (a = subpacket_annotation_list; a; a = a->next) { in el_annotate_subpacket()
226 if (a->class == header->class && in el_annotate_subpacket()
227 a->type == header->type && in el_annotate_subpacket()
228 a->revision == header->revision) { in el_annotate_subpacket()
232 annotation = a->annotation; in el_annotate_subpacket()
233 printk("%s %s\n", err_print_prefix, a->description); in el_annotate_subpacket()
238 mchk_dump_mem(header, header->length, annotation); in el_annotate_subpacket()
245 (IDENT_ADDR | pcpu->console_data_log_pa); in cdl_process_console_data_log()
248 printk("%s******* CONSOLE DATA LOG FOR CPU %d. *******\n" in cdl_process_console_data_log()
252 for (err = 0; header && (header->class != EL_CLASS__TERMINATION); err++) in cdl_process_console_data_log()
256 pcpu->console_data_log_pa = 0; in cdl_process_console_data_log()
258 printk("%s*** %d total error(s) logged\n" in cdl_process_console_data_log()
259 "**** END OF CONSOLE DATA LOG FOR CPU %d ****\n", in cdl_process_console_data_log()
269 for (cpu = 0; cpu < hwrpb->nr_processors; cpu++) { in cdl_check_console_data_log()
271 ((unsigned long)hwrpb + hwrpb->processor_offset in cdl_check_console_data_log()
272 + cpu * hwrpb->processor_size); in cdl_check_console_data_log()
273 if (pcpu->console_data_log_pa) in cdl_check_console_data_log()
286 for (; a->next != NULL; a = a->next) { in cdl_register_subpacket_annotation()
287 if ((a->class == new->class && a->type == new->type) || in cdl_register_subpacket_annotation()
289 printk("Attempted to re-register " in cdl_register_subpacket_annotation()
291 return -EINVAL; in cdl_register_subpacket_annotation()
294 a->next = new; in cdl_register_subpacket_annotation()
296 new->next = NULL; in cdl_register_subpacket_annotation()
308 for (; h->next != NULL; h = h->next) { in cdl_register_subpacket_handler()
309 if (h->class == new->class || h == new) { in cdl_register_subpacket_handler()
310 printk("Attempted to re-register " in cdl_register_subpacket_handler()
312 return -EINVAL; in cdl_register_subpacket_handler()
315 h->next = new; in cdl_register_subpacket_handler()
317 new->next = NULL; in cdl_register_subpacket_handler()