Lines Matching defs:cl

125 checkclnum(struct bootblock *boot, u_int fat, cl_t cl, cl_t *next)
140 cl, fat,
196 cl_t cl;
273 for (cl = CLUST_FIRST; cl < boot->NumClusters;) {
276 fat[cl].next = p[0] + (p[1] << 8)
278 fat[cl].next &= boot->ClustMask;
279 ret |= checkclnum(boot, no, cl, &fat[cl].next);
280 cl++;
284 fat[cl].next = p[0] + (p[1] << 8);
285 ret |= checkclnum(boot, no, cl, &fat[cl].next);
286 cl++;
290 fat[cl].next = (p[0] + (p[1] << 8)) & 0x0fff;
291 ret |= checkclnum(boot, no, cl, &fat[cl].next);
292 cl++;
293 if (cl >= boot->NumClusters)
295 fat[cl].next = ((p[1] >> 4) + (p[2] << 4)) & 0x0fff;
296 ret |= checkclnum(boot, no, cl, &fat[cl].next);
297 cl++;
316 rsrvdcltype(cl_t cl)
318 if (cl == CLUST_FREE)
320 if (cl < CLUST_BAD)
322 if (cl > CLUST_BAD)
328 clustdiffer(cl_t cl, cl_t *cp1, cl_t *cp2, u_int fatnum)
336 cl, rsrvdcltype(*cp1));
344 cl, rsrvdcltype(*cp1), rsrvdcltype(*cp2), fatnum);
356 cl, rsrvdcltype(*cp1), *cp2, fatnum);
369 cl, *cp1, rsrvdcltype(*cp2), fatnum);
381 cl, *cp1, *cp2, fatnum);
401 cl_t cl;
404 for (cl = CLUST_FIRST; cl < boot->NumClusters; cl++)
405 if (first[cl].next != second[cl].next)
406 ret |= clustdiffer(cl, &first[cl].next, &second[cl].next, fatnum);
553 cl_t cl;
611 for (cl = CLUST_FIRST; cl < boot->NumClusters; cl++) {
614 if (fat[cl].next == CLUST_FREE)
616 *p++ = (u_char)fat[cl].next;
617 *p++ = (u_char)(fat[cl].next >> 8);
618 *p++ = (u_char)(fat[cl].next >> 16);
620 *p++ |= (fat[cl].next >> 24)&0x0f;
623 if (fat[cl].next == CLUST_FREE)
625 *p++ = (u_char)fat[cl].next;
626 *p++ = (u_char)(fat[cl].next >> 8);
629 if (fat[cl].next == CLUST_FREE)
631 *p++ = (u_char)fat[cl].next;
632 *p = (u_char)((fat[cl].next >> 8) & 0xf);
633 cl++;
634 if (cl >= boot->NumClusters)
636 if (fat[cl].next == CLUST_FREE)
638 *p++ |= (u_char)(fat[cl + 1].next << 4);
639 *p++ = (u_char)(fat[cl + 1].next >> 4);