Lines Matching defs:header
108 static void output_table_header(FILE *out_fp, const struct dt_table_header *header) {
110 output_prop_hex(out_fp, "magic", header->magic);
111 output_prop_int(out_fp, "total_size", header->total_size);
112 output_prop_int(out_fp, "header_size", header->header_size);
113 output_prop_int(out_fp, "dt_entry_size", header->dt_entry_size);
114 output_prop_int(out_fp, "dt_entry_count", header->dt_entry_count);
115 output_prop_int(out_fp, "dt_entries_offset", header->dt_entries_offset);
116 output_prop_int(out_fp, "page_size", header->page_size);
117 output_prop_int(out_fp, "version", header->version);
151 struct dt_table_header header;
152 if (fread(&header, sizeof(header), 1, img_fp) != 1) {
156 /* TODO: check header */
157 output_table_header(out_fp, &header);
159 uint32_t entry_size = fdt32_to_cpu(header.dt_entry_size);
160 uint32_t entry_offset = fdt32_to_cpu(header.dt_entries_offset);
161 uint32_t entry_count = fdt32_to_cpu(header.dt_entry_count);