Lines Matching refs:dirbuf

495 #define INIT_NAMBUF(fs)	{ (fs)->lfnbuf = lbuf; (fs)->dirbuf = dbuf; }
507 …); if (!lfn) LEAVE_FF(fs, FR_NOT_ENOUGH_CORE); (fs)->lfnbuf = lfn; (fs)->dirbuf = (BYTE*)(lfn+FF_M…
2164 BYTE* dirb = dp->obj.fs->dirbuf; /* Pointer to the on-memory direcotry entry block 85+C0+C1s */
2214 obj->sclust = ld_dword(fs->dirbuf + XDIR_FstClus); /* Start cluster */
2215 obj->objsize = ld_qword(fs->dirbuf + XDIR_FileSize); /* Size */
2216 obj->stat = fs->dirbuf[XDIR_GenFlags] & 2; /* Allocation status */
2262 BYTE* dirb = dp->obj.fs->dirbuf; /* Pointer to the direcotry entry block 85+C0+C1s */
2362 dp->obj.attr = fs->dirbuf[XDIR_Attr] & AM_MASK; /* Get attribute */
2433 …if (fs->dirbuf[XDIR_NumName] > FF_MAX_LFN) continue; /* Skip comparison if inaccessible object n…
2435 …if (ld_word(fs->dirbuf + XDIR_NameHash) != hash) continue; /* Skip comparison if hash mismatched */
2436 …for (nc = fs->dirbuf[XDIR_NumName], di = SZDIRE * 2, ni = 0; nc; nc--, di += 2, ni++) { /* Compare…
2438 if (ff_wtoupper(ld_word(fs->dirbuf + di)) != ff_wtoupper(fs->lfnbuf[ni])) break;
2526 st_qword(fs->dirbuf + XDIR_FileSize, dp->obj.objsize); /* Update the allocation status */
2527 st_qword(fs->dirbuf + XDIR_ValidFileSize, dp->obj.objsize);
2528 fs->dirbuf[XDIR_GenFlags] = dp->obj.stat | 1;
2534 create_xdir(fs->dirbuf, fs->lfnbuf); /* Create on-memory directory block to be written later */
2666 get_xfileinfo(fs->dirbuf, fno);
3056 dp->obj.objsize = ld_dword(fs->dirbuf + XDIR_FileSize);
3057 dp->obj.stat = fs->dirbuf[XDIR_GenFlags] & 2;
3436 fs->dirbuf = DirBuf; /* Static directory block scratchpad buuffer */
3609 mem_set(fs->dirbuf + 2, 0, 30); /* Clear 85 entry except for NumSec */
3610 mem_set(fs->dirbuf + 38, 0, 26); /* Clear C0 entry except for NumName and NameHash */
3611 fs->dirbuf[XDIR_Attr] = AM_ARC;
3612 st_dword(fs->dirbuf + XDIR_CrtTime, GET_FATTIME());
3613 fs->dirbuf[XDIR_GenFlags] = 1;
3992 …fs->dirbuf[XDIR_Attr] |= AM_ARC; /* Set archive attribute to indicate that the file has been ch…
3993 fs->dirbuf[XDIR_GenFlags] = fp->obj.stat | 1; /* Update file allocation information */
3994 st_dword(fs->dirbuf + XDIR_FstClus, fp->obj.sclust);
3995 st_qword(fs->dirbuf + XDIR_FileSize, fp->obj.objsize);
3996 st_qword(fs->dirbuf + XDIR_ValidFileSize, fp->obj.objsize);
3997 st_dword(fs->dirbuf + XDIR_ModTime, tm); /* Update modified time */
3998 fs->dirbuf[XDIR_ModTime10] = 0;
3999 st_dword(fs->dirbuf + XDIR_AccTime, 0);
4125 fs->cdir = ld_dword(fs->dirbuf + XDIR_FstClus); /* Sub-directory cluster */
4916 st_dword(fs->dirbuf + XDIR_ModTime, tm); /* Created time */
4917 st_dword(fs->dirbuf + XDIR_FstClus, dcl); /* Table start cluster */
4918 … st_dword(fs->dirbuf + XDIR_FileSize, (DWORD)fs->csize * SS(fs)); /* File size needs to be valid */
4919 st_dword(fs->dirbuf + XDIR_ValidFileSize, (DWORD)fs->csize * SS(fs));
4920 fs->dirbuf[XDIR_GenFlags] = 3; /* Initialize the object flag */
4921 fs->dirbuf[XDIR_Attr] = AM_DIR; /* Attribute */
4982 mem_cpy(buf, fs->dirbuf, SZDIRE * 2); /* Save 85+C0 entry of old object */
4991 nf = fs->dirbuf[XDIR_NumSec]; nn = fs->dirbuf[XDIR_NumName];
4992 nh = ld_word(fs->dirbuf + XDIR_NameHash);
4993 mem_cpy(fs->dirbuf, buf, SZDIRE * 2); /* Restore 85+C0 entry */
4994 fs->dirbuf[XDIR_NumSec] = nf; fs->dirbuf[XDIR_NumName] = nn;
4995 st_word(fs->dirbuf + XDIR_NameHash, nh);
4996 …if (!(fs->dirbuf[XDIR_Attr] & AM_DIR)) fs->dirbuf[XDIR_Attr] |= AM_ARC; /* Set archive attribute i…
5083 …fs->dirbuf[XDIR_Attr] = (attr & mask) | (fs->dirbuf[XDIR_Attr] & (BYTE)~mask); /* Apply attribute …
5128 st_dword(fs->dirbuf + XDIR_ModTime, (DWORD)fno->fdate << 16 | fno->ftime);