Home | History | Annotate | Download | only in fsck_msdos

Lines Matching defs:cl

52 checkclnum(struct bootblock *boot, u_int fat, cl_t cl, cl_t *next)
67 cl, fat,
123 cl_t cl;
200 for (cl = CLUST_FIRST; cl < boot->NumClusters;) {
203 fat[cl].next = p[0] + (p[1] << 8)
205 fat[cl].next &= boot->ClustMask;
206 ret |= checkclnum(boot, no, cl, &fat[cl].next);
207 cl++;
211 fat[cl].next = p[0] + (p[1] << 8);
212 ret |= checkclnum(boot, no, cl, &fat[cl].next);
213 cl++;
217 fat[cl].next = (p[0] + (p[1] << 8)) & 0x0fff;
218 ret |= checkclnum(boot, no, cl, &fat[cl].next);
219 cl++;
220 if (cl >= boot->NumClusters)
222 fat[cl].next = ((p[1] >> 4) + (p[2] << 4)) & 0x0fff;
223 ret |= checkclnum(boot, no, cl, &fat[cl].next);
224 cl++;
243 rsrvdcltype(cl_t cl)
245 if (cl == CLUST_FREE)
247 if (cl < CLUST_BAD)
249 if (cl > CLUST_BAD)
255 clustdiffer(cl_t cl, cl_t *cp1, cl_t *cp2, u_int fatnum)
263 cl, rsrvdcltype(*cp1));
271 cl, rsrvdcltype(*cp1), rsrvdcltype(*cp2), fatnum);
283 cl, rsrvdcltype(*cp1), *cp2, fatnum);
296 cl, *cp1, rsrvdcltype(*cp2), fatnum);
308 cl, *cp1, *cp2, fatnum);
328 cl_t cl;
331 for (cl = CLUST_FIRST; cl < boot->NumClusters; cl++)
332 if (first[cl].next != second[cl].next)
333 ret |= clustdiffer(cl, &first[cl].next, &second[cl].next, fatnum);
480 cl_t cl;
538 for (cl = CLUST_FIRST; cl < boot->NumClusters; cl++) {
541 if (fat[cl].next == CLUST_FREE)
543 *p++ = (u_char)fat[cl].next;
544 *p++ = (u_char)(fat[cl].next >> 8);
545 *p++ = (u_char)(fat[cl].next >> 16);
547 *p++ |= (fat[cl].next >> 24)&0x0f;
550 if (fat[cl].next == CLUST_FREE)
552 *p++ = (u_char)fat[cl].next;
553 *p++ = (u_char)(fat[cl].next >> 8);
556 if (fat[cl].next == CLUST_FREE)
558 *p++ = (u_char)fat[cl].next;
559 *p = (u_char)((fat[cl].next >> 8) & 0xf);
560 cl++;
561 if (cl >= boot->NumClusters)
563 if (fat[cl].next == CLUST_FREE)
565 *p++ |= (u_char)(fat[cl].next << 4);
566 *p++ = (u_char)(fat[cl].next >> 4);