Searched refs:GPT_ENTRY_SIZE (Results 1 – 2 of 2) sorted by relevance
| /rkdeveloptool/ |
| H A D | main.cpp | 539 u8 zerobuf[GPT_ENTRY_SIZE]; in get_lba_from_gpt() 541 memset(zerobuf,0,GPT_ENTRY_SIZE); in get_lba_from_gpt() 544 gptEntry = (gpt_entry *)(master + 2 * SECTOR_SIZE + i * GPT_ENTRY_SIZE); in get_lba_from_gpt() 545 if (memcmp(zerobuf, (u8 *)gptEntry, GPT_ENTRY_SIZE) == 0) in get_lba_from_gpt() 598 u8 zerobuf[GPT_ENTRY_SIZE]; in update_gpt_disksize() 600 memset(zerobuf,0,GPT_ENTRY_SIZE); in update_gpt_disksize() 603 gptLastPartEntry = (gpt_entry *)(master + 2 * SECTOR_SIZE + i * GPT_ENTRY_SIZE); in update_gpt_disksize() 604 if (memcmp(zerobuf, (u8 *)gptLastPartEntry, GPT_ENTRY_SIZE) == 0) in update_gpt_disksize() 615 …ntry_array_crc32 = cpu_to_le32(crc32_le(0, master + 2 * SECTOR_SIZE, GPT_ENTRY_SIZE * GPT_ENTRY_NU… in update_gpt_disksize() 619 memcpy(backup,master + 2 * SECTOR_SIZE, GPT_ENTRY_SIZE * GPT_ENTRY_NUMBERS); in update_gpt_disksize() [all …]
|
| H A D | gpt.h | 13 #define GPT_ENTRY_SIZE 128 macro
|