Lines Matching refs:fHeader

62 		&fHeader, sizeof(gpt_table_header));  in Header()
64 if (!_IsHeaderValid(fHeader, EFI_HEADER_LOCATION)) in Header()
68 if (fStatus == B_OK && lastBlock != fHeader.AlternateBlock()) { in Header()
70 B_PRIu64 ")\n", fHeader.AlternateBlock(), lastBlock); in Header()
71 lastBlock = fHeader.AlternateBlock(); in Header()
88 fHeader = fBackupHeader; in Header()
89 fHeader.SetAbsoluteBlock(EFI_HEADER_LOCATION); in Header()
90 fHeader.SetEntriesBlock(EFI_PARTITION_ENTRIES_BLOCK); in Header()
91 fHeader.SetAlternateBlock(lastBlock); in Header()
108 fStatus = _Read(fd, fHeader.EntriesBlock() * blockSize, in Header()
126 _Dump(fHeader); in Header()
147 memcpy(fHeader.header, EFI_PARTITION_HEADER, sizeof(fHeader.header)); in Header()
148 fHeader.SetRevision(EFI_TABLE_REVISION); in Header()
149 fHeader.SetHeaderSize(sizeof(fHeader)); in Header()
150 fHeader.SetHeaderCRC(0); in Header()
151 fHeader.SetAbsoluteBlock(EFI_HEADER_LOCATION); in Header()
152 fHeader.SetAlternateBlock(lastBlock); in Header()
155 memcpy((uint8*)&fHeader.disk_guid, uuid, sizeof(guid_t)); in Header()
156 fHeader.SetEntriesBlock(EFI_PARTITION_ENTRIES_BLOCK); in Header()
157 fHeader.SetEntryCount(EFI_PARTITION_ENTRY_COUNT); in Header()
158 fHeader.SetEntrySize(EFI_PARTITION_ENTRY_SIZE); in Header()
159 fHeader.SetEntriesCRC(0); in Header()
172 fHeader.SetFirstUsableBlock(EFI_PARTITION_ENTRIES_BLOCK + entryBlocks); in Header()
173 fHeader.SetLastUsableBlock(lastBlock - 1 - entryBlocks); in Header()
178 _Dump(fHeader); in Header()
211 off_t entryOffset = entryIndex * fHeader.EntrySize(); in WriteEntry()
214 fHeader.EntriesBlock() * fBlockSize + entryOffset, in WriteEntry()
215 fEntries + entryOffset, fHeader.EntrySize()); in WriteEntry()
225 fEntries + entryOffset, fHeader.EntrySize()); in WriteEntry()
242 uint64 deviceSize = fHeader.AlternateBlock() * fBlockSize; in Write()
252 status_t status = _Write(fd, fHeader.EntriesBlock() * fBlockSize, fEntries, in Write()
277 status_t status = _Write(fd, fHeader.AbsoluteBlock() * fBlockSize, in _WriteHeader()
278 &fHeader, sizeof(gpt_table_header)); in _WriteHeader()
303 _UpdateCRC(fHeader); in _UpdateCRC()
357 return fHeader.EntriesCRC() == crc32(fEntries, _EntryArraySize()); in _ValidateEntriesCRC()
364 fBackupHeader = fHeader; in _SetBackupHeaderFromPrimary()