Lines Matching refs:objsize
3412 fp->obj.objsize = ld_dword(dj.dir + DIR_FileSize); in f_open()
3437 …if ((mode & FA_SEEKEND) && fp->obj.objsize > 0) { /* Seek to end of file if FA_OPEN_APPEND is spec… in f_open()
3438 fp->fptr = fp->obj.objsize; /* Offset to seek */ in f_open()
3441 for (ofs = fp->obj.objsize; res == FR_OK && ofs > bcs; ofs -= bcs) { in f_open()
3537 remain = fp->obj.objsize - fp->fptr; in f_read()
3664 …, wbuff += wcnt, fp->fptr += wcnt, fp->obj.objsize = (fp->fptr > fp->obj.objsize) ? fp->fptr : fp-… in f_write()
3732 if (fp->fptr >= fp->obj.objsize) { /* Avoid silly cache filling on the growing edge */ in f_write()
3738 fp->fptr < fp->obj.objsize && in f_write()
3805 st_dword(dir + DIR_FileSize, (DWORD)fp->obj.objsize); /* Update file size */ in f_sync()
4080 if (ofs > fp->obj.objsize) ofs = fp->obj.objsize; /* Clip offset at the file size */ in f_lseek()
4106 …if (ofs > fp->obj.objsize && (FF_FS_READONLY || !(fp->flag & FA_WRITE))) { /* In read-only mode, c… in f_lseek()
4107 ofs = fp->obj.objsize; in f_lseek()
4159 …if (!FF_FS_READONLY && fp->fptr > fp->obj.objsize) { /* Set file change flag if the file size is e… in f_lseek()
4160 fp->obj.objsize = fp->fptr; in f_lseek()
4506 if (fp->fptr <= fp->obj.objsize) { /* Process when fptr is not on the eof */ in f_truncate()
4540 fp->obj.objsize = length; /* Set file size to length */ in f_truncate()
5468 remain = fp->obj.objsize - fp->fptr;