Lines Matching refs:sbs
238 struct fat_boot_sector *sbs; in patch_file_and_bootblock() local
295 sbs = (struct fat_boot_sector *)syslinux_bootsect; in patch_file_and_bootblock()
299 set_16(&sbs->bsSectors, 0); in patch_file_and_bootblock()
301 set_16(&sbs->bsSectors, totalsectors); in patch_file_and_bootblock()
303 set_32(&sbs->bsHugeSectors, totalsectors); in patch_file_and_bootblock()
305 set_16(&sbs->bsBytesPerSec, SECTOR_SIZE); in patch_file_and_bootblock()
306 set_16(&sbs->bsSecPerTrack, geo.sectors); in patch_file_and_bootblock()
307 set_16(&sbs->bsHeads, geo.heads); in patch_file_and_bootblock()
308 set_32(&sbs->bsHiddenSecs, geo.start); in patch_file_and_bootblock()
429 struct fat_boot_sector *sbs = (struct fat_boot_sector *)syslinux_bootsect; in install_bootblock() local
430 if (xpwrite(fd, &sbs->FAT_bsHead, FAT_bsHeadLen, 0) != FAT_bsHeadLen || in install_bootblock()
431 xpwrite(fd, &sbs->FAT_bsCode, FAT_bsCodeLen, in install_bootblock()
437 struct ntfs_boot_sector *sbs = in install_bootblock() local
439 if (xpwrite(fd, &sbs->NTFS_bsHead, in install_bootblock()
441 xpwrite(fd, &sbs->NTFS_bsCode, NTFS_bsCodeLen, in install_bootblock()