Lines Matching refs:header
49 struct ar7_bin_rec header; in create_mtd_partitions() local
73 mtd_read(master, offset, sizeof(header), &len, in create_mtd_partitions()
74 (uint8_t *)&header); in create_mtd_partitions()
75 if (!strncmp((char *)&header, "TIENV0.8", 8)) in create_mtd_partitions()
77 if (header.checksum == LOADER_MAGIC1) in create_mtd_partitions()
79 if (header.checksum == LOADER_MAGIC2) in create_mtd_partitions()
91 switch (header.checksum) { in create_mtd_partitions()
93 while (header.length) { in create_mtd_partitions()
94 offset += sizeof(header) + header.length; in create_mtd_partitions()
95 mtd_read(master, offset, sizeof(header), &len, in create_mtd_partitions()
96 (uint8_t *)&header); in create_mtd_partitions()
98 root_offset = offset + sizeof(header) + 4; in create_mtd_partitions()
101 while (header.length) { in create_mtd_partitions()
102 offset += sizeof(header) + header.length; in create_mtd_partitions()
103 mtd_read(master, offset, sizeof(header), &len, in create_mtd_partitions()
104 (uint8_t *)&header); in create_mtd_partitions()
106 root_offset = offset + sizeof(header) + 4 + 0xff; in create_mtd_partitions()
110 printk(KERN_WARNING "Unknown magic: %08x\n", header.checksum); in create_mtd_partitions()
114 mtd_read(master, root_offset, sizeof(header), &len, (u8 *)&header); in create_mtd_partitions()
115 if (header.checksum != SQUASHFS_MAGIC) { in create_mtd_partitions()