Lines Matching refs:csize
1139 return fs->database + fs->csize * clst; /* Start sector number of the cluster */ in clst2sect()
1188 DWORD clen = (DWORD)((obj->objsize - 1) / SS(fs)) / fs->csize; /* Number of clusters - 1 */ in get_fat()
1466 rt[1] = clst2sect(fs, ecl) + fs->csize - 1; /* End of data area freed */ in remove_chain()
1624 cl = (DWORD)(ofs / SS(fs) / fs->csize); /* Cluster order from top of the file */ in clmt_clust()
1660 …for (szb = ((DWORD)fs->csize * SS(fs) >= MAX_MALLOC) ? MAX_MALLOC : fs->csize * SS(fs), ibuf = 0; … in dir_clear()
1664 …for (n = 0; n < fs->csize && disk_write(fs->pdrv, ibuf, sect + n, szb) == RES_OK; n += szb) ; /* F… in dir_clear()
1670 …for (n = 0; n < fs->csize && disk_write(fs->pdrv, ibuf, sect + n, szb) == RES_OK; n += szb) ; /* F… in dir_clear()
1672 return (n == fs->csize) ? FR_OK : FR_DISK_ERR; in dir_clear()
1707 csz = (DWORD)fs->csize * SS(fs); /* Bytes per cluster */ in dir_sdi()
1753 if ((ofs / SS(fs) & (fs->csize - 1)) == 0) { /* Cluster changed? */ in dir_next()
2525 … dp->obj.objsize += (DWORD)fs->csize * SS(fs); /* Increase the directory size by cluster size */
3312 fs->csize = 1 << fs->win[BPB_SecPerClusEx]; /* Cluster size */
3313 if (fs->csize == 0) return FR_NO_FILESYSTEM; /* (Must be 1..32768) */
3323 …if (maxlba < (QWORD)fs->database + nclst * fs->csize) return FR_NO_FILESYSTEM; /* (Volume size mus…
3330 if (so >= fs->csize) return FR_NO_FILESYSTEM; /* Not found? */
3339 fs->bitbase = fs->database + fs->csize * (bcl - 2); /* Bitmap sector */
3364 fs->csize = fs->win[BPB_SecPerClus]; /* Cluster size */
3365 …if (fs->csize == 0 || (fs->csize & (fs->csize - 1))) return FR_NO_FILESYSTEM; /* (Must be power of…
3379 nclst = (tsect - sysect) / fs->csize; /* Number of clusters */
3700 bcs = (DWORD)fs->csize * SS(fs); /* Cluster size in byte */
3762 csect = (UINT)(fp->fptr / SS(fs) & (fs->csize - 1)); /* Sector offset in the cluster */
3785 if (csect + cc > fs->csize) { /* Clip at cluster boundary */
3786 cc = fs->csize - csect;
3864 csect = (UINT)(fp->fptr / SS(fs)) & (fs->csize - 1); /* Sector offset in the cluster */
3900 if (csect + cc > fs->csize) { /* Clip at cluster boundary */
3901 cc = fs->csize - csect;
4310 dsc += (DWORD)((ofs - 1) / SS(fs)) & (fs->csize - 1);
4339 bcs = (DWORD)fs->csize * SS(fs); /* Cluster size (byte) */
4918 … st_dword(fs->dirbuf + XDIR_FileSize, (DWORD)fs->csize * SS(fs)); /* File size needs to be valid */
4919 st_dword(fs->dirbuf + XDIR_ValidFileSize, (DWORD)fs->csize * SS(fs));
5387 n = (DWORD)fs->csize * SS(fs); /* Cluster size */
5485 csect = (UINT)(fp->fptr / SS(fs) & (fs->csize - 1)); /* Sector offset in the cluster */