Lines Matching refs:cl

1355 	DWORD cl, n;  in fill_first_frag()  local
1359 for (cl = obj->sclust, n = obj->n_cont; n; cl++, n--) { /* Create cluster chain on the FAT */ in fill_first_frag()
1360 res = put_fat(obj->fs, cl, cl + 1); in fill_first_frag()
1602 DWORD cl, ncl, *tbl; in clmt_clust() local
1607 cl = (DWORD)(ofs / SS(fs) / fs->csize); /* Cluster order from top of the file */ in clmt_clust()
1611 if (cl < ncl) break; /* In this fragment? */ in clmt_clust()
1612 cl -= ncl; tbl++; /* Next fragment */ in clmt_clust()
1614 return cl + *tbl; /* Return the cluster number */ in clmt_clust()
1822 DWORD cl; local
1824 cl = ld_word(dir + DIR_FstClusLO);
1826 cl |= (DWORD)ld_word(dir + DIR_FstClusHI) << 16;
1829 return cl;
1837 DWORD cl /* Value to be set */ argument
1840 st_word(dir + DIR_FstClusLO, (WORD)cl);
1842 st_word(dir + DIR_FstClusHI, (WORD)(cl >> 16));
3663 DWORD cl, bcs, clst, tm; local
3733 cl = ld_clust(fs, dj.dir); /* Get current cluster chain */
3738 if (cl != 0) { /* Remove the cluster chain if exist */
3740 res = remove_chain(&dj.obj, cl, 0);
3743 fs->last_clst = cl - 1; /* Reuse the cluster hole */
4378 DWORD cl, pcl, ncl, tcl, tlen, ulen; local
4397 cl = fp->obj.sclust; /* Origin of the chain */
4398 if (cl != 0) {
4401 tcl = cl; ncl = 0; ulen += 2; /* Top, length and used items */
4403 pcl = cl; ncl++;
4404 cl = get_fat(&fp->obj, cl);
4405 if (cl <= 1) ABORT(fs, FR_INT_ERR);
4406 if (cl == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR);
4407 } while (cl == pcl + 1);
4411 } while (cl < fs->n_fatent); /* Repeat until end of chain */