Searched refs:sector_bytes (Results 1 – 11 of 11) sorted by relevance
/external/vboot_reference/cgpt/ |
D | cgpt_common.c | 65 const uint64_t sector_bytes, in Load() argument 71 if (!sector_count || !sector_bytes) { in Load() 73 __FUNCTION__, __LINE__, sector_count, sector_bytes); in Load() 77 if (sector_bytes > (UINT64_MAX / sector_count)) { in Load() 79 __FUNCTION__, __LINE__, sector_count, sector_bytes); in Load() 82 count = sector_bytes * sector_count; in Load() 86 if (-1 == lseek(drive->fd, sector * sector_bytes, SEEK_SET)) { in Load() 130 const uint64_t sector_bytes, in Save() argument 136 count = sector_bytes * sector_count; in Save() 138 if (-1 == lseek(drive->fd, sector * sector_bytes, SEEK_SET)) in Save() [all …]
|
D | cgpt_create.c | 29 drive->gpt.sector_bytes * GPT_HEADER_SECTORS); in GptCreate() 31 drive->gpt.sector_bytes * GPT_HEADER_SECTORS); in GptCreate() 63 (GPT_PMBR_SECTORS + GPT_HEADER_SECTORS) * drive->gpt.sector_bytes; in GptCreate() 67 (drive->gpt.gpt_drive_sectors / 2) * drive->gpt.sector_bytes; in GptCreate()
|
D | cgpt.h | 80 const uint64_t sector_bytes, 95 const uint64_t sector_bytes,
|
D | cgpt_legacy.c | 33 memset(drive.gpt.primary_entries, 0, drive.gpt.sector_bytes); in CgptLegacy()
|
/external/vboot_reference/firmware/lib/ |
D | gpt_misc.c | 33 gptdata->primary_header = (uint8_t *)VbExMalloc(gptdata->sector_bytes); in AllocAndReadGptData() 35 (uint8_t *)VbExMalloc(gptdata->sector_bytes); in AllocAndReadGptData() 59 / gptdata->sector_bytes; in AllocAndReadGptData() 84 / gptdata->sector_bytes; in AllocAndReadGptData() 109 uint64_t entries_sectors = entries_bytes / gptdata->sector_bytes; in WriteAndFreeGptData() 222 return GptGetEntrySizeLba(e) * gpt->sector_bytes; in GptGetEntrySizeBytes()
|
D | vboot_kernel.c | 118 gpt.sector_bytes = (uint32_t)blba; in LoadKernel()
|
/external/vboot_reference/tests/ |
D | vboot_kernel_tests.c | 298 g.sector_bytes = MOCK_SECTOR_SIZE; in ReadWriteGptTest() 313 Memset(g.primary_header, '\0', g.sector_bytes); in ReadWriteGptTest() 429 Memset(g.primary_header, '\0', g.sector_bytes); in ReadWriteGptTest() 443 Memset(g.primary_header, '\0', g.sector_bytes); in ReadWriteGptTest() 471 Memset(g.primary_header, '\0', g.sector_bytes); in ReadWriteGptTest() 477 Memset(g.primary_header, '\0', g.sector_bytes); in ReadWriteGptTest() 483 Memset(g.primary_header, '\0', g.sector_bytes); in ReadWriteGptTest() 489 Memset(g.primary_header, '\0', g.sector_bytes); in ReadWriteGptTest() 497 Memset(g.primary_header, '\0', g.sector_bytes); in ReadWriteGptTest() 504 Memset(g.primary_header, '\0', g.sector_bytes); in ReadWriteGptTest() [all …]
|
D | cgptlib_test.c | 152 gpt->sector_bytes = DEFAULT_SECTOR_SIZE; in BuildTestGptData() 227 gpt->sector_bytes = 0; in TestBuildTestGptData() 242 uint32_t sector_bytes; in ParameterTests() member 259 gpt->sector_bytes = cases[i].sector_bytes; in ParameterTests() 835 gpt->sector_bytes = 1024; in SanityCheckTest()
|
/external/vboot_reference/firmware/include/ |
D | gpt_misc.h | 92 uint32_t sector_bytes; member
|
/external/kernel-headers/original/uapi/linux/ |
D | hdreg.h | 405 unsigned short sector_bytes; /* unformatted bytes per sector */ member
|
/external/vboot_reference/firmware/lib/cgptlib/ |
D | cgptlib_internal.c | 26 if (gpt->sector_bytes != SECTOR_SIZE) in CheckParameters()
|