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

1 // SPDX-License-Identifier: GPL-2.0
31 * el_subpacket of class HEADER, type LOGOUT_FRAME. in ev7_collect_logout_frame_subpackets()
33 if (el_ptr->class != EL_CLASS__HEADER || in ev7_collect_logout_frame_subpackets()
34 el_ptr->type != EL_TYPE__HEADER__LOGOUT_FRAME) in ev7_collect_logout_frame_subpackets()
41 ((unsigned long)el_ptr + el_ptr->length); in ev7_collect_logout_frame_subpackets()
44 * It has to be class PAL, type LOGOUT_FRAME. in ev7_collect_logout_frame_subpackets()
46 if (el_ptr->class != EL_CLASS__PAL || in ev7_collect_logout_frame_subpackets()
47 el_ptr->type != EL_TYPE__PAL__LOGOUT_FRAME) in ev7_collect_logout_frame_subpackets()
50 lf_subpackets->logout = (struct ev7_pal_logout_subpacket *) in ev7_collect_logout_frame_subpackets()
51 el_ptr->by_type.raw.data_start; in ev7_collect_logout_frame_subpackets()
57 ((unsigned long)el_ptr + el_ptr->length); in ev7_collect_logout_frame_subpackets()
59 subpacket && i < lf_subpackets->logout->subpacket_count; in ev7_collect_logout_frame_subpackets()
61 ((unsigned long)subpacket + subpacket->length), i++) { in ev7_collect_logout_frame_subpackets()
63 * All subpackets should be class PAL. in ev7_collect_logout_frame_subpackets()
65 if (subpacket->class != EL_CLASS__PAL) { in ev7_collect_logout_frame_subpackets()
66 printk("%s**UNEXPECTED SUBPACKET CLASS %d " in ev7_collect_logout_frame_subpackets()
67 "IN LOGOUT FRAME (packet %d\n", in ev7_collect_logout_frame_subpackets()
68 err_print_prefix, subpacket->class, i); in ev7_collect_logout_frame_subpackets()
75 switch(subpacket->type) { in ev7_collect_logout_frame_subpackets()
77 lf_subpackets->ev7 = in ev7_collect_logout_frame_subpackets()
79 subpacket->by_type.raw.data_start; in ev7_collect_logout_frame_subpackets()
83 lf_subpackets->rbox = (struct ev7_pal_rbox_subpacket *) in ev7_collect_logout_frame_subpackets()
84 subpacket->by_type.raw.data_start; in ev7_collect_logout_frame_subpackets()
88 lf_subpackets->zbox = (struct ev7_pal_zbox_subpacket *) in ev7_collect_logout_frame_subpackets()
89 subpacket->by_type.raw.data_start; in ev7_collect_logout_frame_subpackets()
93 lf_subpackets->io = (struct ev7_pal_io_subpacket *) in ev7_collect_logout_frame_subpackets()
94 subpacket->by_type.raw.data_start; in ev7_collect_logout_frame_subpackets()
104 lf_subpackets->env[ev7_lf_env_index(subpacket->type)] = in ev7_collect_logout_frame_subpackets()
106 subpacket->by_type.raw.data_start; in ev7_collect_logout_frame_subpackets()
133 printk("%s*CPU %s Error (Vector 0x%x) reported on CPU %d\n", in ev7_machine_check()
239 if (header->class != EL_CLASS__PAL) { in ev7_process_pal_subpacket()
240 printk("%s ** Unexpected header CLASS %d TYPE %d, aborting\n", in ev7_process_pal_subpacket()
242 header->class, header->type); in ev7_process_pal_subpacket()
246 packet = (struct ev7_pal_subpacket *)header->by_type.raw.data_start; in ev7_process_pal_subpacket()
248 switch(header->type) { in ev7_process_pal_subpacket()
252 packet->by_type.logout.whami, in ev7_process_pal_subpacket()
253 packet->by_type.logout.rbox_whami); in ev7_process_pal_subpacket()
254 el_print_timestamp(&packet->by_type.logout.timestamp); in ev7_process_pal_subpacket()
258 packet->by_type.logout.exc_addr, in ev7_process_pal_subpacket()
259 packet->by_type.logout.halt_code); in ev7_process_pal_subpacket()
261 packet->by_type.logout.subpacket_count); in ev7_process_pal_subpacket()
264 printk("%s ** PAL TYPE %d SUBPACKET\n", in ev7_process_pal_subpacket()
266 header->type); in ev7_process_pal_subpacket()
271 return (struct el_subpacket *)((unsigned long)header + header->length); in ev7_process_pal_subpacket()