Lines Matching refs:oops_hdr
355 struct oops_log_info *oops_hdr = (struct oops_log_info *)oops_buf; in zip_oops() local
363 oops_hdr->version = cpu_to_be16(OOPS_HDR_VERSION); in zip_oops()
364 oops_hdr->report_length = cpu_to_be16(zipped_len); in zip_oops()
365 oops_hdr->timestamp = cpu_to_be64(ktime_get_real_seconds()); in zip_oops()
389 struct oops_log_info *oops_hdr = (struct oops_log_info *) oops_buf; in nvram_pstore_write() local
398 oops_hdr->version = cpu_to_be16(OOPS_HDR_VERSION); in nvram_pstore_write()
399 oops_hdr->report_length = cpu_to_be16(record->size); in nvram_pstore_write()
400 oops_hdr->timestamp = cpu_to_be64(ktime_get_real_seconds()); in nvram_pstore_write()
406 (int) (sizeof(*oops_hdr) + record->size), err_type, in nvram_pstore_write()
423 struct oops_log_info *oops_hdr; in nvram_pstore_read() local
504 oops_hdr = (struct oops_log_info *)buff; in nvram_pstore_read()
505 if (be16_to_cpu(oops_hdr->version) < OOPS_HDR_VERSION) { in nvram_pstore_read()
508 length = be16_to_cpu(oops_hdr->version); in nvram_pstore_read()
512 hdr_size = sizeof(*oops_hdr); in nvram_pstore_read()
513 length = be16_to_cpu(oops_hdr->report_length); in nvram_pstore_read()
514 record->time.tv_sec = be64_to_cpu(oops_hdr->timestamp); in nvram_pstore_read()
648 struct oops_log_info *oops_hdr = (struct oops_log_info *)oops_buf; in oops_to_nvram() local
693 oops_hdr->version = cpu_to_be16(OOPS_HDR_VERSION); in oops_to_nvram()
694 oops_hdr->report_length = cpu_to_be16(text_len); in oops_to_nvram()
695 oops_hdr->timestamp = cpu_to_be64(ktime_get_real_seconds()); in oops_to_nvram()
699 (int) (sizeof(*oops_hdr) + text_len), err_type, in oops_to_nvram()