Lines Matching full:header
35 struct ar7_bin_rec header; in create_mtd_partitions() local
59 mtd_read(master, offset, sizeof(header), &len, in create_mtd_partitions()
60 (uint8_t *)&header); in create_mtd_partitions()
61 if (!strncmp((char *)&header, "TIENV0.8", 8)) in create_mtd_partitions()
63 if (header.checksum == LOADER_MAGIC1) in create_mtd_partitions()
65 if (header.checksum == LOADER_MAGIC2) in create_mtd_partitions()
77 switch (header.checksum) { in create_mtd_partitions()
79 while (header.length) { in create_mtd_partitions()
80 offset += sizeof(header) + header.length; in create_mtd_partitions()
81 mtd_read(master, offset, sizeof(header), &len, in create_mtd_partitions()
82 (uint8_t *)&header); in create_mtd_partitions()
84 root_offset = offset + sizeof(header) + 4; in create_mtd_partitions()
87 while (header.length) { in create_mtd_partitions()
88 offset += sizeof(header) + header.length; in create_mtd_partitions()
89 mtd_read(master, offset, sizeof(header), &len, in create_mtd_partitions()
90 (uint8_t *)&header); in create_mtd_partitions()
92 root_offset = offset + sizeof(header) + 4 + 0xff; in create_mtd_partitions()
96 printk(KERN_WARNING "Unknown magic: %08x\n", header.checksum); in create_mtd_partitions()
100 mtd_read(master, root_offset, sizeof(header), &len, (u8 *)&header); in create_mtd_partitions()
101 if (header.checksum != SQUASHFS_MAGIC) { in create_mtd_partitions()