Home
last modified time | relevance | path

Searched refs:bpb (Results 1 – 15 of 15) sorted by relevance

/titanic_44/usr/src/cmd/fs.d/pcfs/fsck/
H A Dbpb.c68 BytesPerCluster = TheBIOSParameterBlock.bpb.sectors_per_cluster * in computeFileAreaSize()
69 TheBIOSParameterBlock.bpb.bytes_per_sector; in computeFileAreaSize()
74 if (TheBIOSParameterBlock.bpb.sectors_in_volume > 0) in computeFileAreaSize()
75 dataSectors = TheBIOSParameterBlock.bpb.sectors_in_volume; in computeFileAreaSize()
78 TheBIOSParameterBlock.bpb.sectors_in_logical_volume; in computeFileAreaSize()
80 overhead = TheBIOSParameterBlock.bpb.resv_sectors; in computeFileAreaSize()
82 RootDirSize = TheBIOSParameterBlock.bpb.num_root_entries * in computeFileAreaSize()
84 overhead += RootDirSize / TheBIOSParameterBlock.bpb.bytes_per_sector; in computeFileAreaSize()
86 if (TheBIOSParameterBlock.bpb.sectors_per_fat) { in computeFileAreaSize()
90 overhead += TheBIOSParameterBlock.bpb.num_fats * in computeFileAreaSize()
[all …]
H A Dpcfs_common.c217 ((uchar_t *)&(wbpb->bpb.bytes_per_sector))[1] = *grabp++; in swap_pack_grabbpb()
218 ((uchar_t *)&(wbpb->bpb.bytes_per_sector))[0] = *grabp++; in swap_pack_grabbpb()
219 wbpb->bpb.sectors_per_cluster = *grabp++; in swap_pack_grabbpb()
220 ((uchar_t *)&(wbpb->bpb.resv_sectors))[1] = *grabp++; in swap_pack_grabbpb()
221 ((uchar_t *)&(wbpb->bpb.resv_sectors))[0] = *grabp++; in swap_pack_grabbpb()
222 wbpb->bpb.num_fats = *grabp++; in swap_pack_grabbpb()
223 ((uchar_t *)&(wbpb->bpb.num_root_entries))[1] = *grabp++; in swap_pack_grabbpb()
224 ((uchar_t *)&(wbpb->bpb.num_root_entries))[0] = *grabp++; in swap_pack_grabbpb()
225 ((uchar_t *)&(wbpb->bpb.sectors_in_volume))[1] = *grabp++; in swap_pack_grabbpb()
226 ((uchar_t *)&(wbpb->bpb.sectors_in_volume))[0] = *grabp++; in swap_pack_grabbpb()
[all …]
H A Dclusters.c925 TheBIOSParameterBlock.bpb.sectors_per_cluster * in truncAtCluster()
926 TheBIOSParameterBlock.bpb.bytes_per_sector; in truncAtCluster()
989 remainder -= TheBIOSParameterBlock.bpb.sectors_per_cluster * in updateOrphanedChainMetadata()
990 TheBIOSParameterBlock.bpb.bytes_per_sector; in updateOrphanedChainMetadata()
1206 bpc = TheBIOSParameterBlock.bpb.sectors_per_cluster * in relinkFATOrphans()
1207 TheBIOSParameterBlock.bpb.bytes_per_sector; in relinkFATOrphans()
1579 TotalClusters * TheBIOSParameterBlock.bpb.sectors_per_cluster * in printSummary()
1580 TheBIOSParameterBlock.bpb.bytes_per_sector); in printSummary()
1584 BadClusterCount * TheBIOSParameterBlock.bpb.sectors_per_cluster * in printSummary()
1585 TheBIOSParameterBlock.bpb.bytes_per_sector); in printSummary()
[all …]
H A Dfat.c66 seekto = TheBIOSParameterBlock.bpb.resv_sectors * in seekFAT()
67 TheBIOSParameterBlock.bpb.bytes_per_sector + PartitionOffset; in seekFAT()
H A Ddir.c208 bpc = TheBIOSParameterBlock.bpb.sectors_per_cluster * in sanityCheckSize()
209 TheBIOSParameterBlock.bpb.bytes_per_sector; in sanityCheckSize()
920 seekto = (off64_t)TheBIOSParameterBlock.bpb.resv_sectors * in seekRootDirectory()
921 TheBIOSParameterBlock.bpb.bytes_per_sector + in seekRootDirectory()
922 (off64_t)FATSize * TheBIOSParameterBlock.bpb.num_fats + in seekRootDirectory()
H A DMakefile32 FSCKOBJS= fsck.o bpb.o clusters.o fat.o dir.o pcfs_common.o
H A Dpcfs_bpb.h165 struct _orig_bios_param_blk bpb; member
/titanic_44/usr/src/uts/common/sys/fs/
H A Dpc_fs.h192 #define bpb_jmpBoot(bpb) ((unsigned char *)(bpb)) argument
193 #define bpb_OEMName(bpb) ((char *)(bpb) + OFF_OEMNAME) argument
194 #define bpb_get_BytesPerSec(bpb) LE_16_NA((bpb) + OFF_BYTESPERSEC) argument
195 #define bpb_get_SecPerClus(bpb) (((uint8_t *)(bpb))[OFF_SECPERCLUS]) argument
196 #define bpb_get_RsvdSecCnt(bpb) LE_16_NA((bpb) + OFF_RSVDSECCNT) argument
197 #define bpb_get_NumFATs(bpb) (((uint8_t *)(bpb))[OFF_NUMFATS]) argument
198 #define bpb_get_RootEntCnt(bpb) LE_16_NA((bpb) + OFF_ROOTENTCNT) argument
199 #define bpb_get_TotSec16(bpb) LE_16_NA((bpb) + OFF_TOTSEC16) argument
200 #define bpb_get_Media(bpb) (((uint8_t *)(bpb))[OFF_MEDIA]) argument
201 #define bpb_get_FatSz16(bpb) LE_16_NA((bpb) + OFF_FATSZ16) argument
[all …]
/titanic_44/usr/src/cmd/fs.d/pcfs/mkfs/
H A Dmkfs.c553 wbpb->bpb.sectors_in_volume = 0; in fill_bpb_sizes()
555 wbpb->bpb.sectors_in_volume = usesize; in fill_bpb_sizes()
556 wbpb->bpb.sectors_in_logical_volume = usesize; in fill_bpb_sizes()
559 wbpb->bpb.hidden_sectors = offset; in fill_bpb_sizes()
929 wbpb->bpb.sectors_in_volume = 0; in seek_nofdisk()
931 wbpb->bpb.sectors_in_volume = (short)TotSize; in seek_nofdisk()
932 wbpb->bpb.sectors_in_logical_volume = TotSize; in seek_nofdisk()
935 wbpb->bpb.hidden_sectors = RelOffset; in seek_nofdisk()
993 wbpb->bpb.sectors_in_volume = 2 * 80 * 15; in prepare_image_file()
994 wbpb->bpb.sectors_in_logical_volume = 2 * 80 * 15; in prepare_image_file()
[all …]
H A Dmkfs_pcfs.h163 struct _orig_bios_param_blk bpb; member
/titanic_44/usr/src/grub/grub-0.97/stage2/
H A Dfsys_fat.c70 struct fat_bpb bpb; in fat_mount() local
80 if (! devread (0, 0, sizeof (bpb), (char *) &bpb)) in fat_mount()
85 if (bpb.sects_per_clust == 0) in fat_mount()
88 FAT_SUPER->sectsize_bits = log2 (FAT_CVT_U16 (bpb.bytes_per_sect)); in fat_mount()
90 = FAT_SUPER->sectsize_bits + log2 (bpb.sects_per_clust); in fat_mount()
93 FAT_SUPER->num_sectors = FAT_CVT_U16 (bpb.short_sectors) in fat_mount()
94 ? FAT_CVT_U16 (bpb.short_sectors) : bpb.long_sectors; in fat_mount()
97 FAT_SUPER->fat_offset = FAT_CVT_U16 (bpb.reserved_sects); in fat_mount()
99 bpb.fat_length ? bpb.fat_length : bpb.fat32_length; in fat_mount()
103 FAT_SUPER->fat_offset + bpb.num_fats * FAT_SUPER->fat_length; in fat_mount()
[all …]
/titanic_44/usr/src/cmd/fdformat/
H A Dfdformat.c163 struct bios_param_blk bpb; in main() local
420 (void) memset((void *)&bpb, (char)0, sizeof (struct bios_param_blk)); in main()
422 format_diskette(fd, real_name, &fd_vtoc, &bpb, &rdirsec); in main()
426 vollabel, &bpb, rdirsec); in main()
453 struct bios_param_blk *bpb, int *rdirsec) in format_diskette() argument
685 bpb->b_nfat = 2; in format_diskette()
687 bpb->b_spcl = 2; in format_diskette()
689 bpb->b_mediadescriptor = (char)0xF0; in format_diskette()
690 bpb->b_fatsec[0] = 9; in format_diskette()
691 bpb->b_fatsec[1] = 0; in format_diskette()
[all …]
/titanic_44/usr/src/uts/common/fs/pcfs/
H A Dpc_vfsops.c1825 secondaryBPBChecks(struct pcfs *fsp, uchar_t *bpb, size_t secsize) in secondaryBPBChecks() argument
1830 if (bpb_get_FatSz16(bpb) == 0) in secondaryBPBChecks()
1833 if (bpb_get_FatSz16(bpb) * secsize < ncl * 2 && in secondaryBPBChecks()
1834 bpb_get_FatSz16(bpb) * secsize >= (3 * ncl / 2)) in secondaryBPBChecks()
1836 if (bcmp(bpb_FilSysType16(bpb), "FAT12", 5) == 0) in secondaryBPBChecks()
1838 if (bcmp(bpb_FilSysType16(bpb), "FAT16", 5) == 0) in secondaryBPBChecks()
1841 switch (bpb_get_Media(bpb)) { in secondaryBPBChecks()
1861 if (bpb_get_FatSz16(bpb) == 0 && bpb_get_FatSz32(bpb) > 0) in secondaryBPBChecks()
1863 if (VALID_BOOTSIG(bpb_get_BootSig32(bpb))) in secondaryBPBChecks()
1865 if (VALID_FSTYPSTR32(bpb_FilSysType32(bpb))) in secondaryBPBChecks()
[all …]
/titanic_44/usr/src/uts/common/avs/ns/sdbc/
H A Dsd_pcu.c270 start_bitmap_list(struct bitmap *bmp, int bpb) in start_bitmap_list() argument
281 bmp->bmaps_per_block = bpb; in start_bitmap_list()
/titanic_44/usr/src/grub/grub-0.97/
H A DChangeLog5428 * stage2/fat.h (fat_bpb): New structure describing bpb.