Lines Matching refs:magic
698 uint32_t crc, magic, hdr_crc; in ubi_io_read_ec_hdr() local
719 magic = be32_to_cpu(ec_hdr->magic); in ubi_io_read_ec_hdr()
720 if (magic != UBI_EC_HDR_MAGIC) { in ubi_io_read_ec_hdr()
748 pnum, magic, UBI_EC_HDR_MAGIC); in ubi_io_read_ec_hdr()
752 pnum, magic, UBI_EC_HDR_MAGIC); in ubi_io_read_ec_hdr()
812 ec_hdr->magic = cpu_to_be32(UBI_EC_HDR_MAGIC); in ubi_io_write_ec_hdr()
970 uint32_t crc, magic, hdr_crc; in ubi_io_read_vid_hdr() local
982 magic = be32_to_cpu(vid_hdr->magic); in ubi_io_read_vid_hdr()
983 if (magic != UBI_VID_HDR_MAGIC) { in ubi_io_read_vid_hdr()
1001 pnum, magic, UBI_VID_HDR_MAGIC); in ubi_io_read_vid_hdr()
1005 pnum, magic, UBI_VID_HDR_MAGIC); in ubi_io_read_vid_hdr()
1065 vid_hdr->magic = cpu_to_be32(UBI_VID_HDR_MAGIC); in ubi_io_write_vid_hdr()
1119 uint32_t magic; in self_check_ec_hdr() local
1124 magic = be32_to_cpu(ec_hdr->magic); in self_check_ec_hdr()
1125 if (magic != UBI_EC_HDR_MAGIC) { in self_check_ec_hdr()
1127 magic, UBI_EC_HDR_MAGIC); in self_check_ec_hdr()
1202 uint32_t magic; in self_check_vid_hdr() local
1207 magic = be32_to_cpu(vid_hdr->magic); in self_check_vid_hdr()
1208 if (magic != UBI_VID_HDR_MAGIC) { in self_check_vid_hdr()
1210 magic, pnum, UBI_VID_HDR_MAGIC); in self_check_vid_hdr()