Searched refs:gpt_drive_sectors (Results 1 – 10 of 10) sorted by relevance
/external/vboot_reference/tests/ |
D | cgptlib_test.c | 154 gpt->gpt_drive_sectors = DEFAULT_DRIVE_SECTORS; in BuildTestGptData() 261 gpt->gpt_drive_sectors = cases[i].drive_sectors; in ParameterTests() 356 EXPECT(1 == CheckHeader(NULL, 0, gpt->streaming_drive_sectors, gpt->gpt_drive_sectors, 0)); in SignatureTest() 363 EXPECT(1 == CheckHeader(h1, 0, gpt->streaming_drive_sectors, gpt->gpt_drive_sectors, 0)); in SignatureTest() 364 EXPECT(1 == CheckHeader(h2, 1, gpt->streaming_drive_sectors, gpt->gpt_drive_sectors, 0)); in SignatureTest() 398 EXPECT(CheckHeader(h1, 0, gpt->streaming_drive_sectors, gpt->gpt_drive_sectors, 0) == in RevisionTest() 400 EXPECT(CheckHeader(h2, 1, gpt->streaming_drive_sectors, gpt->gpt_drive_sectors, 0) == in RevisionTest() 431 EXPECT(CheckHeader(h1, 0, gpt->streaming_drive_sectors, gpt->gpt_drive_sectors, 0) == in SizeTest() 433 EXPECT(CheckHeader(h2, 1, gpt->streaming_drive_sectors, gpt->gpt_drive_sectors, 0) == in SizeTest() 450 EXPECT(1 == CheckHeader(h1, 0, gpt->streaming_drive_sectors, gpt->gpt_drive_sectors, 0)); in CrcFieldTest() [all …]
|
D | vboot_kernel_tests.c | 299 g.streaming_drive_sectors = g.gpt_drive_sectors = MOCK_SECTOR_COUNT; in ReadWriteGptTest() 326 g.gpt_drive_sectors, 0), in ReadWriteGptTest() 329 g.gpt_drive_sectors, 0), in ReadWriteGptTest() 345 g.gpt_drive_sectors, 0), in ReadWriteGptTest() 348 g.gpt_drive_sectors, 0), in ReadWriteGptTest() 365 g.gpt_drive_sectors, 0), in ReadWriteGptTest() 368 g.gpt_drive_sectors, 0), in ReadWriteGptTest() 396 g.gpt_drive_sectors, 0), in ReadWriteGptTest() 421 g.gpt_drive_sectors, 0), in ReadWriteGptTest()
|
/external/vboot_reference/firmware/lib/ |
D | gpt_misc.c | 53 gptdata->gpt_drive_sectors, in AllocAndReadGptData() 70 if (0 != VbExDiskRead(disk_handle, gptdata->gpt_drive_sectors - 1, 1, in AllocAndReadGptData() 78 gptdata->gpt_drive_sectors, in AllocAndReadGptData() 158 entries_lba = (gptdata->gpt_drive_sectors - entries_sectors - in WriteAndFreeGptData() 166 gptdata->gpt_drive_sectors - 1, 1, in WriteAndFreeGptData()
|
D | vboot_kernel.c | 120 gpt.gpt_drive_sectors = params->gpt_lba_count; in LoadKernel()
|
/external/vboot_reference/firmware/lib/cgptlib/ |
D | cgptlib_internal.c | 34 if (gpt->gpt_drive_sectors == 0 || in CheckParameters() 36 gpt->gpt_drive_sectors != gpt->streaming_drive_sectors)) { in CheckParameters() 45 if (gpt->gpt_drive_sectors < in CheckParameters() 68 uint64_t gpt_drive_sectors, uint32_t flags) in CheckHeader() argument 115 if (h->my_lba != gpt_drive_sectors - GPT_HEADER_SECTORS) in CheckHeader() 255 gpt->gpt_drive_sectors, gpt->flags)) { in GptSanityCheck() 260 gpt->gpt_drive_sectors, gpt->flags)) { in GptSanityCheck() 331 header2->my_lba = gpt->gpt_drive_sectors - GPT_HEADER_SECTORS; in GptRepair()
|
/external/vboot_reference/cgpt/ |
D | cgpt_create.c | 43 h->alternate_lba = drive->gpt.gpt_drive_sectors - GPT_HEADER_SECTORS; in GptCreate() 67 (drive->gpt.gpt_drive_sectors / 2) * drive->gpt.sector_bytes; in GptCreate()
|
D | cgpt_common.c | 159 drive->gpt.gpt_drive_sectors = drive->gpt.streaming_drive_sectors; in GptLoad() 170 drive->gpt.gpt_drive_sectors - GPT_PMBR_SECTORS, in GptLoad() 177 drive->gpt.gpt_drive_sectors, in GptLoad() 191 drive->gpt.gpt_drive_sectors, in GptLoad() 219 drive->gpt.gpt_drive_sectors - GPT_PMBR_SECTORS, in GptSave() 317 drive->gpt.gpt_drive_sectors = gpt_drive_size / sector_bytes; in DriveOpen() 950 secondary_header->my_lba = gpt->gpt_drive_sectors - 1; /* the last sector */ in RepairHeader()
|
D | cgpt_show.c | 303 printf(GPT_FMT, (int)(drive->gpt.gpt_drive_sectors - GPT_HEADER_SECTORS), in GptShow()
|
/external/vboot_reference/firmware/include/ |
D | gpt_misc.h | 96 uint64_t gpt_drive_sectors; member
|
/external/vboot_reference/firmware/lib/cgptlib/include/ |
D | cgptlib_internal.h | 90 uint64_t gpt_drive_sectors, uint32_t flags);
|