Lines Matching refs:SZDIRE

184 #define SZDIRE				32		/* Size of a directory entry */  macro
480 #define MAXDIRB(nc) ((nc + 44U) / 15 * SZDIRE) /* exFAT: Size of directory entry block scratchpad b…
1692 …FF_FS_EXFAT && fs->fs_type == FS_EXFAT) ? MAX_DIR_EX : MAX_DIR) || ofs % SZDIRE) { /* Check range … in dir_sdi()
1703 if (ofs / SZDIRE >= fs->n_rootdir) return FR_INT_ERR; /* Is index out of range? */ in dir_sdi()
1740 ofs = dp->dptr + SZDIRE; /* Next entry */ in dir_next()
1748 if (ofs / SZDIRE >= fs->n_rootdir) { /* Report EOT if it reached end of static table */ in dir_next()
2070 szblk = (dir[XDIR_NumSec] + 1) * SZDIRE; /* Number of bytes of the entry block */
2126 si = SZDIRE * 2; /* 1st C1 entry */
2130 if ((si % SZDIRE) == 0) si += 2; /* Skip entry type field */
2171 mem_cpy(dirb + 0 * SZDIRE, dp->dir, SZDIRE);
2172 sz_ent = (dirb[XDIR_NumSec] + 1) * SZDIRE;
2173 if (sz_ent < 3 * SZDIRE || sz_ent > 19 * SZDIRE) return FR_INT_ERR;
2182 mem_cpy(dirb + 1 * SZDIRE, dp->dir, SZDIRE);
2186 i = 2 * SZDIRE; /* Name offset to load */
2194 if (i < MAXDIRB(FF_MAX_LFN)) mem_cpy(dirb + i, dp->dir, SZDIRE);
2195 } while ((i += SZDIRE) < sz_ent);
2273 mem_cpy(dp->dir, dirb, SZDIRE);
2276 dirb += SZDIRE;
2299 mem_set(dirb, 0, 2 * SZDIRE);
2300 dirb[0 * SZDIRE + XDIR_Type] = ET_FILEDIR;
2301 dirb[1 * SZDIRE + XDIR_Type] = ET_STREAM;
2304 i = SZDIRE * 2; /* Top of file_name entries */
2312 } while (i % SZDIRE != 0);
2436 …for (nc = fs->dirbuf[XDIR_NumName], di = SZDIRE * 2, ni = 0; nc; nc--, di += 2, ni++) { /* Compare…
2437 if ((di % SZDIRE) == 0) di += 2;
2512 dp->blk_ofs = dp->dptr - SZDIRE * (nent - 1); /* Set the allocated entry block offset */
2556 res = dir_sdi(dp, dp->dptr - nent * SZDIRE);
2578 mem_set(dp->dir, 0, SZDIRE); /* Clean the entry */
3335 i = (i + SZDIRE) % SS(fs); /* Next entry */
3368 if (fs->n_rootdir % (SS(fs) / SZDIRE)) return FR_NO_FILESYSTEM; /* (Must be sector aligned) */
3377 sysect = nrsv + fasize + fs->n_rootdir / (SS(fs) / SZDIRE); /* RSV + FAT + FF_DIR */
4187 res = dir_sdi(&dj, 1 * SZDIRE); /* Get parent directory */
4905 mem_cpy(fs->win + SZDIRE, fs->win, SZDIRE); /* Create ".." entry */
4906 fs->win[SZDIRE + 1] = '.'; pcl = dj.obj.sclust;
4907 st_clust(fs, fs->win + SZDIRE, pcl);
4959 BYTE buf[FF_FS_EXFAT ? SZDIRE * 2 : SZDIRE], *dir;
4982 mem_cpy(buf, fs->dirbuf, SZDIRE * 2); /* Save 85+C0 entry of old object */
4993 mem_cpy(fs->dirbuf, buf, SZDIRE * 2); /* Restore 85+C0 entry */
5004 mem_cpy(buf, djo.dir, SZDIRE); /* Save directory entry of the object */
5014 mem_cpy(dir + 13, buf + 13, SZDIRE - 13);
5025 dir = fs->win + SZDIRE * 1; /* Ptr to .. entry */
5340 mem_set(dj.dir, 0, SZDIRE); /* Clean the entry */
5730 buf[SZDIRE * 0 + 0] = ET_VLABEL; /* Volume label entry */
5731 buf[SZDIRE * 1 + 0] = ET_BITMAP; /* Bitmap entry */
5732 st_dword(buf + SZDIRE * 1 + 20, 2); /* cluster */
5733 st_dword(buf + SZDIRE * 1 + 24, szb_bit); /* size */
5734 buf[SZDIRE * 2 + 0] = ET_UPCASE; /* Up-case table entry */
5735 st_dword(buf + SZDIRE * 2 + 4, sum); /* sum */
5736 st_dword(buf + SZDIRE * 2 + 20, 2 + tbl[0]); /* cluster */
5737 st_dword(buf + SZDIRE * 2 + 24, szb_case); /* size */
5819 sz_dir = (DWORD)n_rootdir * SZDIRE / ss; /* Rootdir size [sector] */