/external/vboot_reference/firmware/lib/ |
gpt_misc.c | 19 * The sector_bytes and gpt_drive_sectors fields should be filled on input. The 53 gptdata->gpt_drive_sectors, 70 if (0 != VbExDiskRead(disk_handle, gptdata->gpt_drive_sectors - 1, 1, 78 gptdata->gpt_drive_sectors, 158 entries_lba = (gptdata->gpt_drive_sectors - entries_sectors - 166 gptdata->gpt_drive_sectors - 1, 1,
|
vboot_kernel.c | 120 gpt.gpt_drive_sectors = params->gpt_lba_count;
|
/external/vboot_reference/tests/ |
cgptlib_test.c | 154 gpt->gpt_drive_sectors = DEFAULT_DRIVE_SECTORS; 261 gpt->gpt_drive_sectors = cases[i].drive_sectors; 356 EXPECT(1 == CheckHeader(NULL, 0, gpt->streaming_drive_sectors, gpt->gpt_drive_sectors, 0)); 363 EXPECT(1 == CheckHeader(h1, 0, gpt->streaming_drive_sectors, gpt->gpt_drive_sectors, 0)); 364 EXPECT(1 == CheckHeader(h2, 1, gpt->streaming_drive_sectors, gpt->gpt_drive_sectors, 0)); 398 EXPECT(CheckHeader(h1, 0, gpt->streaming_drive_sectors, gpt->gpt_drive_sectors, 0) == 400 EXPECT(CheckHeader(h2, 1, gpt->streaming_drive_sectors, gpt->gpt_drive_sectors, 0) == 431 EXPECT(CheckHeader(h1, 0, gpt->streaming_drive_sectors, gpt->gpt_drive_sectors, 0) == 433 EXPECT(CheckHeader(h2, 1, gpt->streaming_drive_sectors, gpt->gpt_drive_sectors, 0) == 450 EXPECT(1 == CheckHeader(h1, 0, gpt->streaming_drive_sectors, gpt->gpt_drive_sectors, 0)) [all...] |
vboot_kernel_tests.c | 299 g.streaming_drive_sectors = g.gpt_drive_sectors = MOCK_SECTOR_COUNT; 326 g.gpt_drive_sectors, 0), 329 g.gpt_drive_sectors, 0), 345 g.gpt_drive_sectors, 0), 348 g.gpt_drive_sectors, 0), 365 g.gpt_drive_sectors, 0), 368 g.gpt_drive_sectors, 0), 396 g.gpt_drive_sectors, 0), 421 g.gpt_drive_sectors, 0),
|
/external/vboot_reference/cgpt/ |
cgpt_create.c | 43 h->alternate_lba = drive->gpt.gpt_drive_sectors - GPT_HEADER_SECTORS; 59 // Half the size of gpt_drive_sectors must be big enough to hold PMBR + 67 (drive->gpt.gpt_drive_sectors / 2) * drive->gpt.sector_bytes;
|
cgpt_common.c | 157 /* TODO(namnguyen): Remove this and totally trust gpt_drive_sectors. */ 159 drive->gpt.gpt_drive_sectors = drive->gpt.streaming_drive_sectors; 160 } /* Else, we trust gpt.gpt_drive_sectors. */ 170 drive->gpt.gpt_drive_sectors - GPT_PMBR_SECTORS, 177 drive->gpt.gpt_drive_sectors, 191 drive->gpt.gpt_drive_sectors, 219 drive->gpt.gpt_drive_sectors - GPT_PMBR_SECTORS, 317 drive->gpt.gpt_drive_sectors = gpt_drive_size / sector_bytes; 950 secondary_header->my_lba = gpt->gpt_drive_sectors - 1; /* the last sector */ [all...] |
cgpt_show.c | 303 printf(GPT_FMT, (int)(drive->gpt.gpt_drive_sectors - GPT_HEADER_SECTORS),
|
/external/vboot_reference/firmware/lib/cgptlib/ |
cgptlib_internal.c | 30 * gpt_drive_sectors should be reasonable. It cannot be unset, and it 34 if (gpt->gpt_drive_sectors == 0 || 36 gpt->gpt_drive_sectors != gpt->streaming_drive_sectors)) { 45 if (gpt->gpt_drive_sectors < 68 uint64_t gpt_drive_sectors, uint32_t flags) 115 if (h->my_lba != gpt_drive_sectors - GPT_HEADER_SECTORS) 255 gpt->gpt_drive_sectors, gpt->flags)) { 260 gpt->gpt_drive_sectors, gpt->flags)) { 331 header2->my_lba = gpt->gpt_drive_sectors - GPT_HEADER_SECTORS;
|
/external/vboot_reference/firmware/include/ |
gpt_misc.h | 69 * A note about stored_on_device and gpt_drive_sectors: 73 * gpt_drive_sectors, but it does do a memset(gpt, 0, sizeof(GptData)). And so, 76 * cgpt_common:GptLoad(), we need to have simple shims to set gpt_drive_sectors 96 uint64_t gpt_drive_sectors; member in struct:__anon43239
|
/external/vboot_reference/firmware/lib/cgptlib/include/ |
cgptlib_internal.h | 90 uint64_t gpt_drive_sectors, uint32_t flags);
|