Lines Matching refs:LEAVE_FF
209 #define ABORT(fs, res) { fp->err = (BYTE)(res); LEAVE_FF(fs, res); }
217 #define LEAVE_FF(fs, res) { unlock_fs(fs, res); return res; } macro
219 #define LEAVE_FF(fs, res) return res macro
507 … { lfn = ff_memalloc((FF_MAX_LFN+1)*2 + MAXDIRB(FF_MAX_LFN)); if (!lfn) LEAVE_FF(fs, FR_NOT_ENOUGH…
511 #define INIT_NAMBUF(fs) { lfn = ff_memalloc((FF_MAX_LFN+1)*2); if (!lfn) LEAVE_FF(fs, FR_NOT_ENOUGH…
3537 LEAVE_FF(fs, res);
3727 LEAVE_FF(fs, res);
3754 if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res); /* Check validity */
3755 if (!(fp->flag & FA_READ)) LEAVE_FF(fs, FR_DENIED); /* Check access mode */
3826 LEAVE_FF(fs, FR_OK);
3853 if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res); /* Check validity */
3854 if (!(fp->flag & FA_WRITE)) LEAVE_FF(fs, FR_DENIED); /* Check access mode */
3948 LEAVE_FF(fs, FR_OK);
3973 if (disk_write(fs->pdrv, fp->buf, fp->sect, 1) != RES_OK) LEAVE_FF(fs, FR_DISK_ERR);
4027 LEAVE_FF(fs, res);
4149 LEAVE_FF(fs, res);
4241 LEAVE_FF(fs, res);
4274 if (res != FR_OK) LEAVE_FF(fs, res);
4405 LEAVE_FF(fs, res);
4471 LEAVE_FF(fs, res);
4537 LEAVE_FF(fs, res);
4624 LEAVE_FF(dj.obj.fs, res);
4713 LEAVE_FF(fs, res);
4733 if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res);
4734 if (!(fp->flag & FA_WRITE)) LEAVE_FF(fs, FR_DENIED); /* Check access mode */
4763 LEAVE_FF(fs, res);
4857 LEAVE_FF(fs, res);
4941 LEAVE_FF(fs, res);
5046 LEAVE_FF(fs, res);
5098 LEAVE_FF(fs, res);
5143 LEAVE_FF(fs, res);
5240 LEAVE_FF(fs, res);
5267 if (res != FR_OK) LEAVE_FF(fs, res);
5283 LEAVE_FF(fs, FR_INVALID_NAME);
5307 LEAVE_FF(fs, FR_INVALID_NAME);
5312 if (dirvn[0] == DDEM) LEAVE_FF(fs, FR_INVALID_NAME); /* Reject illegal name (heading DDEM) */
5357 LEAVE_FF(fs, res);
5382 if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res);
5383 if (fsz == 0 || fp->obj.objsize != 0 || !(fp->flag & FA_WRITE)) LEAVE_FF(fs, FR_DENIED);
5385 …if (fs->fs_type != FS_EXFAT && fsz >= 0x100000000) LEAVE_FF(fs, FR_DENIED); /* Check if in size li…
5448 LEAVE_FF(fs, res);
5477 if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res);
5478 if (!(fp->flag & FA_READ)) LEAVE_FF(fs, FR_DENIED); /* Check access mode */
5520 LEAVE_FF(fs, FR_OK);