Lines Matching refs:header0
403 static int rkcommon_parse_header(const void *buf, struct header0_info *header0, in rkcommon_parse_header() argument
417 memcpy((void *)header0, buf, sizeof(struct header0_info)); in rkcommon_parse_header()
418 rc4_encode((void *)header0, sizeof(struct header0_info), rc4_key); in rkcommon_parse_header()
420 if (header0->magic != RK_MAGIC) in rkcommon_parse_header()
424 if (header0->disable_rc4 == 0) in rkcommon_parse_header()
427 hdr1_offset = header0->init_offset * RK_BLK_SIZE; in rkcommon_parse_header()
460 struct header0_info header0; in rkcommon_verify_header() local
468 ret = rkcommon_parse_header(buf, &header0, &img_spl_info); in rkcommon_verify_header()
494 struct header0_info header0; in rkcommon_print_header() local
513 ret = rkcommon_parse_header(buf, &header0, &spl_info); in rkcommon_print_header()
525 init_size = header0.init_size * RK_BLK_SIZE; in rkcommon_print_header()
526 boot_size = header0.init_boot_size * RK_BLK_SIZE - init_size; in rkcommon_print_header()