Lines Matching refs:magic
67 uint32_t magic; member
90 uint32_t magic; member
104 uint32_t magic; member
314 hdr->magic = RK_MAGIC; in rkcommon_set_header0()
347 hdr->magic = cpu_to_le32(RK_MAGIC_V2); in rkcommon_set_header0_v2()
378 if (memcmp(&hdr->magic, "RSAK", 4)) in rkcommon_set_header()
379 memcpy(&hdr->magic, rkcommon_get_spl_hdr(params), RK_SPL_HDR_SIZE); in rkcommon_set_header()
420 if (header0->magic != RK_MAGIC) in rkcommon_parse_header()
433 if (!memcmp(&hdr1_sdmmc->magic, spl_infos[i].spl_hdr, 4)) { in rkcommon_parse_header()
437 } else if (!memcmp(&hdr1_spi->magic, spl_infos[i].spl_hdr, 4)) { in rkcommon_parse_header()
451 if (le32_to_cpu(header->magic) != RK_MAGIC_V2) in rkcommon_parse_header_v2()