Lines Matching refs:cl

1401 	DWORD cl, n;  in fill_first_frag()  local
1405 for (cl = obj->sclust, n = obj->n_cont; n; cl++, n--) { /* Create cluster chain on the FAT */ in fill_first_frag()
1406 res = put_fat(obj->fs, cl, cl + 1); in fill_first_frag()
1650 DWORD cl, ncl; in clmt_clust() local
1656 cl = (DWORD)(ofs / SS(fs) / fs->csize); /* Cluster order from top of the file */ in clmt_clust()
1660 if (cl < ncl) break; /* In this fragment? */ in clmt_clust()
1661 cl -= ncl; tbl++; /* Next fragment */ in clmt_clust()
1663 return cl + *tbl; /* Return the cluster number */ in clmt_clust()
1871 DWORD cl; local
1873 cl = ld_word(dir + DIR_FstClusLO);
1875 cl |= (DWORD)ld_word(dir + DIR_FstClusHI) << 16;
1878 return cl;
1886 DWORD cl /* Value to be set */ argument
1889 st_word(dir + DIR_FstClusLO, (WORD)cl);
1891 st_word(dir + DIR_FstClusHI, (WORD)(cl >> 16));
3742 DWORD cl, bcs, clst, tm; local
3812 cl = ld_clust(fs, dj.dir); /* Get current cluster chain */
3817 if (cl != 0) { /* Remove the cluster chain if exist */
3819 res = remove_chain(&dj.obj, cl, 0);
3822 fs->last_clst = cl - 1; /* Reuse the cluster hole */
4459 DWORD cl, pcl, ncl, tcl, tlen, ulen; local
4478 cl = fp->obj.sclust; /* Origin of the chain */
4479 if (cl != 0) {
4482 tcl = cl; ncl = 0; ulen += 2; /* Top, length and used items */
4484 pcl = cl; ncl++;
4485 cl = get_fat(&fp->obj, cl);
4486 if (cl <= 1) ABORT(fs, FR_INT_ERR);
4487 if (cl == 0xFFFFFFFF) ABORT(fs, FR_DISK_ERR);
4488 } while (cl == pcl + 1);
4492 } while (cl < fs->n_fatent); /* Repeat until end of chain */