Lines Matching refs:cc
3941 UINT rcnt, cc, csect; local
3975 cc = btr / SS(fs); /* When remaining bytes >= sector size, */
3976 if (cc > 0) { /* Read maximum contiguous sectors directly */
3977 if (csect + cc > fs->csize) { /* Clip at cluster boundary */
3978 cc = fs->csize - csect;
3980 if (disk_read(fs->pdrv, rbuff, sect, cc) != RES_OK) ABORT(fs, FR_DISK_ERR);
3983 if (fs->wflag && fs->winsect - sect < cc) {
3987 if ((fp->flag & FA_DIRTY) && fp->sect - sect < cc) {
3992 rcnt = SS(fs) * cc; /* Number of bytes transferred */
4040 UINT wcnt, cc, csect; local
4090 cc = btw / SS(fs); /* When remaining bytes >= sector size, */
4091 if (cc > 0) { /* Write maximum contiguous sectors directly */
4092 if (csect + cc > fs->csize) { /* Clip at cluster boundary */
4093 cc = fs->csize - csect;
4095 if (disk_write(fs->pdrv, wbuff, sect, cc) != RES_OK) ABORT(fs, FR_DISK_ERR);
4098 …if (fs->winsect - sect < cc) { /* Refill sector cache if it gets invalidated by the direct write */
4103 if (fp->sect - sect < cc) { /* Refill sector cache if it gets invalidated by the direct write */
4109 wcnt = SS(fs) * cc; /* Number of bytes transferred */