Lines Matching defs:fno

2156 	FILINFO* fno		/* Pointer to the file information to be filled */
2170 fno->fname[0] = 0; /* Invaidate file info */
2182 nw = put_utf((DWORD)hs << 16 | wc, &fno->fname[di], FF_LFN_BUF - di); /* Store it in API encoding */
2190 fno->fname[di] = 0; /* Terminate the LFN (null string means LFN is invalid) */
2197 if (si == 9 && di < FF_SFN_BUF) fno->altname[di++] = '.'; /* Insert a . if extension is exist */
2206 nw = put_utf(wc, &fno->altname[di], FF_SFN_BUF - di); /* Store it in API encoding */
2212 fno->altname[di++] = (TCHAR)wc; /* Store it without any conversion */
2215 fno->altname[di] = 0; /* Terminate the SFN (null string means SFN is invalid) */
2217 if (fno->fname[0] == 0) { /* If LFN is invalid, altname[] needs to be copied to fname[] */
2219 fno->fname[di++] = '\?';
2221 for (si = di = 0, lcf = NS_BODY; fno->altname[si]; si++, di++) { /* Copy altname[] to fname[] with case information */
2222 wc = (WCHAR)fno->altname[si];
2225 fno->fname[di] = (TCHAR)wc;
2228 fno->fname[di] = 0; /* Terminate the LFN */
2229 if (!dp->dir[DIR_NTres]) fno->altname[0] = 0; /* Altname is not needed if neither LFN nor case info is exist. */
2238 if (si == 9) fno->fname[di++] = '.';/* Insert a . if extension is exist */
2239 fno->fname[di++] = c;
2241 fno->fname[di] = 0; /* Terminate the SFN */
2244 fno->fattrib = dp->dir[DIR_Attr] & AM_MASK; /* Attribute */
2245 fno->fsize = ld_dword(dp->dir + DIR_FileSize); /* Size */
2246 fno->ftime = ld_word(dp->dir + DIR_ModTime + 0); /* Time */
2247 fno->fdate = ld_word(dp->dir + DIR_ModTime + 2); /* Date */
2248 fno->sclst = ld_clust(fs, dp->dir); /* Start cluster */
3973 FILINFO fno;
4004 get_fileinfo(&dj, &fno); /* Get the directory name and push it to the buffer */
4005 for (n = 0; fno.fname[n]; n++) ; /* Name length */
4009 while (n) buff[--i] = fno.fname[--n];
4300 FILINFO* fno /* Pointer to file information to return */
4310 if (!fno) {
4317 get_fileinfo(dp, fno); /* Get the object information */
4336 FILINFO* fno /* Pointer to the file information structure */
4343 res = f_readdir(dp, fno); /* Get a directory item */
4344 if (res != FR_OK || !fno || !fno->fname[0]) break; /* Terminate if any error or end of directory */
4345 if (pattern_match(dp->pat, fno->fname, 0, FIND_RECURS)) break; /* Test for the file name */
4347 if (pattern_match(dp->pat, fno->altname, 0, FIND_RECURS)) break; /* Test for alternative name if exist */
4361 FILINFO* fno, /* Pointer to the file information structure */
4372 res = f_findnext(dp, fno); /* Find the first item */
4388 FILINFO* fno /* Pointer to file information to return */
4405 if (fno) get_fileinfo(&dj, fno);
5111 const FILINFO* fno /* Pointer to the timestamp to be set */
5127 st_dword(dj.dir + DIR_ModTime, (DWORD)fno->fdate << 16 | fno->ftime);
6912 tcl = (DWORD)(dir_info->fno.fsize / clust_size) + ((dir_info->fno.fsize & (clust_size - 1)) ? 1 : 0); /* Number of clusters required */
6913 if (dir_info->fno.fsize == 0) { /* When set file size to zero, remove entire cluster chain */
6914 if (dir_info->fno.sclst != 0) {
6916 res = remove_chain(&(dir_info->f_dir.obj), dir_info->fno.sclst, 0);
6923 val = get_fat(&(dir_info->f_dir.obj), dir_info->fno.sclst + tcl - 1);
6938 res = remove_chain(&(dir_info->f_dir.obj), val, dir_info->fno.sclst + tcl - 1);