Searched defs:sectbuf (Results 1 - 5 of 5) sorted by relevance

/external/syslinux/libinstaller/
H A Dfs.c56 const struct fat_boot_sector *sectbuf = bs; local
61 sectorsize = get_16(&sectbuf->bsBytesPerSec);
63 clustersize = get_8(&sectbuf->bsSecPerClust);
67 sectors = get_16(&sectbuf->bsSectors);
68 sectors = sectors ? sectors : get_32(&sectbuf->bsHugeSectors);
70 dsectors = sectors - get_16(&sectbuf->bsResSectors);
72 fatsectors = get_16(&sectbuf->bsFATsecs);
73 fatsectors = fatsectors ? fatsectors : get_32(&sectbuf->bs32.FATSz32);
74 fatsectors *= get_8(&sectbuf->bsFATs);
77 rootdirents = get_16(&sectbuf
135 const struct ntfs_boot_sector *sectbuf = bs; local
152 const struct fat_boot_sector *sectbuf = bs; local
[all...]
/external/syslinux/linux/
H A Dsyslinux.c261 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/mtools/
H A Dsyslinux.c188 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);
/external/syslinux/win/
H A Dsyslinux.c298 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/dos/
H A Dsyslinux.c532 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, d
[all...]

Completed in 251 milliseconds