Home
last modified time | relevance | path

Searched refs:sector_bytes (Results 1 – 11 of 11) sorted by relevance

/external/vboot_reference/cgpt/
Dcgpt_common.c65 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 …]
Dcgpt_create.c29 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()
Dcgpt.h80 const uint64_t sector_bytes,
95 const uint64_t sector_bytes,
Dcgpt_legacy.c33 memset(drive.gpt.primary_entries, 0, drive.gpt.sector_bytes); in CgptLegacy()
/external/vboot_reference/firmware/lib/
Dgpt_misc.c33 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()
Dvboot_kernel.c118 gpt.sector_bytes = (uint32_t)blba; in LoadKernel()
/external/vboot_reference/tests/
Dvboot_kernel_tests.c298 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 …]
Dcgptlib_test.c152 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/
Dgpt_misc.h92 uint32_t sector_bytes; member
/external/kernel-headers/original/uapi/linux/
Dhdreg.h405 unsigned short sector_bytes; /* unformatted bytes per sector */ member
/external/vboot_reference/firmware/lib/cgptlib/
Dcgptlib_internal.c26 if (gpt->sector_bytes != SECTOR_SIZE) in CheckParameters()