HomeSort by relevance Sort by last modified time
    Searched refs:SECTOR_SIZE (Results 1 - 25 of 45) sorted by null

1 2

  /external/syslinux/diag/geodsp/
mk-lba-img.pl 22 use constant SECTOR_SIZE => 512;
58 $n_long = (SECTOR_SIZE/LONG_SIZE);
59 $n_lba = (SECTOR_SIZE/LBA_SIZE);
66 $tail = (SECTOR_SIZE - ($len % SECTOR_SIZE)) % SECTOR_SIZE;
73 $st = ($len + $tail) / SECTOR_SIZE;
  /external/syslinux/libinstaller/
syslinux.h 51 #define SECTOR_SIZE (1 << SECTOR_SHIFT)
linuxioctl.h 21 #undef SECTOR_SIZE /* Defined in msdos_fs.h for no good reason */
syslxmod.c 52 uint32_t xbytes = (len + 1) * SECTOR_SIZE;
71 addr += SECTOR_SIZE;
114 int nsect = ((boot_image_len + SECTOR_SIZE - 1) >> SECTOR_SHIFT) + 2;
syslxcom.c 220 fe->fe_length = (fe->fe_length + SECTOR_SIZE - 1)
221 & ~(SECTOR_SIZE - 1);
225 (SECTOR_SIZE - 1))
  /device/linaro/hikey/l-loader/
hikey960.mk 13 PTABLE=$${ptable} SECTOR_SIZE=4096 SGDISK=./sgdisk bash -x generate_ptable.sh;\
generate_ptable.sh 11 SECTOR_SIZE=${SECTOR_SIZE:-512}
15 ENTRIES_IN_SECTOR=$(expr ${SECTOR_SIZE} / 128)
38 SECTOR_ALIGNMENT=$(expr ${SECTOR_SIZE} / 512)
39 SECTOR_NUMBER=$(expr '(' ${SECTOR_NUMBER} '*' 512 + ${SECTOR_SIZE} - 1 ')' / ${SECTOR_SIZE})
44 dd if=/dev/zero of=${TEMP_FILE} bs=${SECTOR_SIZE} count=${SECTOR_NUMBER} conv=sparse
50 dd if=/dev/zero of=${TEMP_FILE} bs=${SECTOR_SIZE} count=${SECTOR_NUMBER} conv=sparse
74 dd if=/dev/zero of=${TEMP_FILE} bs=${SECTOR_SIZE} count=${SECTOR_NUMBER} conv=sparse
96 dd if=/dev/zero of=${TEMP_FILE} bs=${SECTOR_SIZE} count=${SECTOR_NUMBER} conv=spars
    [all...]
hikey.mk 25 PTABLE=$${ptable} SECTOR_SIZE=512 bash -x generate_ptable.sh;\
  /external/vboot_reference/host/arch/arm/lib/
crossystem_arch.c 49 #define SECTOR_SIZE 512
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_SET)
    [all...]
  /external/syslinux/com32/elflink/ldlinux/
loadhigh.c 62 sector_mask = SECTOR_SIZE(fs) - 1;
68 if (buf + SECTOR_SIZE(fs) > limit) {
  /external/syslinux/mtools/
syslinux.c 188 static unsigned char sectbuf[SECTOR_SIZE];
254 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
320 + SECTOR_SIZE - 1) >> SECTOR_SHIFT;
337 patch_sectors = (i + SECTOR_SIZE - 1) >> SECTOR_SHIFT;
342 + i * SECTOR_SIZE, SECTOR_SIZE,
394 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
400 xpwrite(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
  /external/syslinux/win/
syslinux.c 111 unsigned char sector[SECTOR_SIZE];
114 if (GetBytesPerSector(drive) != SECTOR_SIZE) {
117 GetBytesPerSector(drive), SECTOR_SIZE);
298 static unsigned char sectbuf[SECTOR_SIZE];
376 if (!ReadFile(d_handle, sectbuf, SECTOR_SIZE, &bytes_read, NULL)) {
380 if (bytes_read != SECTOR_SIZE) {
439 ldlinux_sectors = (syslinux_ldlinux_len + 2 * ADV_SIZE + SECTOR_SIZE - 1)
568 if (!WriteFile(f_handle, sectbuf, SECTOR_SIZE, &bytes_written, NULL)) {
575 WriteFile(d_handle, sectbuf, SECTOR_SIZE, &bytes_written, NULL);
578 if (bytes_written != SECTOR_SIZE) {
    [all...]
  /external/syslinux/linux/
syslinux.c 261 static unsigned char sectbuf[SECTOR_SIZE];
270 int ldlinux_sectors = (boot_image_len + SECTOR_SIZE - 1) >> SECTOR_SHIFT;
316 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
504 patch_sectors = (i + SECTOR_SIZE - 1) >> SECTOR_SHIFT;
511 (const char _force *)boot_image + i * SECTOR_SIZE,
512 SECTOR_SIZE,
521 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
527 xpwrite(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
  /external/gptfdisk/
support.h 53 #define SECTOR_SIZE UINT32_C(512)
  /external/autotest/client/tests/disktest/src/
disktest.c 25 #define SECTOR_SIZE 512
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) {
  /bionic/libc/kernel/uapi/linux/
msdos_fs.h 24 #define SECTOR_SIZE 512
28 #define MSDOS_DPS (SECTOR_SIZE / sizeof(struct msdos_dir_entry))
91 __u8 sector_size[2]; member in struct:fat_boot_sector
  /device/linaro/bootloader/edk2/Omap35xxPkg/MMCHSDxe/
MMCHS.h 83 UINT32 SECTOR_SIZE: 7; // Erase sector size [45:39]
125 UINT16 SECTOR_SIZE: 7; // Erase sector size [45:39]
  /external/kernel-headers/original/uapi/linux/
msdos_fs.h 13 #define SECTOR_SIZE 512 /* sector size (bytes) */
14 #define SECTOR_BITS 9 /* log2(SECTOR_SIZE) */
17 #define MSDOS_DPS (SECTOR_SIZE / sizeof(struct msdos_dir_entry))
115 __u8 sector_size[2]; /* bytes per logical sector */ member in struct:fat_boot_sector
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/linux/
msdos_fs.h 12 #define SECTOR_SIZE 512 /* sector size (bytes) */
13 #define SECTOR_BITS 9 /* log2(SECTOR_SIZE) */
16 #define MSDOS_DPS (SECTOR_SIZE / sizeof(struct msdos_dir_entry))
109 __u8 sector_size[2]; /* bytes per logical sector */ member in struct:fat_boot_sector
  /external/vboot_reference/firmware/lib/cgptlib/
cgptlib_internal.c 15 const static int SECTOR_SIZE = 512;
19 size_t ret = (bytes + SECTOR_SIZE - 1) / SECTOR_SIZE;
26 if (gpt->sector_bytes != SECTOR_SIZE)
47 (SECTOR_SIZE / sizeof(GptEntry)))))
  /external/syslinux/dos/
syslinux.c 532 static unsigned char sectbuf[SECTOR_SIZE];
615 static unsigned char sectbuf[SECTOR_SIZE];
700 + SECTOR_SIZE - 1) >> SECTOR_SHIFT;
727 patch_sectors = (i + SECTOR_SIZE - 1) >> SECTOR_SHIFT;
735 memcpy_from_sl(sectbuf, dp, SECTOR_SIZE);
736 dp += SECTOR_SIZE;
759 write_file(fd, sectbuf, SECTOR_SIZE);
  /device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Include/
SDCard.h 79 UINT16 SECTOR_SIZE: 7; // Erase sector size [45:39]
  /device/linaro/bootloader/edk2/Vlv2DeviceRefCodePkg/ValleyView2Soc/SouthCluster/Include/IndustryStandard/
SdCard.h 90 UINT16 SECTOR_SIZE: 7; // Erase sector size [45:39]
  /external/syslinux/core/fs/fat/
fat_fs.h 38 uint16_t sector_size; member in struct:fat_bpb
144 return (fat->bxRootDirEnts + SECTOR_SIZE(fs)/32 - 1)
  /system/core/storaged/include/
storaged.h 42 #define SECTOR_SIZE ( 512 )

Completed in 873 milliseconds

1 2