Searched refs:SECTOR_SIZE (Results 1 - 10 of 10) sorted by relevance

/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/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
H A Ddiskio-windows.cc125 // SECTOR_SIZE (512). If the disk can't be opened at all, return a value of 0.
140 blockSize = SECTOR_SIZE;
H A Dsupport.cc140 sSize = SECTOR_SIZE;
H A Dgpt.cc66 blockSize = SECTOR_SIZE; // set a default
90 blockSize = SECTOR_SIZE; // set a default
1854 sectorAlignment = DEFAULT_ALIGNMENT * SECTOR_SIZE / blockSize;
2284 align = DEFAULT_ALIGNMENT * SECTOR_SIZE / blockSize;
H A Dbasicmbr.cc34 blockSize = SECTOR_SIZE;
47 blockSize = SECTOR_SIZE;
/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/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/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 178 milliseconds