Lines Matching refs:oops_hdr
369 struct oops_log_info *oops_hdr = (struct oops_log_info *)oops_buf; in zip_oops() local
377 oops_hdr->version = cpu_to_be16(OOPS_HDR_VERSION); in zip_oops()
378 oops_hdr->report_length = cpu_to_be16(zipped_len); in zip_oops()
379 oops_hdr->timestamp = cpu_to_be64(ktime_get_real_seconds()); in zip_oops()
415 struct oops_log_info *oops_hdr = (struct oops_log_info *) oops_buf; in nvram_pstore_write() local
424 oops_hdr->version = cpu_to_be16(OOPS_HDR_VERSION); in nvram_pstore_write()
425 oops_hdr->report_length = cpu_to_be16(size); in nvram_pstore_write()
426 oops_hdr->timestamp = cpu_to_be64(ktime_get_real_seconds()); in nvram_pstore_write()
432 (int) (sizeof(*oops_hdr) + size), err_type, count); in nvram_pstore_write()
450 struct oops_log_info *oops_hdr; in nvram_pstore_read() local
531 oops_hdr = (struct oops_log_info *)buff; in nvram_pstore_read()
532 if (be16_to_cpu(oops_hdr->version) < OOPS_HDR_VERSION) { in nvram_pstore_read()
535 length = be16_to_cpu(oops_hdr->version); in nvram_pstore_read()
539 hdr_size = sizeof(*oops_hdr); in nvram_pstore_read()
540 length = be16_to_cpu(oops_hdr->report_length); in nvram_pstore_read()
541 time->tv_sec = be64_to_cpu(oops_hdr->timestamp); in nvram_pstore_read()
675 struct oops_log_info *oops_hdr = (struct oops_log_info *)oops_buf; in oops_to_nvram() local
722 oops_hdr->version = cpu_to_be16(OOPS_HDR_VERSION); in oops_to_nvram()
723 oops_hdr->report_length = cpu_to_be16(text_len); in oops_to_nvram()
724 oops_hdr->timestamp = cpu_to_be64(ktime_get_real_seconds()); in oops_to_nvram()
728 (int) (sizeof(*oops_hdr) + text_len), err_type, in oops_to_nvram()