Lines Matching +full:0 +full:x1ff
57 if (block[510] != 0x55 || block[511] != 0xaa) { in readboot()
63 memset(boot, 0, sizeof *boot); in readboot()
79 if (boot->bpbSecPerClust == 0 || !powerof2(boot->bpbSecPerClust)) { in readboot()
94 if (boot->bpbFATs == 0) { in readboot()
102 /* bpbRootDirEnts = 0 suggests that we are FAT32 */ in readboot()
108 if (boot->bpbSectors != 0 && (boot->flags & FAT32)) { in readboot()
119 if (boot->bpbFATsmall != 0 && (boot->flags & FAT32)) { in readboot()
136 if (boot->bpbHugeSectors == 0) { in readboot()
140 } else if (boot->bpbSectors == 0) { in readboot()
146 if (boot->bpbSectors != 0) { in readboot()
164 if (block[40] & 0x80) in readboot()
165 boot->ValidFat = block[40] & 0x0f; in readboot()
189 if (boot->bpbFSInfo == 0) { in readboot()
207 || memcmp(fsinfo + 0x1e4, "rrAa", 4) in readboot()
208 || fsinfo[0x1fc] in readboot()
209 || fsinfo[0x1fd] in readboot()
210 || fsinfo[0x1fe] != 0x55 in readboot()
211 || fsinfo[0x1ff] != 0xaa in readboot()
212 || fsinfo[0x3fc] in readboot()
213 || fsinfo[0x3fd] in readboot()
214 || fsinfo[0x3fe] != 0x55 in readboot()
215 || fsinfo[0x3ff] != 0xaa) { in readboot()
217 if (ask(0, "Fix")) { in readboot()
219 memcpy(fsinfo + 0x1e4, "rrAa", 4); in readboot()
220 fsinfo[0x1fc] = fsinfo[0x1fd] = 0; in readboot()
221 fsinfo[0x1fe] = 0x55; in readboot()
222 fsinfo[0x1ff] = 0xaa; in readboot()
223 fsinfo[0x3fc] = fsinfo[0x3fd] = 0; in readboot()
224 fsinfo[0x3fe] = 0x55; in readboot()
225 fsinfo[0x3ff] = 0xaa; in readboot()
236 boot->bpbFSInfo = 0; in readboot()
239 boot->FSFree = fsinfo[0x1e8] + (fsinfo[0x1e9] << 8) in readboot()
240 + (fsinfo[0x1ea] << 16) in readboot()
241 + (fsinfo[0x1eb] << 24); in readboot()
242 boot->FSNext = fsinfo[0x1ec] + (fsinfo[0x1ed] << 8) in readboot()
243 + (fsinfo[0x1ee] << 16) in readboot()
244 + (fsinfo[0x1ef] << 24); in readboot()
331 boot->NumFree = 0; in readboot()
347 fsinfo[0x1e8] = (u_char)boot->FSFree; in writefsinfo()
348 fsinfo[0x1e9] = (u_char)(boot->FSFree >> 8); in writefsinfo()
349 fsinfo[0x1ea] = (u_char)(boot->FSFree >> 16); in writefsinfo()
350 fsinfo[0x1eb] = (u_char)(boot->FSFree >> 24); in writefsinfo()
351 fsinfo[0x1ec] = (u_char)boot->FSNext; in writefsinfo()
352 fsinfo[0x1ed] = (u_char)(boot->FSNext >> 8); in writefsinfo()
353 fsinfo[0x1ee] = (u_char)(boot->FSNext >> 16); in writefsinfo()
354 fsinfo[0x1ef] = (u_char)(boot->FSNext >> 24); in writefsinfo()
373 return 0; in writefsinfo()