Lines Matching defs:header

46  * Load the first sector that carries MBR header.
79 VERBOSE("MBR header may have an invalid first LBA\n");
84 VERBOSE("MBR header entry has an invalid number of sectors\n");
93 * Load GPT header and check the GPT signature and header CRC.
99 gpt_header_t header;
110 result = io_read(image_handle, (uintptr_t)&header,
113 VERBOSE("GPT header read error(%i) or read mismatch occurred,"
118 if (memcmp(header.signature, GPT_SIGNATURE,
119 sizeof(header.signature)) != 0) {
120 VERBOSE("GPT header signature failure\n");
129 header_crc = header.header_crc;
130 header.header_crc = 0U;
132 calc_crc = tf_crc32(0U, (uint8_t *)&header, sizeof(gpt_header_t));
139 header.header_crc = header_crc;
142 list.entry_count = header.list_num;
147 *part_lba = header.part_lba;
152 * Load a single MBR entry based on details from MBR header.
276 * Try retrieving and parsing the backup-GPT header and backup GPT entries.
277 * Last 33 blocks contains the backup-GPT entries and header.
297 * We need to read 32 blocks of GPT entries and one block of GPT header
299 * Backup-GPT header and its entries.
306 * block of backup-GPT header.
316 INFO("Trying to retrieve back-up GPT header\n");
317 /* Last block is backup-GPT header, after the end of GPT entries */
321 ERROR("Failed to retrieve Backup GPT header,"
328 * entries while last block was header.
338 * Load a GPT partition, Try retrieving and parsing the primary GPT header,
339 * if its corrupted try loading backup GPT header and then retrieve list
348 /* Try to load Primary GPT header from LBA1 */
352 VERBOSE("Failed to retrieve Primary GPT header,"
353 "trying to retrieve back-up GPT header\n");