Searched refs:SECTOR_SIZE (Results 1 – 11 of 11) sorted by relevance
/external/vboot_reference/host/arch/arm/lib/ |
D | crossystem_arch.c | 49 #define SECTOR_SIZE 512 macro 383 uint8_t sector[SECTOR_SIZE]; in VbReadNvStorage_disk() 396 if (size != sizeof(vnc->raw) || (size + offset > SECTOR_SIZE)) in VbReadNvStorage_disk() 404 lseek(nvctx_fd, lba * SECTOR_SIZE, SEEK_SET); in VbReadNvStorage_disk() 406 rv = read(nvctx_fd, sector, SECTOR_SIZE); in VbReadNvStorage_disk() 424 uint8_t sector[SECTOR_SIZE]; in VbWriteNvStorage_disk() 437 if (size != sizeof(vnc->raw) || (size + offset > SECTOR_SIZE)) in VbWriteNvStorage_disk() 446 lseek(nvctx_fd, lba * SECTOR_SIZE, SEEK_SET); in VbWriteNvStorage_disk() 447 rv = read(nvctx_fd, sector, SECTOR_SIZE); in VbWriteNvStorage_disk() 454 lseek(nvctx_fd, lba * SECTOR_SIZE, SEEK_SET); in VbWriteNvStorage_disk() [all …]
|
/external/autotest/client/tests/disktest/src/ |
D | disktest.c | 25 #define SECTOR_SIZE 512 macro 26 #define PATTERN_PER_SECTOR (SECTOR_SIZE / sizeof(struct pattern)) 295 sectors_per_block = blocksize / SECTOR_SIZE; in main() 310 if (read(fd, init_buffer, SECTOR_SIZE) != SECTOR_SIZE) { in main()
|
/external/vboot_reference/firmware/lib/cgptlib/ |
D | cgptlib_internal.c | 15 const static int SECTOR_SIZE = 512; variable 19 size_t ret = (bytes + SECTOR_SIZE - 1) / SECTOR_SIZE; in CalculateEntriesSectors() 26 if (gpt->sector_bytes != SECTOR_SIZE) in CheckParameters() 47 (SECTOR_SIZE / sizeof(GptEntry))))) in CheckParameters()
|
/external/kernel-headers/original/uapi/linux/ |
D | msdos_fs.h | 12 #define SECTOR_SIZE 512 /* sector size (bytes) */ macro 16 #define MSDOS_DPS (SECTOR_SIZE / sizeof(struct msdos_dir_entry))
|
/external/gptfdisk/ |
D | support.h | 53 #define SECTOR_SIZE UINT32_C(512) macro
|
D | diskio-unix.cc | 163 blockSize = SECTOR_SIZE; in GetBlockSize() 170 << SECTOR_SIZE << "\n"; in GetBlockSize()
|
D | diskio-windows.cc | 140 blockSize = SECTOR_SIZE; in GetBlockSize()
|
D | support.cc | 140 sSize = SECTOR_SIZE; in IeeeToInt()
|
D | gpt.cc | 66 blockSize = SECTOR_SIZE; // set a default in GPTData() 90 blockSize = SECTOR_SIZE; // set a default in GPTData() 1854 sectorAlignment = DEFAULT_ALIGNMENT * SECTOR_SIZE / blockSize; in ClearGPTData() 2284 align = DEFAULT_ALIGNMENT * SECTOR_SIZE / blockSize; in ComputeAlignment()
|
D | basicmbr.cc | 34 blockSize = SECTOR_SIZE; in BasicMBRData() 47 blockSize = SECTOR_SIZE; in BasicMBRData()
|
/external/toybox/toys/pending/ |
D | fdisk.c | 42 #define SECTOR_SIZE 512 macro 361 if (SECTOR_SIZE != readall(dev_fd, MBRbuf, SECTOR_SIZE)) { in read_mbr() 376 sector_fac = g_sect_size/SECTOR_SIZE; //512 is hardware sector size. in read_mbr() 509 xprintf(", total %lld sectors\n", total_number_sectors/(g_sect_size/SECTOR_SIZE)); in print_mbr() 523 g_sect_size = SECTOR_SIZE; in init_members()
|