Lines Matching refs:panic_header

18 static int  panic_header_init(debug_panic_info_head_t *panic_header);
19 static int panic_header_show(debug_panic_info_head_t *panic_header);
20 static int panic_header_set(debug_panic_info_head_t *panic_header);
21 static int panic_header_get(debug_panic_info_head_t *panic_header);
307 static int panic_header_init(debug_panic_info_head_t *panic_header) in panic_header_init() argument
310 panic_header->header_magic = DEBUG_PANIC_HEADER_MAGIC; in panic_header_init()
311 panic_header->log_magic = 0; in panic_header_init()
312 panic_header->reboot_reason = DEFAULT_REBOOT_REASON; in panic_header_init()
313 panic_header->reboot_sum_count = 0; in panic_header_init()
314 panic_header->reboot_reason_id = 0; in panic_header_init()
315 panic_header->panic_count = 0; in panic_header_init()
316 panic_header->runtime_record_id = 0; in panic_header_init()
319 panic_header->runtime_before_painc[i] = -1; in panic_header_init()
324 static int panic_header_show(debug_panic_info_head_t *panic_header) in panic_header_show() argument
327 printf("panic header reboot reason %d\r\n", (int)panic_header->reboot_reason); in panic_header_show()
328 printf("panic header reboot sum count %d\r\n", (int)panic_header->reboot_sum_count); in panic_header_show()
329 printf("panic header reboot reason reason id %d\r\n", (int)panic_header->reboot_reason_id); in panic_header_show()
330 printf("panic header panic count %d\r\n", (int)panic_header->panic_count); in panic_header_show()
335 static int panic_header_set(debug_panic_info_head_t *panic_header) in panic_header_set() argument
337 if (panic_header == NULL) { in panic_header_set()
343 panic_header->crc16 = crc16_calc((uint8_t *)panic_header, CRC_CALC_LEN, 0xffff); in panic_header_set()
345 memcpy(log_header, panic_header, sizeof(debug_panic_info_head_t)); in panic_header_set()
351 static int panic_header_get(debug_panic_info_head_t *panic_header) in panic_header_get() argument
353 if (panic_header == NULL) { in panic_header_get()
358 memcpy(panic_header, log_header, sizeof(debug_panic_info_head_t)); in panic_header_get()