/external/syslinux/libinstaller/ |
fs.c | 56 const struct fat_boot_sector *sectbuf = bs; local 61 sectorsize = get_16(§buf->bsBytesPerSec); 63 clustersize = get_8(§buf->bsSecPerClust); 67 sectors = get_16(§buf->bsSectors); 68 sectors = sectors ? sectors : get_32(§buf->bsHugeSectors); 70 dsectors = sectors - get_16(§buf->bsResSectors); 72 fatsectors = get_16(§buf->bsFATsecs); 73 fatsectors = fatsectors ? fatsectors : get_32(§buf->bs32.FATSz32); 74 fatsectors *= get_8(§buf->bsFATs); 77 rootdirents = get_16(§buf->bsRootDirEnts) 135 const struct ntfs_boot_sector *sectbuf = bs; local 152 const struct fat_boot_sector *sectbuf = bs; local [all...] |
/external/syslinux/dos/ |
syslinux.c | 532 static unsigned char sectbuf[SECTOR_SIZE]; local 538 read_mbr(device, sectbuf); 541 memcpy(sectbuf, syslinux_mbr, syslinux_mbr_len); 542 *(uint16_t *) (sectbuf + 510) = 0xaa55; 547 struct mbr_entry *me = (struct mbr_entry *)(sectbuf + 446); 569 write_mbr(device, sectbuf); 615 static unsigned char sectbuf[SECTOR_SIZE]; local 664 read_device(dev_fd, sectbuf, 1, 0); 670 if ((errmsg = syslinux_check_bootsect(sectbuf, NULL))) { 735 memcpy_from_sl(sectbuf, dp, SECTOR_SIZE) [all...] |
/external/syslinux/linux/ |
syslinux.c | 261 static unsigned char sectbuf[SECTOR_SIZE]; local 316 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset); 323 if ((errmsg = syslinux_check_bootsect(sectbuf, &fs_type))) { 521 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset); 524 syslinux_make_bootsect(sectbuf, fs_type); 527 xpwrite(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
|
/external/syslinux/win/ |
syslinux.c | 298 static unsigned char sectbuf[SECTOR_SIZE]; local 376 if (!ReadFile(d_handle, sectbuf, SECTOR_SIZE, &bytes_read, NULL)) { 388 if ((errmsg = syslinux_check_bootsect(sectbuf, &fs_type))) { 556 syslinux_make_bootsect(sectbuf, fs_type); 568 if (!WriteFile(f_handle, sectbuf, SECTOR_SIZE, &bytes_written, NULL)) { 575 WriteFile(d_handle, sectbuf, SECTOR_SIZE, &bytes_written, NULL);
|
/external/syslinux/mtools/ |
syslinux.c | 188 static unsigned char sectbuf[SECTOR_SIZE]; local 254 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset); 259 if ((errmsg = syslinux_check_bootsect(sectbuf, NULL))) { 394 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset); 397 syslinux_make_bootsect(sectbuf, VFAT); 400 xpwrite(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
|