Searched refs:bpbBytesPerSec (Results 1 – 10 of 10) sorted by relevance
69 boot->bpbBytesPerSec = block[11] + (block[12] << 8); in readboot()70 if (boot->bpbBytesPerSec < DOSBOOTBLOCKSIZE_REAL || in readboot()71 boot->bpbBytesPerSec > DOSBOOTBLOCKSIZE || in readboot()72 !powerof2(boot->bpbBytesPerSec)) { in readboot()73 pfatal("Invalid sector size: %u", boot->bpbBytesPerSec); in readboot()200 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, in readboot()201 SEEK_SET) != boot->bpbFSInfo * boot->bpbBytesPerSec in readboot()227 boot->bpbBytesPerSec, SEEK_SET) in readboot()228 != boot->bpbFSInfo * boot->bpbBytesPerSec in readboot()258 boot->bpbBytesPerSec - 1) / boot->bpbBytesPerSec + in readboot()[all …]
591 off *= boot->bpbBytesPerSec; in checkdirty()593 buffer = malloc(len = boot->bpbBytesPerSec); in checkdirty()604 if ((size_t)read(fs, buffer, boot->bpbBytesPerSec) != in checkdirty()605 boot->bpbBytesPerSec) { in checkdirty()658 off *= boot->bpbBytesPerSec; in cleardirty()660 buffer = malloc(len = boot->bpbBytesPerSec); in cleardirty()704 fat->fatsize = boot->FATsecs * boot->bpbBytesPerSec; in _readfat()707 off *= boot->bpbBytesPerSec; in _readfat()737 fat->fat32_offset = boot->bpbResSectors * boot->bpbBytesPerSec; in _readfat()1160 dst_off *= boot->bpbBytesPerSec; in copyfat()[all …]
230 cluster_size = boot->bpbSecPerClust * boot->bpbBytesPerSec; in resetDosDirSection()306 clsz = boot->bpbSecPerClust * boot->bpbBytesPerSec; in delete()318 off *= boot->bpbBytesPerSec; in delete()504 buf = malloc(boot->bpbBytesPerSec); in check_subdirectory()507 boot->bpbBytesPerSec); in check_subdirectory()511 off *= boot->bpbBytesPerSec; in check_subdirectory()513 read(fd, buf, boot->bpbBytesPerSec) != (ssize_t)boot->bpbBytesPerSec) { in check_subdirectory()590 iosize = boot->bpbSecPerClust * boot->bpbBytesPerSec; in readDosDirSection()611 off *= boot->bpbBytesPerSec; in readDosDirSection()1133 + boot->FirstCluster * boot->bpbBytesPerSec; in reconnect()
45 u_int bpbBytesPerSec; /* bytes per sector */ member
105 u_int8_t bpbBytesPerSec[2]; /* bytes per sector */ member149 u_int bpbBytesPerSec; /* bytes per sector */ member326 bpb.bpbBytesPerSec = o.bytes_per_sector; in mkfs_msdos()335 bpb.bpbHugeSectors -= (o.offset / bpb.bpbBytesPerSec); in mkfs_msdos()349 if (bpb.bpbBytesPerSec < MINBPS || in mkfs_msdos()350 bpb.bpbBytesPerSec > MAXBPS || in mkfs_msdos()351 !powerof2(bpb.bpbBytesPerSec)) { in mkfs_msdos()353 bpb.bpbBytesPerSec); in mkfs_msdos()385 if (o.block_size < bpb.bpbBytesPerSec) { in mkfs_msdos()387 o.block_size, bpb.bpbBytesPerSec); in mkfs_msdos()[all …]
26 uint16_t bpbBytesPerSec; /* bytes per sector */ member44 uint16_t bpbBytesPerSec; /* bytes per sector */ member62 uint16_t bpbBytesPerSec; /* bytes per sector */ member104 int8_t bpbBytesPerSec[2]; /* bytes per sector */ member122 int8_t bpbBytesPerSec[2]; /* bytes per sector */ member140 uint8_t bpbBytesPerSec[2]; /* bytes per sector */ member
82 #define bsBytesPerSec bsBPB.bpbBytesPerSec
145 #define pm_BytesPerSec pm_bpb.bpbBytesPerSec
597 pmp->pm_BytesPerSec = getushort(b50->bpbBytesPerSec); in mountmsdosfs()
111 pmp->pm_BytesPerSec = getushort(b50->bpbBytesPerSec); in m_msdosfs_mount()