/external/vboot_reference/firmware/lib/ |
gpt_misc.c | 19 * The sector_bytes and gpt_drive_sectors fields should be filled on input. The 33 gptdata->primary_header = (uint8_t *)VbExMalloc(gptdata->sector_bytes); 35 (uint8_t *)VbExMalloc(gptdata->sector_bytes); 59 / gptdata->sector_bytes; 84 / gptdata->sector_bytes; 109 uint64_t entries_sectors = entries_bytes / gptdata->sector_bytes; 222 return GptGetEntrySizeLba(e) * gpt->sector_bytes;
|
/external/vboot_reference/cgpt/ |
cgpt_common.c | 65 const uint64_t sector_bytes, 71 if (!sector_count || !sector_bytes) { 72 Error("%s() failed at line %d: sector_count=%d, sector_bytes=%d\n", 73 __FUNCTION__, __LINE__, sector_count, sector_bytes); 76 /* Make sure that sector_bytes * sector_count doesn't roll over. */ 77 if (sector_bytes > (UINT64_MAX / sector_count)) { 78 Error("%s() failed at line %d: sector_count=%d, sector_bytes=%d\n", 79 __FUNCTION__, __LINE__, sector_count, sector_bytes); 82 count = sector_bytes * sector_count; 86 if (-1 == lseek(drive->fd, sector * sector_bytes, SEEK_SET)) 291 uint32_t sector_bytes; local [all...] |
cgpt_create.c | 29 drive->gpt.sector_bytes * GPT_HEADER_SECTORS); 31 drive->gpt.sector_bytes * GPT_HEADER_SECTORS); 63 (GPT_PMBR_SECTORS + GPT_HEADER_SECTORS) * drive->gpt.sector_bytes; 67 (drive->gpt.gpt_drive_sectors / 2) * drive->gpt.sector_bytes;
|
cgpt_legacy.c | 33 memset(drive.gpt.primary_entries, 0, drive.gpt.sector_bytes);
|
cgpt.h | 73 * sector_bytes -- bytes per sector 80 const uint64_t sector_bytes, 88 * sector_bytes -- bytes per sector 95 const uint64_t sector_bytes,
|
/external/vboot_reference/firmware/include/ |
gpt_misc.h | 92 uint32_t sector_bytes; member in struct:__anon27264 124 * sector_bytes 150 * Allocate and read GPT data from the drive. The sector_bytes and
|
/external/vboot_reference/tests/ |
vboot_kernel_tests.c | 298 g.sector_bytes = MOCK_SECTOR_SIZE; 313 Memset(g.primary_header, '\0', g.sector_bytes); 429 Memset(g.primary_header, '\0', g.sector_bytes); 443 Memset(g.primary_header, '\0', g.sector_bytes); 471 Memset(g.primary_header, '\0', g.sector_bytes); 477 Memset(g.primary_header, '\0', g.sector_bytes); 483 Memset(g.primary_header, '\0', g.sector_bytes); 489 Memset(g.primary_header, '\0', g.sector_bytes); 497 Memset(g.primary_header, '\0', g.sector_bytes); 504 Memset(g.primary_header, '\0', g.sector_bytes); [all...] |
cgptlib_test.c | 20 * Testing partition layout (sector_bytes=512) 152 gpt->sector_bytes = DEFAULT_SECTOR_SIZE; 227 gpt->sector_bytes = 0; 233 * Test if wrong sector_bytes or drive_sectors is detected by GptInit(). 242 uint32_t sector_bytes; member in struct:__anon27281 259 gpt->sector_bytes = cases[i].sector_bytes; 835 gpt->sector_bytes = 1024; [all...] |
/development/ndk/platforms/android-3/include/linux/ |
hdreg.h | 349 unsigned short sector_bytes; member in struct:hd_driveid
|
/prebuilts/ndk/current/platforms/android-12/arch-arm/usr/include/linux/ |
hdreg.h | 349 unsigned short sector_bytes; member in struct:hd_driveid
|
/prebuilts/ndk/current/platforms/android-12/arch-mips/usr/include/linux/ |
hdreg.h | 349 unsigned short sector_bytes; member in struct:hd_driveid
|
/prebuilts/ndk/current/platforms/android-12/arch-x86/usr/include/linux/ |
hdreg.h | 349 unsigned short sector_bytes; member in struct:hd_driveid
|
/prebuilts/ndk/current/platforms/android-13/arch-arm/usr/include/linux/ |
hdreg.h | 349 unsigned short sector_bytes; member in struct:hd_driveid
|
/prebuilts/ndk/current/platforms/android-13/arch-mips/usr/include/linux/ |
hdreg.h | 349 unsigned short sector_bytes; member in struct:hd_driveid
|
/prebuilts/ndk/current/platforms/android-13/arch-x86/usr/include/linux/ |
hdreg.h | 349 unsigned short sector_bytes; member in struct:hd_driveid
|
/prebuilts/ndk/current/platforms/android-14/arch-arm/usr/include/linux/ |
hdreg.h | 349 unsigned short sector_bytes; member in struct:hd_driveid
|
/prebuilts/ndk/current/platforms/android-14/arch-mips/usr/include/linux/ |
hdreg.h | 349 unsigned short sector_bytes; member in struct:hd_driveid
|
/prebuilts/ndk/current/platforms/android-14/arch-x86/usr/include/linux/ |
hdreg.h | 349 unsigned short sector_bytes; member in struct:hd_driveid
|
/prebuilts/ndk/current/platforms/android-15/arch-arm/usr/include/linux/ |
hdreg.h | 349 unsigned short sector_bytes; member in struct:hd_driveid
|
/prebuilts/ndk/current/platforms/android-15/arch-mips/usr/include/linux/ |
hdreg.h | 349 unsigned short sector_bytes; member in struct:hd_driveid
|
/prebuilts/ndk/current/platforms/android-15/arch-x86/usr/include/linux/ |
hdreg.h | 349 unsigned short sector_bytes; member in struct:hd_driveid
|
/prebuilts/ndk/current/platforms/android-16/arch-arm/usr/include/linux/ |
hdreg.h | 349 unsigned short sector_bytes; member in struct:hd_driveid
|
/prebuilts/ndk/current/platforms/android-16/arch-mips/usr/include/linux/ |
hdreg.h | 349 unsigned short sector_bytes; member in struct:hd_driveid
|
/prebuilts/ndk/current/platforms/android-16/arch-x86/usr/include/linux/ |
hdreg.h | 349 unsigned short sector_bytes; member in struct:hd_driveid
|
/prebuilts/ndk/current/platforms/android-17/arch-arm/usr/include/linux/ |
hdreg.h | 349 unsigned short sector_bytes; member in struct:hd_driveid
|