Lines Matching refs:sclust
780 Files[i].clu == dp->obj.sclust && in chk_lock()
814 && Files[i].clu == dp->obj.sclust in inc_lock()
822 Files[i].clu = dp->obj.sclust; in inc_lock()
1451 clst = dp->obj.sclust; /* Table start cluster (0:root) */ in dir_sdi()
2546 dp->obj.sclust = fs->cdir; /* Start from current directory */ in follow_path()
2551 dp->obj.sclust = 0; /* Start from root directory */ in follow_path()
2582 dp->obj.sclust = ld_clust(fs, fs->win + dp->dptr % SS(fs)); /* Open next directory */ in follow_path()
2584 dp->obj.sclust = ld_clust(PARENTFS(fs), PARENTFS(fs)->win + dp->dptr % SS(PARENTFS(fs))); in follow_path()
3008 if (fp->obj.sclust != 0) { in get_clustinfo()
3009 val = fp->obj.sclust; in get_clustinfo()
3411 fp->obj.sclust = ld_clust(fs, dj.dir); /* Get object allocation info */ in f_open()
3440 clst = fp->obj.sclust; /* Follow the cluster chain */ in f_open()
3467 clst = fp->obj.sclust; in f_open()
3546 clst = fp->obj.sclust; /* Follow cluster chain from the origin */ in f_read()
3669 clst = fp->obj.sclust; /* Follow from the origin */ in f_write()
3690 if (fp->obj.sclust == 0) fp->obj.sclust = clst; /* Set start cluster if the first write */ in f_write()
3804 st_clust(fp->obj.fs, dir, fp->obj.sclust); /* Update file allocation information */ in f_sync()
3910 fs->cdir = dj.obj.sclust; in f_chdir()
3965 dj.obj.sclust = fs->cdir; /* Start to follow upper directory from current directory */ in f_getcwd()
3966 while ((ccl = dj.obj.sclust) != 0) { /* Repeat while current directory is a sub-directory */ in f_getcwd()
3971 dj.obj.sclust = ld_clust(fs, dj.dir); /* Goto parent directory */ in f_getcwd()
4057 cl = fp->obj.sclust; /* Origin of the chain */ in f_lseek()
4119 clst = fp->obj.sclust; /* start from the first cluster */ in f_lseek()
4126 fp->obj.sclust = clst; in f_lseek()
4208 dp->obj.sclust = ld_clust(fs, dp->dir); /* Get object allocation info */ in f_opendir()
4218 if (dp->obj.sclust != 0) { in f_opendir()
4508 res = remove_chain(&fp->obj, fp->obj.sclust, 0); in f_truncate()
4509 fp->obj.sclust = 0; in f_truncate()
4513 val = fp->obj.sclust; in f_truncate()
4684 sdj.obj.sclust = dclst; in f_unlink()
4741 dj.obj.sclust = 0; in f_mkdir()
4794 dir[SZDIRE + 1] = '.'; pcl = dj.obj.sclust; in f_mkdir()
4961 …if ((dir[DIR_Attr] & AM_DIR) && djo.obj.sclust != djn.obj.sclust) { /* Update .. entry in the sub-…
4971 st_clust(fs, dir, djn.obj.sclust);
4977 st_clust(fs, dir, djn.obj.sclust);
5136 dj.obj.fs = fs; dj.obj.sclust = 0; /* Open root directory */
5230 dj.obj.fs = fs; dj.obj.sclust = 0; /* Open root directory */
5308 if (fp->obj.sclust != 0) {
5381 if (fp->obj.sclust == 0) {
5382 fp->obj.sclust = scl; /* Update object allocation information */
5398 if (fp->obj.sclust == 0) {
5399 fp->obj.sclust = scl; /* Update object allocation information */
5477 fp->obj.sclust : get_fat(&fp->obj, fp->clust);