/external/vboot_reference/tests/ |
cgptlib_test.c | 14 #include "gpt.h" 72 static void RefreshCrc32(GptData *gpt) 77 header = (GptHeader *)gpt->primary_header; 78 entries = (GptEntry *)gpt->primary_entries; 79 header2 = (GptHeader *)gpt->secondary_header; 80 entries2 = (GptEntry *)gpt->secondary_entries; 94 static void ZeroHeaders(GptData *gpt) 96 Memset(gpt->primary_header, 0, MAX_SECTOR_SIZE); 97 Memset(gpt->secondary_header, 0, MAX_SECTOR_SIZE); 100 static void ZeroEntries(GptData *gpt) 119 static GptData gpt; local 222 GptData *gpt; local 240 GptData *gpt; local 271 GptData *gpt = GetEmptyGptData(); local 298 GptData *gpt = GetEmptyGptData(); local 351 GptData *gpt = GetEmptyGptData(); local 376 GptData *gpt = GetEmptyGptData(); local 408 GptData *gpt = GetEmptyGptData(); local 442 GptData *gpt = GetEmptyGptData(); local 463 GptData *gpt = GetEmptyGptData(); local 492 GptData *gpt = GetEmptyGptData(); local 534 GptData *gpt = GetEmptyGptData(); local 557 GptData *gpt = GetEmptyGptData(); local 627 GptData *gpt = GetEmptyGptData(); local 679 GptData *gpt = GetEmptyGptData(); local 705 GptData *gpt = GetEmptyGptData(); local 739 GptData *gpt = GetEmptyGptData(); local 816 GptData *gpt = GetEmptyGptData(); local 1037 GptData *gpt = GetEmptyGptData(); local 1082 GptData *gpt = GetEmptyGptData(); local 1122 GptData *gpt = GetEmptyGptData(); local 1137 GptData *gpt = GetEmptyGptData(); local 1172 GptData *gpt = GetEmptyGptData(); local 1199 GptData *gpt = GetEmptyGptData(); local 1224 GptData *gpt = GetEmptyGptData(); local 1316 GptData *gpt = GetEmptyGptData(); local 1331 GptData *gpt = GetEmptyGptData(); local 1390 GptData *gpt = GetEmptyGptData(); local 1424 GptData* gpt = GetEmptyGptData(); local [all...] |
/external/autotest/server/site_tests/kernel_IgnoreGptOptionServer/ |
kernel_IgnoreGptOptionServer.py | 9 """Test to check that the kernel is ignoring the cmd line option 'gpt'. 15 # Check if gpt option is present on the command line. 17 host.run('cat /proc/cmdline | grep -E "( gpt)|(gpt )"') 19 raise error.TestNAError('No need to check that "gpt" is ignored ' 26 msg = 'Not forcing GPT even though \'gpt\' specified on cmd line.' 29 raise error.TestFail('The option "gpt" not ignored by the kernel.')
|
control | 7 PURPOSE = 'Test that the kernel ignores the "gpt" cmd line option.' 13 Checks that kernel is ignoring the command line option "gpt".
|
/external/vboot_reference/cgpt/ |
cgpt_legacy.c | 22 h1 = (GptHeader *)drive.gpt.primary_header; 23 h2 = (GptHeader *)drive.gpt.secondary_header; 27 RepairEntries(&drive.gpt, MASK_SECONDARY); 28 drive.gpt.modified |= (GPT_MODIFIED_HEADER1 | GPT_MODIFIED_ENTRIES1 | 33 memset(drive.gpt.primary_entries, 0, drive.gpt.sector_bytes); 34 drive.gpt.modified |= (GPT_MODIFIED_HEADER1 | GPT_MODIFIED_ENTRIES1 | 38 UpdateCrc(&drive.gpt);
|
cgpt_repair.c | 22 int gpt_retval = GptSanityCheck(&drive.gpt); 27 GptRepair(&drive.gpt); 28 if (drive.gpt.modified & GPT_MODIFIED_HEADER1) 30 if (drive.gpt.modified & GPT_MODIFIED_ENTRIES1) 32 if (drive.gpt.modified & GPT_MODIFIED_ENTRIES2) 34 if (drive.gpt.modified & GPT_MODIFIED_HEADER2)
|
cgpt_common.c | 5 * Utility for ChromeOS-specific GPT partitions, Please see corresponding .c 55 if ((drive->gpt.valid_headers != MASK_BOTH) || 56 (drive->gpt.valid_entries != MASK_BOTH)) { 57 Warning("One of the GPT headers/entries is invalid\n\n"); 149 drive->gpt.sector_bytes = sector_bytes; 150 if (drive->size % drive->gpt.sector_bytes) { 152 (long long unsigned int)drive->size, drive->gpt.sector_bytes); 155 drive->gpt.streaming_drive_sectors = drive->size / drive->gpt.sector_bytes; 158 if (!(drive->gpt.flags & GPT_FLAG_EXTERNAL)) [all...] |
cgpt_create.c | 26 // We cannot assume the GPT headers or entry arrays have been allocated 28 AllocAndClear(&drive->gpt.primary_header, 29 drive->gpt.sector_bytes * GPT_HEADER_SECTORS); 30 AllocAndClear(&drive->gpt.secondary_header, 31 drive->gpt.sector_bytes * GPT_HEADER_SECTORS); 33 drive->gpt.modified |= (GPT_MODIFIED_HEADER1 | GPT_MODIFIED_ENTRIES1 | 38 GptHeader *h = (GptHeader *)drive->gpt.primary_header; 43 h->alternate_lba = drive->gpt.gpt_drive_sectors - GPT_HEADER_SECTORS; 52 if (drive->gpt.flags & GPT_FLAG_EXTERNAL) { 53 // We might have smaller space for the GPT table. Scale accordingly [all...] |
cgpt_show.c | 149 entry = GetEntry(&drive->gpt, secondary, i); 160 if (GPT_SUCCESS != (gpt_retval = GptSanityCheck(&drive->gpt))) { 174 GptEntry *entry = GetEntry(&drive->gpt, ANY_VALID, index); 227 entry = GetEntry(&drive->gpt, ANY_VALID, i); 253 if (drive->gpt.valid_headers & MASK_PRIMARY) { 255 (int)GPT_HEADER_SECTORS, "", "Pri GPT header"); 258 (int)GPT_HEADER_SECTORS, "INVALID", "Pri GPT header"); 262 ((drive->gpt.valid_headers & MASK_PRIMARY) && params->verbose)) { 267 header = (GptHeader*)drive->gpt.primary_header; 268 entries = (GptEntry*)drive->gpt.primary_entries [all...] |
/external/vboot_reference/firmware/lib/cgptlib/ |
cgptlib.c | 11 #include "gpt.h" 15 int GptInit(GptData *gpt) 19 gpt->modified = 0; 20 gpt->current_kernel = CGPT_KERNEL_ENTRY_NOT_FOUND; 21 gpt->current_priority = 999; 23 retval = GptSanityCheck(gpt); 29 GptRepair(gpt); 33 int GptNextKernelEntry(GptData *gpt, uint64_t *start_sector, uint64_t *size) 35 GptHeader *header = (GptHeader *)gpt->primary_header; 36 GptEntry *entries = (GptEntry *)gpt->primary_entries [all...] |
cgptlib_internal.c | 11 #include "gpt.h" 23 int CheckParameters(GptData *gpt) 26 if (gpt->sector_bytes != SECTOR_SIZE) 31 * cannot differ from streaming_drive_sectors if the GPT structs are 34 if (gpt->gpt_drive_sectors == 0 || 35 (!(gpt->flags & GPT_FLAG_EXTERNAL) && 36 gpt->gpt_drive_sectors != gpt->streaming_drive_sectors)) { 42 * too small to contain basic GPT structure (PMBR + Headers + Entries), 45 if (gpt->gpt_drive_sectors [all...] |
/external/vboot_reference/firmware/include/ |
gpt_misc.h | 9 #include "gpt.h" 39 * because those are what verified boot needs. For more precise control on GPT 55 * its GPT entry is marked with S1,P1,T15. 60 * its GPT entry is marked with S0,P0,T0. 65 /* If this bit is 1, the GPT is stored in another from the streaming data */ 73 * gpt_drive_sectors, but it does do a memset(gpt, 0, sizeof(GptData)). And so, 83 /* GPT primary header, from sector 1 of disk (size: 512 bytes) */ 85 /* GPT secondary header, from last sector of disk (size: 512 bytes) */ 87 /* Primary GPT table, follows primary header (size: 16 KB) */ 89 /* Secondary GPT table, precedes secondary header (size: 16 KB) * [all...] |
/external/syslinux/doc/ |
gpt.txt | 0 GPT boot protocol 3 There are two ways to boot a GPT-formatted disk on a BIOS system. 4 Hybrid booting, and the new GPT-only booting protocol originally 12 partitions present, as partitions, in the GPT PMBR sector. This means 19 All partitions, including the active partition, should have GPT 21 change the GPT partition table. 24 GPT disk with BIOS firmware. 29 This defines the T13-approved protocol for GPT partitions with BIOS 35 partition to be booted is marked by setting bit 2 in the GPT Partition 44 0x54504721 ("!GPT") and points DS:SI to a structure of the followin [all...] |
/external/vboot_reference/firmware/lib/cgptlib/include/ |
cgptlib_internal.h | 11 #include "gpt.h" 14 * If gpt->current_kernel is this value, means either: 15 * 1. an initial value before scanning GPT entries, 21 * Bit definitions and masks for GPT attributes. 48 /* Defines ChromeOS-specific limitation on GPT */ 57 /* Defines GPT sizes */ 81 int CheckParameters(GptData* gpt); 117 * If successful, sets gpt->valid_headers and gpt->valid_entries and returns 122 int GptSanityCheck(GptData *gpt); [all...] |
cgptlib.h | 18 * kernel partition in LBA sectors. gpt.current_kernel contains the partition 23 int GptNextKernelEntry(GptData *gpt, uint64_t *start_sector, uint64_t *size);
|
/external/vboot_reference/firmware/lib/ |
gpt_misc.c | 11 #include "gpt.h" 17 * Allocate and read GPT data from the drive. 49 /* Only read primary GPT if the primary header is valid */ 66 VBDEBUG(("Primary GPT header invalid!\n")); 74 /* Only read secondary GPT if the secondary header is valid */ 91 VBDEBUG(("Secondary GPT header invalid!\n")); 94 /* Return 0 if least one GPT header was valid */ 99 * Write any changes for the GPT data back to the drive, then free the buffers. 113 * TODO(namnguyen): Preserve padding between primary GPT header and 132 VBDEBUG(("Not updating GPT header 1: [all...] |
/external/gptfdisk/ |
fixparts.cc | 10 // Based on C++ classes originally created for GPT fdisk (gdisk and sgdisk) 52 // This switch() statement weeds out disks with GPT signatures and non-MBR 55 case hybrid: case gpt: 56 cerr << "\nThis disk appears to be a GPT disk. Use GNU Parted or GPT fdisk on it!\n"; 77 // GPT data (note this is different from the earlier check; this one only 78 // looks for the GPT signatures in the main and backup GPT area, not for 88 cout << "\nNOTICE: GPT signatures detected on the disk, but no 0xEE protective " 89 << "partition!\nThe GPT signatures are probably left over from a previous [all...] |
gdisk.8 | 3 .TH "GDISK" "8" "0.8.10" "Roderick W. Smith" "GPT fdisk Manual" 5 gdisk \- Interactive GUID partition table (GPT) manipulator 12 GPT fdisk (aka \fBgdisk\fR) is a text\-mode menu\-driven program for 16 Unique Identifier (GUID) Partition Table (GPT) format, or will load a GUID 20 GPT fdisk operates mainly on the GPT headers and partition tables; however, 27 main and backup data, as well as between the GPT headers and the partition 28 tables. For information on MBR vs. GPT, as well as GPT terminology and 33 \fBfdisk\fR, but \fBgdisk\fR modifies GPT partitions. It also has th [all...] |
current.spec | 1 Summary: GPT partitioning and MBR repair software 14 Partitioning software for GPT disks and to repair MBR disks. The gdisk, 15 cgdisk, and sgdisk utilities (in the gdisk package) are GPT-enabled 24 Summary: An fdisk-like partitioning tool for GPT disks 27 An fdisk-like partitioning tool for GPT disks. GPT 31 and the ability to convert MBR disks to GPT format. 72 disks. Removes stray GPT data, fixes mis-sized extended partitions,
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Guid/ |
EfiGuidLib.inf | 47 Gpt/Gpt.h
48 Gpt/Gpt.c
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Guid/Gpt/ |
Gpt.c | 14 Gpt.c
18 Guids used for the GPT as defined in EFI 1.0
20 GPT defines a new disk partitioning scheme and also describes
26 #include EFI_GUID_DEFINITION (Gpt)
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpm2MeasureBootLib/ |
DxeTpm2MeasureBootLib.uni | 5 // is not measured in PEI phase. And, it will also measure GPT partition.
8 // This library will have external input - PE/COFF image and GPT partition.
26 #string STR_MODULE_DESCRIPTION #language en-US "This library instance hooks LoadImage() API to measure every image that is not measured in PEI phase. And, it will also measure GPT partition. Caution: This module requires additional review when modified. This library will have external input - PE/COFF image and GPT partition. This external input must be validated carefully to avoid security issues such as buffer overflow or integer overflow."
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/ |
DxeTpmMeasureBootLib.uni | 5 // is not measured in PEI phase. And, it will also measure GPT partition.
8 // This library will have external input - PE/COFF image and GPT partition.
26 #string STR_MODULE_DESCRIPTION #language en-US "This library instance hooks LoadImage() API to measure every image that is not measured in PEI phase. And, it will also measure GPT partition. Caution: This module requires additional review when modified. This library will have external input - PE/COFF image and GPT partition. This external input must be validated carefully to avoid security issues such as buffer overflow or integer overflow."
|
/hardware/qcom/msm8998/gpt-utils/ |
Android.mk | 20 LOCAL_SRC_FILES := gpt-utils.cpp 31 LOCAL_SRC_FILES := gpt-utils.cpp 41 LOCAL_COPY_HEADERS_TO := gpt-utils/inc 42 LOCAL_COPY_HEADERS := gpt-utils.h
|
/device/google/marlin/sepolicy/ |
hal_bootctl.te | 4 # Getting and setting GPT attributes for the bootloader iterates over all the 18 # Edit the attributes stored in the GPT.
|
/device/linaro/bootloader/edk2/DuetPkg/BootSector/ |
FILE.LST | 37 GPT
39 Gpt.as
|