Searched defs:SECTOR_SIZE (Results 1 - 7 of 7) sorted by relevance

/external/gptfdisk/
H A Dsupport.h53 #define SECTOR_SIZE UINT32_C(512) macro
H A Ddiskio-unix.cc133 // returns an error condition, print a warning but return a value of SECTOR_SIZE
163 blockSize = SECTOR_SIZE;
170 << SECTOR_SIZE << "\n"; local
/external/autotest/client/tests/disktest/src/
H A Ddisktest.c25 #define SECTOR_SIZE 512 macro
26 #define PATTERN_PER_SECTOR (SECTOR_SIZE / sizeof(struct pattern))
295 sectors_per_block = blocksize / SECTOR_SIZE;
310 if (read(fd, init_buffer, SECTOR_SIZE) != SECTOR_SIZE) {
/external/vboot_reference/firmware/lib/cgptlib/
H A Dcgptlib_internal.c15 const static int SECTOR_SIZE = 512; variable
19 size_t ret = (bytes + SECTOR_SIZE - 1) / SECTOR_SIZE;
26 if (gpt->sector_bytes != SECTOR_SIZE)
47 (SECTOR_SIZE / sizeof(GptEntry)))))
/external/vboot_reference/host/arch/arm/lib/
H A Dcrossystem_arch.c49 #define SECTOR_SIZE 512 macro
383 uint8_t sector[SECTOR_SIZE];
396 if (size != sizeof(vnc->raw) || (size + offset > SECTOR_SIZE))
404 lseek(nvctx_fd, lba * SECTOR_SIZE, SEEK_SET);
406 rv = read(nvctx_fd, sector, SECTOR_SIZE);
424 uint8_t sector[SECTOR_SIZE];
437 if (size != sizeof(vnc->raw) || (size + offset > SECTOR_SIZE))
446 lseek(nvctx_fd, lba * SECTOR_SIZE, SEEK_SET);
447 rv = read(nvctx_fd, sector, SECTOR_SIZE);
454 lseek(nvctx_fd, lba * SECTOR_SIZE, SEEK_SE
[all...]
/external/kernel-headers/original/uapi/linux/
H A Dmsdos_fs.h12 #define SECTOR_SIZE 512 /* sector size (bytes) */ macro
13 #define SECTOR_BITS 9 /* log2(SECTOR_SIZE) */
16 #define MSDOS_DPS (SECTOR_SIZE / sizeof(struct msdos_dir_entry))
/external/toybox/toys/pending/
H A Dfdisk.c42 #define SECTOR_SIZE 512 macro
361 if (SECTOR_SIZE != readall(dev_fd, MBRbuf, SECTOR_SIZE)) {
376 sector_fac = g_sect_size/SECTOR_SIZE; //512 is hardware sector size.
509 xprintf(", total %lld sectors\n", total_number_sectors/(g_sect_size/SECTOR_SIZE));
523 g_sect_size = SECTOR_SIZE;

Completed in 297 milliseconds