Lines Matching refs:cc
3862 UINT rcnt, cc, csect; local
3896 cc = btr / SS(fs); /* When remaining bytes >= sector size, */
3897 if (cc > 0) { /* Read maximum contiguous sectors directly */
3898 if (csect + cc > fs->csize) { /* Clip at cluster boundary */
3899 cc = fs->csize - csect;
3901 if (disk_read(fs->pdrv, rbuff, sect, cc) != RES_OK) ABORT(fs, FR_DISK_ERR);
3904 if (fs->wflag && fs->winsect - sect < cc) {
3908 if ((fp->flag & FA_DIRTY) && fp->sect - sect < cc) {
3913 rcnt = SS(fs) * cc; /* Number of bytes transferred */
3961 UINT wcnt, cc, csect; local
4011 cc = btw / SS(fs); /* When remaining bytes >= sector size, */
4012 if (cc > 0) { /* Write maximum contiguous sectors directly */
4013 if (csect + cc > fs->csize) { /* Clip at cluster boundary */
4014 cc = fs->csize - csect;
4016 if (disk_write(fs->pdrv, wbuff, sect, cc) != RES_OK) ABORT(fs, FR_DISK_ERR);
4019 …if (fs->winsect - sect < cc) { /* Refill sector cache if it gets invalidated by the direct write */
4024 if (fp->sect - sect < cc) { /* Refill sector cache if it gets invalidated by the direct write */
4030 wcnt = SS(fs) * cc; /* Number of bytes transferred */