Lines Matching refs:oops_hdr
365 struct oops_log_info *oops_hdr = (struct oops_log_info *)oops_buf; in zip_oops() local
373 oops_hdr->version = cpu_to_be16(OOPS_HDR_VERSION); in zip_oops()
374 oops_hdr->report_length = cpu_to_be16(zipped_len); in zip_oops()
375 oops_hdr->timestamp = cpu_to_be64(ktime_get_real_seconds()); in zip_oops()
399 struct oops_log_info *oops_hdr = (struct oops_log_info *) oops_buf; in nvram_pstore_write() local
408 oops_hdr->version = cpu_to_be16(OOPS_HDR_VERSION); in nvram_pstore_write()
409 oops_hdr->report_length = cpu_to_be16(record->size); in nvram_pstore_write()
410 oops_hdr->timestamp = cpu_to_be64(ktime_get_real_seconds()); in nvram_pstore_write()
416 (int) (sizeof(*oops_hdr) + record->size), err_type, in nvram_pstore_write()
433 struct oops_log_info *oops_hdr; in nvram_pstore_read() local
514 oops_hdr = (struct oops_log_info *)buff; in nvram_pstore_read()
515 if (be16_to_cpu(oops_hdr->version) < OOPS_HDR_VERSION) { in nvram_pstore_read()
518 length = be16_to_cpu(oops_hdr->version); in nvram_pstore_read()
522 hdr_size = sizeof(*oops_hdr); in nvram_pstore_read()
523 length = be16_to_cpu(oops_hdr->report_length); in nvram_pstore_read()
524 record->time.tv_sec = be64_to_cpu(oops_hdr->timestamp); in nvram_pstore_read()
660 struct oops_log_info *oops_hdr = (struct oops_log_info *)oops_buf; in oops_to_nvram() local
707 oops_hdr->version = cpu_to_be16(OOPS_HDR_VERSION); in oops_to_nvram()
708 oops_hdr->report_length = cpu_to_be16(text_len); in oops_to_nvram()
709 oops_hdr->timestamp = cpu_to_be64(ktime_get_real_seconds()); in oops_to_nvram()
713 (int) (sizeof(*oops_hdr) + text_len), err_type, in oops_to_nvram()