Lines Matching refs:FF_MAX_LFN
470 #if FF_MAX_LFN < 12 || FF_MAX_LFN > 255
471 #error Wrong setting of FF_MAX_LFN
484 static BYTE DirBuf[MAXDIRB(FF_MAX_LFN)]; /* Directory entry block scratchpad buffer */
486 static WCHAR LfnBuf[FF_MAX_LFN + 1]; /* LFN working buffer */
494 #define DEF_NAMBUF WCHAR lbuf[FF_MAX_LFN+1]; BYTE dbuf[MAXDIRB(FF_MAX_LFN)]; /* LFN working buffer…
498 #define DEF_NAMBUF WCHAR lbuf[FF_MAX_LFN+1]; /* LFN working buffer */
507 …lloc((FF_MAX_LFN+1)*2 + MAXDIRB(FF_MAX_LFN)); if (!lfn) LEAVE_FF(fs, FR_NOT_ENOUGH_CORE); (fs)->lf…
511 #define INIT_NAMBUF(fs) { lfn = ff_memalloc((FF_MAX_LFN+1)*2); if (!lfn) LEAVE_FF(fs, FR_NOT_ENOUGH…
1887 if (i >= FF_MAX_LFN + 1 || ff_wtoupper(uc) != ff_wtoupper(lfnbuf[i++])) { /* Compare it */
1923 if (i >= FF_MAX_LFN + 1) return 0; /* Buffer overflow? */
1931 if (i >= FF_MAX_LFN + 1) return 0; /* Buffer overflow? */
2129 if (si >= MAXDIRB(FF_MAX_LFN)) { di = 0; break; } /* Truncated directory block? */
2194 if (i < MAXDIRB(FF_MAX_LFN)) mem_cpy(dirb + i, dp->dir, SZDIRE);
2198 if (i <= MAXDIRB(FF_MAX_LFN)) {
2432 #if FF_MAX_LFN < 255
2433 …if (fs->dirbuf[XDIR_NumName] > FF_MAX_LFN) continue; /* Skip comparison if inaccessible object n…
2851 if (di >= FF_MAX_LFN) return FR_INVALID_NAME; /* Reject too long name */