Lines Matching defs:cl
341 cl_t cl;
361 cl = fat_get(boot->RootCl);
362 if (cl == CLUST_ERROR)
365 if (cl < CLUST_FIRST
366 || (cl >= CLUST_RSRVD && cl< CLUST_EOFS)) {
367 if (cl == CLUST_FREE)
369 else if (cl >= CLUST_RSRVD)
371 rsrvdcltype(cl));
554 cl_t cl, next;
564 cl = dir->head;
571 for (cl = dir->head; (sz += boot->ClusterSize) < dir->size;)
573 cl = fat_get(cl);
574 if (cl == CLUST_ERROR)
578 /* When we get here, "cl" is the new last cluster of the file */
584 next = fat_get(cl);
587 if (fat_set(cl, CLUST_EOF))
589 cl = next;
602 next = fat_get(cl);
605 if (fat_set(cl, CLUST_FREE))
607 cl = next;
684 cl_t cl, valcl = ~0, invcl = ~0, empcl = ~0;
692 cl = dir->head;
693 if (dir->parent && (cl < CLUST_FIRST || cl >= boot->NumClusters)) {
697 fprintf(stderr, "readDosDirSection: Start cluster (%u) out of range; ignoring\n", cl);
704 last_cl = cl; /* Remember last cluster accessed before exiting loop */
715 off = cl * boot->SecPerClust + boot->ClusterOffset;
740 empcl = cl;
757 cl, p - buffer, 1) == FSFATAL)
759 q = empcl == cl ? empty : buffer;
789 valcl = cl;
798 invcl = cl;
847 invcl = cl;
884 invlfn ? invcl : valcl, cl, cl,
931 invcl, vallfn ? valcl : cl, cl,
936 ? (valcl == cl && vallfn != buffer)
1156 * to follow. In this case, we'll exit the loop with cl==0.
1162 } while ((cl = fat_get(cl)) >= CLUST_FIRST && cl < boot->NumClusters && cl != dir->end);
1163 if (cl == CLUST_ERROR)