Lines Matching refs:sclust

929 				Files[i].clu == dp->obj.sclust &&  in chk_lock()
963 && Files[i].clu == dp->obj.sclust in inc_lock()
971 Files[i].clu = dp->obj.sclust; in inc_lock()
1168 …if ((obj->objsize != 0 && obj->sclust != 0) || obj->stat == 0) { /* Object except root dir must ha… in get_fat()
1169 DWORD cofs = clst - obj->sclust; /* Offset from start cluster */ in get_fat()
1359 for (cl = obj->sclust, n = obj->n_cont; n; cl++, n--) { /* Create cluster chain on the FAT */ in fill_first_frag()
1465 clst = obj->sclust; /* Follow the chain to check if it gets contiguous */ in remove_chain()
1477 …if (obj->stat == 3 && pclst >= obj->sclust && pclst <= obj->sclust + obj->n_cont) { /* Was the cha… in remove_chain()
1528 obj->n_cont = scl - obj->sclust; /* Set size of the contiguous part */ in create_chain()
1679 clst = dp->obj.sclust; /* Table start cluster (0:root) */ in dir_sdi()
2155 obj->sclust = ld_dword(fs->dirbuf + XDIR_FstClus); /* Start cluster */
2177 dp->obj.sclust = obj->c_scl;
2461 if (dp->obj.sclust != 0) { /* Is it a sub-directory? */
3015 dp->obj.sclust = fs->cdir; /* Start at the current directory */
3020 dp->obj.sclust = 0; /* Start from the root directory */
3025 if (fs->fs_type == FS_EXFAT && dp->obj.sclust) { /* exFAT: Retrieve the sub-directory's status */
3068 dp->obj.c_scl = dp->obj.sclust;
3075 dp->obj.sclust = ld_clust(fs, fs->win + dp->dptr % SS(fs)); /* Open next directory */
3722 if (res == FR_OK && fp->obj.sclust != 0) { /* Remove the cluster chain if exist */
3723 res = remove_chain(&fp->obj, fp->obj.sclust, 0);
3724 fs->last_clst = fp->obj.sclust - 1; /* Reuse the cluster hole */
3784 fp->obj.c_scl = dj.obj.sclust; /* Get containing directory info */
3791 fp->obj.sclust = ld_clust(fs, dj.dir); /* Get object allocation info */
3810 clst = fp->obj.sclust; /* Follow the cluster chain */
3878 clst = fp->obj.sclust; /* Follow cluster chain from the origin */
3980 clst = fp->obj.sclust; /* Follow from the origin */
3998 if (fp->obj.sclust == 0) fp->obj.sclust = clst; /* Set start cluster if the first write */
4107 st_dword(fs->dirbuf + XDIR_FstClus, fp->obj.sclust); /* Update start cluster */
4128 st_clust(fp->obj.fs, dir, fp->obj.sclust); /* Update file allocation information */
4226 fs->cdir = dj.obj.sclust;
4239 fs->cdc_scl = dj.obj.sclust; /* Save containing directory information */
4298 dj.obj.sclust = fs->cdir; /* Start to follow upper directory from current directory */
4299 while ((ccl = dj.obj.sclust) != 0) { /* Repeat while current directory is a sub-directory */
4304 dj.obj.sclust = ld_clust(fs, dj.dir); /* Goto parent directory */
4397 cl = fp->obj.sclust; /* Origin of the chain */
4462 clst = fp->obj.sclust; /* start from the first cluster */
4468 fp->obj.sclust = clst;
4554 dp->obj.c_scl = dp->obj.sclust; /* Get containing directory inforamation */
4561 dp->obj.sclust = ld_clust(fs, dp->dir); /* Get object allocation info */
4572 if (dp->obj.sclust != 0) {
4857 res = remove_chain(&fp->obj, fp->obj.sclust, 0);
4858 fp->obj.sclust = 0;
4931 dclst = obj.sclust;
4945 sdj.obj.sclust = dclst;
5025 fs->win[SZDIRE + 1] = '.'; pcl = dj.obj.sclust;
5105 res = (djn.obj.sclust == djo.obj.sclust && djn.dptr == djo.dptr) ? FR_NO_FILE : FR_EXIST;
5127 res = (djn.obj.sclust == djo.obj.sclust && djn.dptr == djo.dptr) ? FR_NO_FILE : FR_EXIST;
5137 …if ((dir[DIR_Attr] & AM_DIR) && djo.obj.sclust != djn.obj.sclust) { /* Update .. entry in the sub-…
5146 st_clust(fs, dir, djn.obj.sclust);
5291 dj.obj.fs = fs; dj.obj.sclust = 0; /* Open root directory */
5438 dj.obj.fs = fs; dj.obj.sclust = 0; /* Open root directory */
5558 fp->obj.sclust = scl; /* Update object allocation information */
5610 fp->obj.sclust : get_fat(&fp->obj, fp->clust);