Lines Matching refs:clus
132 #define stclus(sz, de) ((sz) != 32 ? cv2((de)->clus) : \
134 cv2((de)->clus))
210 fs->root.clus[0] = fs->rdcl & 0xff;
211 fs->root.clus[1] = (fs->rdcl >> 8) & 0xff;
240 u_int size, clus;
256 clus = stclus(fs->fatsz, de);
259 if ((!(de->attr & FA_DIR) && (!clus != !size)) ||
261 (clus && !okclus(fs, clus))) {
285 u_int nb, off, clus, c, cnt, n;
301 if ((clus = stclus(f->fs->fatsz, &f->de)))
308 if ((c = clus))
320 if (!clus || (n = f->fs->bsize - off) > cnt)
487 d->d_fileno = (dd.de.clus[1] << 8) + dd.de.clus[0];
582 lookup(DOS_FS *fs, u_int clus, const char *name, DOS_DE **dep)
590 if (!clus)
596 if (!clus && fs->fatsz == 32)
597 clus = fs->rdcl;
598 nsec = !clus ? entsec(fs->dirents) : fs->spc;
602 if (!clus && !lsec)
604 else if (okclus(fs, clus))
605 lsec = blklsn(fs, clus);
648 if (!clus)
650 if ((err = fatget(fs, &clus)))
652 if (fatend(fs->fatsz, clus))
725 if (!(c = cv2(de->clus)))