Lines Matching refs:header0
280 static int rkcommon_parse_header(const void *buf, struct header0_info *header0, in rkcommon_parse_header() argument
294 memcpy((void *)header0, buf, sizeof(struct header0_info)); in rkcommon_parse_header()
295 rc4_encode((void *)header0, sizeof(struct header0_info), rc4_key); in rkcommon_parse_header()
297 if (le32_to_cpu(header0->signature) != RK_SIGNATURE) in rkcommon_parse_header()
301 if (le32_to_cpu(header0->disable_rc4) == 0) in rkcommon_parse_header()
304 hdr1_offset = le16_to_cpu(header0->init_offset) * RK_BLK_SIZE; in rkcommon_parse_header()
329 struct header0_info header0; in rkcommon_verify_header() local
333 ret = rkcommon_parse_header(buf, &header0, &img_spl_info); in rkcommon_verify_header()
359 struct header0_info header0; in rkcommon_print_header() local
364 ret = rkcommon_parse_header(buf, &header0, &spl_info); in rkcommon_print_header()
380 init_size = le16_to_cpu(header0.init_size) * RK_BLK_SIZE; in rkcommon_print_header()
383 boot_size = le16_to_cpu(header0.init_boot_size) * RK_BLK_SIZE - init_size; in rkcommon_print_header()