Lines Matching refs:objsize
1186 …if ((obj->objsize != 0 && obj->sclust != 0) || obj->stat == 0) { /* Object except root dir must ha… in get_fat()
1188 DWORD clen = (DWORD)((obj->objsize - 1) / SS(fs)) / fs->csize; /* Number of clusters - 1 */ in get_fat()
2215 obj->objsize = ld_qword(fs->dirbuf + XDIR_FileSize); /* Size */
2238 dp->obj.objsize = obj->c_size & 0xFFFFFF00;
2525 … dp->obj.objsize += (DWORD)fs->csize * SS(fs); /* Increase the directory size by cluster size */
2526 st_qword(fs->dirbuf + XDIR_FileSize, dp->obj.objsize); /* Update the allocation status */
2527 st_qword(fs->dirbuf + XDIR_ValidFileSize, dp->obj.objsize);
3056 dp->obj.objsize = ld_dword(fs->dirbuf + XDIR_FileSize);
3092 dp->obj.c_size = ((DWORD)dp->obj.objsize & 0xFFFFFF00) | dp->obj.stat;
3676 fp->obj.c_size = ((DWORD)dj.obj.objsize & 0xFFFFFF00) | dj.obj.stat;
3683 fp->obj.objsize = ld_dword(dj.dir + DIR_FileSize);
3698 …if ((mode & FA_SEEKEND) && fp->obj.objsize > 0) { /* Seek to end of file if FA_OPEN_APPEND is spec…
3699 fp->fptr = fp->obj.objsize; /* Offset to seek */
3702 for (ofs = fp->obj.objsize; res == FR_OK && ofs > bcs; ofs -= bcs) {
3756 remain = fp->obj.objsize - fp->fptr;
3862 …, wbuff += wcnt, fp->fptr += wcnt, fp->obj.objsize = (fp->fptr > fp->obj.objsize) ? fp->fptr : fp-…
3921 if (fp->fptr >= fp->obj.objsize) { /* Avoid silly cache filling on the growing edge */
3927 fp->fptr < fp->obj.objsize &&
3995 st_qword(fs->dirbuf + XDIR_FileSize, fp->obj.objsize);
3996 st_qword(fs->dirbuf + XDIR_ValidFileSize, fp->obj.objsize);
4016 st_dword(dir + DIR_FileSize, (DWORD)fp->obj.objsize); /* Update file size */
4127 fs->cdc_size = ((DWORD)dj.obj.objsize & 0xFFFFFF00) | dj.obj.stat;
4304 if (ofs > fp->obj.objsize) ofs = fp->obj.objsize; /* Clip offset at the file size */
4333 …if (ofs > fp->obj.objsize && (FF_FS_READONLY || !(fp->flag & FA_WRITE))) { /* In read-only mode, c…
4334 ofs = fp->obj.objsize;
4362 …if (FF_FS_EXFAT && fp->fptr > fp->obj.objsize) { /* No FAT chain object needs correct objsize to g…
4363 fp->obj.objsize = fp->fptr;
4387 …if (!FF_FS_READONLY && fp->fptr > fp->obj.objsize) { /* Set file change flag if the file size is e…
4388 fp->obj.objsize = fp->fptr;
4439 dp->obj.c_size = ((DWORD)dp->obj.objsize & 0xFFFFFF00) | dp->obj.stat;
4736 if (fp->fptr < fp->obj.objsize) { /* Process when fptr is not on the eof */
4749 fp->obj.objsize = fp->fptr; /* Set file size to current read/write point */
4829 sdj.obj.objsize = obj.objsize;
5383 if (fsz == 0 || fp->obj.objsize != 0 || !(fp->flag & FA_WRITE)) LEAVE_FF(fs, FR_DENIED);
5438 fp->obj.objsize = fsz;
5480 remain = fp->obj.objsize - fp->fptr;