Home
last modified time | relevance | path

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

/external/vboot_reference/host/arch/arm/lib/
Dcrossystem_arch.c49 #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/
Ddisktest.c25 #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/
Dcgptlib_internal.c15 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/
Dmsdos_fs.h12 #define SECTOR_SIZE 512 /* sector size (bytes) */ macro
16 #define MSDOS_DPS (SECTOR_SIZE / sizeof(struct msdos_dir_entry))
/external/gptfdisk/
Dsupport.h53 #define SECTOR_SIZE UINT32_C(512) macro
Ddiskio-unix.cc163 blockSize = SECTOR_SIZE; in GetBlockSize()
170 << SECTOR_SIZE << "\n"; in GetBlockSize()
Ddiskio-windows.cc140 blockSize = SECTOR_SIZE; in GetBlockSize()
Dsupport.cc140 sSize = SECTOR_SIZE; in IeeeToInt()
Dgpt.cc66 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()
Dbasicmbr.cc34 blockSize = SECTOR_SIZE; in BasicMBRData()
47 blockSize = SECTOR_SIZE; in BasicMBRData()
/external/toybox/toys/pending/
Dfdisk.c42 #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()