Lines Matching defs:boot
121 int fat_init(int fs, struct bootblock *boot)
136 gBoot = boot;
142 switch (boot->ClustMask)
157 pfatal("Unknown cluster mask (0x%08X)\n", boot->ClustMask);
161 if (initUseMap(boot))
182 gNumCacheBlocks = (boot->FATsecs*boot->BytesPerSec+FAT_CHUNK_SIZE-1)/FAT_CHUNK_SIZE;
216 * the same as boot->Media. All other bits should be set. Note that we
224 value &= boot->ClustMask;
225 temp = boot->ClustMask & (0xFFFFFF00+boot->Media);
253 switch (boot->ClustMask)
277 if (boot->ClustMask == CLUST12_MASK)
278 temp = boot->ClustMask;
280 temp = boot->ClustMask >> 2;
769 int isdirty(int fs, struct bootblock *boot, int fat)
778 if (boot->ClustMask == CLUST12_MASK)
781 buffer = malloc(boot->BytesPerSec);
787 offset = boot->ResSectors + fat * boot->FATsecs;
788 offset *= boot->BytesPerSec;
795 if (deblock_read(fs, buffer, boot->BytesPerSec) != boot->BytesPerSec) {
800 switch (boot->ClustMask) {
916 int initUseMap(struct bootblock *boot)
919 cl_t clusters = (boot->NumClusters + 31) & ~31;