Lines Matching refs:csize
1167 return fs->database + (LBA_t)fs->csize * clst; /* Start sector number of the cluster */ in clst2sect()
1216 …DWORD clen = (DWORD)((LBA_t)((obj->objsize - 1) / SS(fs)) / fs->csize); /* Number of clusters - 1 … in get_fat()
1495 rt[1] = clst2sect(fs, ecl) + fs->csize - 1; /* End of data area to be freed */ in remove_chain()
1656 cl = (DWORD)(ofs / SS(fs) / fs->csize); /* Cluster order from top of the file */ in clmt_clust()
1692 …for (szb = ((DWORD)fs->csize * SS(fs) >= MAX_MALLOC) ? MAX_MALLOC : fs->csize * SS(fs), ibuf = 0; … in dir_clear()
1696 …for (n = 0; n < fs->csize && disk_write(fs->pdrv, ibuf, sect + n, szb) == RES_OK; n += szb) ; /* F… in dir_clear()
1702 …for (n = 0; n < fs->csize && disk_write(fs->pdrv, ibuf, sect + n, szb) == RES_OK; n += szb) ; /* F… in dir_clear()
1704 return (n == fs->csize) ? FR_OK : FR_DISK_ERR; in dir_clear()
1739 csz = (DWORD)fs->csize * SS(fs); /* Bytes per cluster */ in dir_sdi()
1785 if ((ofs / SS(fs) & (fs->csize - 1)) == 0) { /* Cluster changed? */ in dir_next()
2519 dp->obj.objsize += (DWORD)fs->csize * SS(fs); /* Increase the directory size by cluster size */
3486 fs->csize = 1 << fs->win[BPB_SecPerClusEx]; /* Cluster size */
3487 if (fs->csize == 0) return FR_NO_FILESYSTEM; /* (Must be 1..32768 sectors) */
3497 …if (maxlba < (QWORD)fs->database + nclst * fs->csize) return FR_NO_FILESYSTEM; /* (Volume size mus…
3504 if (so >= fs->csize) return FR_NO_FILESYSTEM; /* Not found? */
3513 fs->bitbase = fs->database + fs->csize * (bcl - 2); /* Bitmap sector */
3539 fs->csize = fs->win[BPB_SecPerClus]; /* Cluster size */
3540 …if (fs->csize == 0 || (fs->csize & (fs->csize - 1))) return FR_NO_FILESYSTEM; /* (Must be power of…
3554 nclst = (tsect - sysect) / fs->csize; /* Number of clusters */
3888 bcs = (DWORD)fs->csize * SS(fs); /* Cluster size in byte */
3954 csect = (UINT)(fp->fptr / SS(fs) & (fs->csize - 1)); /* Sector offset in the cluster */
3977 if (csect + cc > fs->csize) { /* Clip at cluster boundary */
3978 cc = fs->csize - csect;
4056 csect = (UINT)(fp->fptr / SS(fs)) & (fs->csize - 1); /* Sector offset in the cluster */
4092 if (csect + cc > fs->csize) { /* Clip at cluster boundary */
4093 cc = fs->csize - csect;
4507 dsc += (DWORD)((ofs - 1) / SS(fs)) & (fs->csize - 1);
4536 bcs = (DWORD)fs->csize * SS(fs); /* Cluster size (byte) */
5122 …st_dword(fs->dirbuf + XDIR_FileSize, (DWORD)fs->csize * SS(fs)); /* Directory size needs to be val…
5123 st_dword(fs->dirbuf + XDIR_ValidFileSize, (DWORD)fs->csize * SS(fs));
5600 n = (DWORD)fs->csize * SS(fs); /* Cluster size */
5704 csect = (UINT)(fp->fptr / SS(fs) & (fs->csize - 1)); /* Sector offset in the cluster */