Lines Matching refs:header
59 struct boot_file_head header; member
74 if ((sizeof(img.header) % 32) != 0) { in main()
138 img.header.b_instruction = /* b instruction */ in main()
142 memcpy(img.header.magic, BOOT0_MAGIC, 8); /* no '0' termination */ in main()
143 img.header.length = in main()
145 img.header.b_instruction = cpu_to_le32(img.header.b_instruction); in main()
146 img.header.length = cpu_to_le32(img.header.length); in main()
148 memcpy(img.header.spl_signature, SPL_SIGNATURE, 3); /* "sunxi" marker */ in main()
149 img.header.spl_signature[3] = SPL_HEADER_VERSION; in main()
152 if (strlen(default_dt) + 1 <= sizeof(img.header.string_pool)) { in main()
153 strcpy((char *)img.header.string_pool, default_dt); in main()
154 img.header.dt_name_offset = in main()
163 gen_check_sum(&img.header); in main()
165 count = write(fd_out, &img, le32_to_cpu(img.header.length)); in main()
166 if (count != le32_to_cpu(img.header.length)) { in main()