Lines Matching refs:clus
131 #define stclus(sz, de) ((sz) != 32 ? cv2((de)->clus) : \
133 cv2((de)->clus))
217 fs->root.clus[0] = fs->rdcl & 0xff;
218 fs->root.clus[1] = (fs->rdcl >> 8) & 0xff;
259 u_int size, clus;
271 clus = stclus(fs->fatsz, de);
274 if ((!(de->attr & FA_DIR) && (!clus != !size)) ||
276 (clus && !okclus(fs, clus))) {
298 u_int nb, off, clus, c, cnt, n;
314 if ((clus = stclus(f->fs->fatsz, &f->de)))
321 if ((c = clus))
333 if (!clus || (n = f->fs->bsize - off) > cnt)
500 d->d_fileno = (dd.de.clus[1] << 8) + dd.de.clus[0];
595 lookup(DOS_FS *fs, u_int clus, const char *name, DOS_DE **dep)
603 if (!clus)
609 if (!clus && fs->fatsz == 32)
610 clus = fs->rdcl;
611 nsec = !clus ? entsec(fs->dirents) : fs->spc;
615 if (!clus && !lsec)
617 else if (okclus(fs, clus))
618 lsec = blklsn(fs, clus);
661 if (!clus)
663 if ((err = fatget(fs, &clus)))
665 if (fatend(fs->fatsz, clus))
738 if (!(c = cv2(de->clus)))