Lines Matching refs:header

80 	EFI::Header* header = new (std::nothrow) EFI::Header(fd,
82 status_t status = header->InitCheck();
84 delete header;
88 *_cookie = header;
89 if (header->IsDirty()) {
106 EFI::Header* header = (EFI::Header*)_cookie;
111 partition->content_cookie = header;
117 for (uint32 i = 0; i < header->EntryCount(); i++) {
118 const gpt_partition_entry& entry = header->EntryAt(i);
150 child->content_cookie = header;
378 EFI::Header* header = (EFI::Header*)partition->content_cookie;
380 for (uint32 i = 0; i < header->EntryCount(); i++) {
381 const gpt_partition_entry& entry = header->EntryAt(i);
394 off_t firstUsable = header->FirstUsableBlock() * partition->block_size;
398 off_t lastUsable = header->LastUsableBlock() * partition->block_size;
510 EFI::Header* header = (EFI::Header*)partition->content_cookie;
511 if (header == NULL)
515 if (entryIndex >= header->EntryCount())
527 gpt_partition_entry& entry = header->EntryAt(entryIndex);
530 status_t result = header->WriteEntry(fd, entryIndex);
571 EFI::Header* header = (EFI::Header*)partition->content_cookie;
572 if (header == NULL)
576 if (entryIndex >= header->EntryCount())
592 gpt_partition_entry& entry = header->EntryAt(entryIndex);
598 status_t result = header->WriteEntry(fd, entryIndex);
632 EFI::Header* header = (EFI::Header*)partition->content_cookie;
633 if (header == NULL)
637 if (entryIndex >= header->EntryCount())
642 gpt_partition_entry& entry = header->EntryAt(entryIndex);
645 status_t result = header->WriteEntry(fd, entryIndex);
678 EFI::Header* header = (EFI::Header*)partition->content_cookie;
679 if (header == NULL)
683 if (entryIndex >= header->EntryCount())
692 gpt_partition_entry& entry = header->EntryAt(entryIndex);
695 status_t result = header->WriteEntry(fd, entryIndex);
720 EFI::Header header((partitionSize - 1) / partition->block_size,
722 status_t result = header.InitCheck();
726 result = header.Write(fd);
755 // The second block is the GPT header
757 // blocks, but that doesn't matter as soon as the header is erased).
795 EFI::Header* header = (EFI::Header*)partition->content_cookie;
796 if (header == NULL)
818 gpt_partition_entry& entry = header->EntryAt(entryIndex);
829 status_t result = header->WriteEntry(fd, entryIndex);
872 EFI::Header* header = (EFI::Header*)partition->content_cookie;
873 if (header == NULL)
877 if (entryIndex >= header->EntryCount())
885 gpt_partition_entry& entry = header->EntryAt(entryIndex);
889 status_t result = header->WriteEntry(fd, entryIndex);