/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/ |
H A D | bpb.c | 68 BytesPerCluster = TheBIOSParameterBlock.bpb.sectors_per_cluster * 69 TheBIOSParameterBlock.bpb.bytes_per_sector; 74 if (TheBIOSParameterBlock.bpb.sectors_in_volume > 0) 75 dataSectors = TheBIOSParameterBlock.bpb.sectors_in_volume; 78 TheBIOSParameterBlock.bpb.sectors_in_logical_volume; 80 overhead = TheBIOSParameterBlock.bpb.resv_sectors; 82 RootDirSize = TheBIOSParameterBlock.bpb.num_root_entries * 84 overhead += RootDirSize / TheBIOSParameterBlock.bpb.bytes_per_sector; 86 if (TheBIOSParameterBlock.bpb.sectors_per_fat) { 90 overhead += TheBIOSParameterBlock.bpb [all...] |
H A D | pcfs_common.c | 201 * swap_pack_grab{32}bpb 202 * If not on an x86 we assume the structures making up the bpb 217 ((uchar_t *)&(wbpb->bpb.bytes_per_sector))[1] = *grabp++; 218 ((uchar_t *)&(wbpb->bpb.bytes_per_sector))[0] = *grabp++; 219 wbpb->bpb.sectors_per_cluster = *grabp++; 220 ((uchar_t *)&(wbpb->bpb.resv_sectors))[1] = *grabp++; 221 ((uchar_t *)&(wbpb->bpb.resv_sectors))[0] = *grabp++; 222 wbpb->bpb.num_fats = *grabp++; 223 ((uchar_t *)&(wbpb->bpb.num_root_entries))[1] = *grabp++; 224 ((uchar_t *)&(wbpb->bpb [all...] |
H A D | Makefile | 32 FSCKOBJS= fsck.o bpb.o clusters.o fat.o dir.o pcfs_common.o
|
H A D | clusters.c | 925 TheBIOSParameterBlock.bpb.sectors_per_cluster * 926 TheBIOSParameterBlock.bpb.bytes_per_sector; 989 remainder -= TheBIOSParameterBlock.bpb.sectors_per_cluster * 990 TheBIOSParameterBlock.bpb.bytes_per_sector; 1206 bpc = TheBIOSParameterBlock.bpb.sectors_per_cluster * 1207 TheBIOSParameterBlock.bpb.bytes_per_sector; 1579 TotalClusters * TheBIOSParameterBlock.bpb.sectors_per_cluster * 1580 TheBIOSParameterBlock.bpb.bytes_per_sector); 1584 BadClusterCount * TheBIOSParameterBlock.bpb.sectors_per_cluster * 1585 TheBIOSParameterBlock.bpb [all...] |
H A D | fat.c | 66 seekto = TheBIOSParameterBlock.bpb.resv_sectors * 67 TheBIOSParameterBlock.bpb.bytes_per_sector + PartitionOffset;
|
H A D | pcfs_bpb.h | 160 * bpb_t is a conglomeration of all the fields a bpb can have. Every 161 * bpb will have the orig_bios struct, but only FAT32's will have bpb32, 165 struct _orig_bios_param_blk bpb; member in struct:_bios_param_blk
|
H A D | dir.c | 208 bpc = TheBIOSParameterBlock.bpb.sectors_per_cluster * 209 TheBIOSParameterBlock.bpb.bytes_per_sector; 920 seekto = (off64_t)TheBIOSParameterBlock.bpb.resv_sectors * 921 TheBIOSParameterBlock.bpb.bytes_per_sector + 922 (off64_t)FATSize * TheBIOSParameterBlock.bpb.num_fats +
|
/illumos-gate/usr/src/uts/common/sys/fs/ |
H A D | pc_fs.h | 192 #define bpb_jmpBoot(bpb) ((unsigned char *)(bpb)) 193 #define bpb_OEMName(bpb) ((char *)(bpb) + OFF_OEMNAME) 194 #define bpb_get_BytesPerSec(bpb) LE_16_NA((bpb) + OFF_BYTESPERSEC) 195 #define bpb_get_SecPerClus(bpb) (((uint8_t *)(bpb))[OFF_SECPERCLUS]) 196 #define bpb_get_RsvdSecCnt(bpb) LE_16_NA((bpb) [all...] |
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_fat.c | 70 struct fat_bpb bpb; local 79 /* Read bpb */ 80 if (! devread (0, 0, sizeof (bpb), (char *) &bpb)) 85 if (bpb.sects_per_clust == 0) 88 FAT_SUPER->sectsize_bits = log2 (FAT_CVT_U16 (bpb.bytes_per_sect)); 90 = FAT_SUPER->sectsize_bits + log2 (bpb.sects_per_clust); 93 FAT_SUPER->num_sectors = FAT_CVT_U16 (bpb.short_sectors) 94 ? FAT_CVT_U16 (bpb.short_sectors) : bpb [all...] |
/illumos-gate/usr/src/cmd/fs.d/pcfs/mkfs/ |
H A D | mkfs.c | 553 wbpb->bpb.sectors_in_volume = 0; 555 wbpb->bpb.sectors_in_volume = usesize; 556 wbpb->bpb.sectors_in_logical_volume = usesize; 559 wbpb->bpb.hidden_sectors = offset; 929 wbpb->bpb.sectors_in_volume = 0; 931 wbpb->bpb.sectors_in_volume = (short)TotSize; 932 wbpb->bpb.sectors_in_logical_volume = TotSize; 935 wbpb->bpb.hidden_sectors = RelOffset; 993 wbpb->bpb.sectors_in_volume = 2 * 80 * 15; 994 wbpb->bpb [all...] |
H A D | mkfs_pcfs.h | 158 * bpb_t is a conglomeration of all the fields a bpb can have. Every 159 * bpb will have the orig_bios struct, but only FAT32's will have bpb32, 163 struct _orig_bios_param_blk bpb; member in struct:_bios_param_blk
|
/illumos-gate/usr/src/cmd/fdformat/ |
H A D | fdformat.c | 163 struct bios_param_blk bpb; local 410 * The fd_vtoc, bpb, and rdirsec structures will be 416 * be added. This function should fill in fd_vtoc, bpb, and 420 (void) memset((void *)&bpb, (char)0, sizeof (struct bios_param_blk)); 422 format_diskette(fd, real_name, &fd_vtoc, &bpb, &rdirsec); 426 vollabel, &bpb, rdirsec); 448 * information and ascillabel. bpb and rdirsec will 453 struct bios_param_blk *bpb, int *rdirsec) 685 bpb->b_nfat = 2; 687 bpb 452 format_diskette(int fd, char *real_name, struct vtoc *fd_vtoc, struct bios_param_blk *bpb, int *rdirsec) argument 1482 write_DOS_label(int fd, uchar_t *bootloadr, int bootlen, char *altbootname, char *doslabel, struct bios_param_blk *bpb, int rdirsec) argument 1636 struct bios_param_blk *bpb; local [all...] |
/illumos-gate/usr/src/uts/common/fs/pcfs/ |
H A D | pc_vfsops.c | 1825 secondaryBPBChecks(struct pcfs *fsp, uchar_t *bpb, size_t secsize) argument 1830 if (bpb_get_FatSz16(bpb) == 0) 1833 if (bpb_get_FatSz16(bpb) * secsize < ncl * 2 && 1834 bpb_get_FatSz16(bpb) * secsize >= (3 * ncl / 2)) 1836 if (bcmp(bpb_FilSysType16(bpb), "FAT12", 5) == 0) 1838 if (bcmp(bpb_FilSysType16(bpb), "FAT16", 5) == 0) 1841 switch (bpb_get_Media(bpb)) { 1861 if (bpb_get_FatSz16(bpb) == 0 && bpb_get_FatSz32(bpb) > 0) 1863 if (VALID_BOOTSIG(bpb_get_BootSig32(bpb))) 1920 parseBPB(struct pcfs *fsp, uchar_t *bpb, int *valid) argument [all...] |
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | dosfs.c | 95 DOS_BPB bpb; /* BPB */ member in struct:__anon57 518 bs->bpb.media < 0xf0) 520 if (cv2(bs->bpb.secsiz) != SECSIZ) 522 if (!(fs->spc = bs->bpb.spc) || fs->spc & (fs->spc - 1)) 526 if ((fs->spf = cv2(bs->bpb.spf))) { 527 if (bs->bpb.fats != 2) 529 if (!(fs->dirents = cv2(bs->bpb.dirents))) 532 if (!(fs->spf = cv4(bs->bpb.lspf))) 534 if (!bs->bpb.fats || bs->bpb [all...] |
/illumos-gate/usr/src/uts/common/avs/ns/sdbc/ |
H A D | sd_pcu.c | 270 start_bitmap_list(struct bitmap *bmp, int bpb) argument 281 bmp->bmaps_per_block = bpb;
|