Lines Matching full:check

47 #define CHECK_VALID_BITS(check)		(((check) & GENMASK_ULL(15, 0)))  argument
48 #define CHECK_TRANS_TYPE(check) (((check) & GENMASK_ULL(17, 16)) >> 16) argument
49 #define CHECK_OPERATION(check) (((check) & GENMASK_ULL(21, 18)) >> 18) argument
50 #define CHECK_LEVEL(check) (((check) & GENMASK_ULL(24, 22)) >> 22) argument
57 #define CHECK_BUS_PART_TYPE(check) (((check) & GENMASK_ULL(31, 30)) >> 30) argument
59 #define CHECK_BUS_ADDR_SPACE(check) (((check) & GENMASK_ULL(34, 33)) >> 33) argument
68 #define CHECK_MS_ERR_TYPE(check) (((check) & GENMASK_ULL(18, 16)) >> 16) argument
143 "MSR Registers (Machine Check and other MSRs)",
152 static inline void print_bool(char *str, const char *pfx, u64 check, u64 bit) in print_bool() argument
154 printk("%s%s: %s\n", pfx, str, (check & bit) ? "true" : "false"); in print_bool()
157 static void print_err_info_ms(const char *pfx, u16 validation_bits, u64 check) in print_err_info_ms() argument
160 u8 err_type = CHECK_MS_ERR_TYPE(check); in print_err_info_ms()
168 print_bool("Processor Context Corrupt", pfx, check, CHECK_MS_PCC); in print_err_info_ms()
171 print_bool("Uncorrected", pfx, check, CHECK_MS_UNCORRECTED); in print_err_info_ms()
174 print_bool("Precise IP", pfx, check, CHECK_MS_PRECISE_IP); in print_err_info_ms()
177 print_bool("Restartable IP", pfx, check, CHECK_MS_RESTARTABLE_IP); in print_err_info_ms()
180 print_bool("Overflow", pfx, check, CHECK_MS_OVERFLOW); in print_err_info_ms()
183 static void print_err_info(const char *pfx, u8 err_type, u64 check) in print_err_info() argument
185 u16 validation_bits = CHECK_VALID_BITS(check); in print_err_info()
188 * The MS Check structure varies a lot from the others, so use a in print_err_info()
192 return print_err_info_ms(pfx, validation_bits, check); in print_err_info()
195 u8 trans_type = CHECK_TRANS_TYPE(check); in print_err_info()
203 u8 op = CHECK_OPERATION(check); in print_err_info()
216 printk("%sLevel: %llu\n", pfx, CHECK_LEVEL(check)); in print_err_info()
219 print_bool("Processor Context Corrupt", pfx, check, CHECK_PCC); in print_err_info()
222 print_bool("Uncorrected", pfx, check, CHECK_UNCORRECTED); in print_err_info()
225 print_bool("Precise IP", pfx, check, CHECK_PRECISE_IP); in print_err_info()
228 print_bool("Restartable IP", pfx, check, CHECK_RESTARTABLE_IP); in print_err_info()
231 print_bool("Overflow", pfx, check, CHECK_OVERFLOW); in print_err_info()
237 u8 part_type = CHECK_BUS_PART_TYPE(check); in print_err_info()
245 print_bool("Time Out", pfx, check, CHECK_BUS_TIME_OUT); in print_err_info()
248 u8 addr_space = CHECK_BUS_ADDR_SPACE(check); in print_err_info()