Lines Matching refs:sclust

946 				Files[i].clu == dp->obj.sclust &&  in chk_lock()
980 Files[i].clu == dp->obj.sclust && in inc_lock()
988 Files[i].clu = dp->obj.sclust; in inc_lock()
1186 …if ((obj->objsize != 0 && obj->sclust != 0) || obj->stat == 0) { /* Object except root dir must ha… in get_fat()
1187 DWORD cofs = clst - obj->sclust; /* Offset from start cluster */ in get_fat()
1376 for (cl = obj->sclust, n = obj->n_cont; n; cl++, n--) { /* Create cluster chain on the FAT */ in fill_first_frag()
1482 clst = obj->sclust; /* Follow the chain to check if it gets contiguous */ in remove_chain()
1494 …if (obj->stat == 3 && pclst >= obj->sclust && pclst <= obj->sclust + obj->n_cont) { /* Was the cha… in remove_chain()
1545 obj->n_cont = scl - obj->sclust; /* Set size of the contiguous part */ in create_chain()
1696 clst = dp->obj.sclust; /* Table start cluster (0:root) */ in dir_sdi()
2214 obj->sclust = ld_dword(fs->dirbuf + XDIR_FstClus); /* Start cluster */
2236 dp->obj.sclust = obj->c_scl;
2520 if (dp->obj.sclust != 0) { /* Is it a sub-directory? */
3038 dp->obj.sclust = fs->cdir; /* Start from current directory */
3043 dp->obj.sclust = 0; /* Start from root directory */
3048 if (fs->fs_type == FS_EXFAT && dp->obj.sclust) { /* exFAT: Retrieve the sub-directory's status */
3091 dp->obj.c_scl = dp->obj.sclust;
3098 dp->obj.sclust = ld_clust(fs, fs->win + dp->dptr % SS(fs)); /* Open next directory */
3615 if (res == FR_OK && fp->obj.sclust != 0) { /* Remove the cluster chain if exist */
3616 res = remove_chain(&fp->obj, fp->obj.sclust, 0);
3617 fs->last_clst = fp->obj.sclust - 1; /* Reuse the cluster hole */
3675 fp->obj.c_scl = dj.obj.sclust; /* Get containing directory info */
3682 fp->obj.sclust = ld_clust(fs, dj.dir); /* Get object allocation info */
3701 clst = fp->obj.sclust; /* Follow the cluster chain */
3765 clst = fp->obj.sclust; /* Follow cluster chain from the origin */
3867 clst = fp->obj.sclust; /* Follow from the origin */
3885 if (fp->obj.sclust == 0) fp->obj.sclust = clst; /* Set start cluster if the first write */
3994 st_dword(fs->dirbuf + XDIR_FstClus, fp->obj.sclust);
4015 st_clust(fp->obj.fs, dir, fp->obj.sclust); /* Update file allocation information */
4113 fs->cdir = dj.obj.sclust;
4126 fs->cdc_scl = dj.obj.sclust; /* Save containing directory information */
4185 dj.obj.sclust = fs->cdir; /* Start to follow upper directory from current directory */
4186 while ((ccl = dj.obj.sclust) != 0) { /* Repeat while current directory is a sub-directory */
4191 dj.obj.sclust = ld_clust(fs, dj.dir); /* Goto parent directory */
4281 cl = fp->obj.sclust; /* Origin of the chain */
4346 clst = fp->obj.sclust; /* start from the first cluster */
4352 fp->obj.sclust = clst;
4438 dp->obj.c_scl = dp->obj.sclust; /* Get containing directory inforamation */
4445 dp->obj.sclust = ld_clust(fs, dp->dir); /* Get object allocation info */
4456 if (dp->obj.sclust != 0) {
4738 res = remove_chain(&fp->obj, fp->obj.sclust, 0);
4739 fp->obj.sclust = 0;
4812 dclst = obj.sclust;
4826 sdj.obj.sclust = dclst;
4906 fs->win[SZDIRE + 1] = '.'; pcl = dj.obj.sclust;
4986 res = (djn.obj.sclust == djo.obj.sclust && djn.dptr == djo.dptr) ? FR_NO_FILE : FR_EXIST;
5008 res = (djn.obj.sclust == djo.obj.sclust && djn.dptr == djo.dptr) ? FR_NO_FILE : FR_EXIST;
5018 …if ((dir[DIR_Attr] & AM_DIR) && djo.obj.sclust != djn.obj.sclust) { /* Update .. entry in the sub-…
5027 st_clust(fs, dir, djn.obj.sclust);
5172 dj.obj.fs = fs; dj.obj.sclust = 0; /* Open root directory */
5317 dj.obj.fs = fs; dj.obj.sclust = 0; /* Open root directory */
5437 fp->obj.sclust = scl; /* Update object allocation information */
5489 fp->obj.sclust : get_fat(&fp->obj, fp->clust);