Lines Matching refs:DWORD

255 #define GET_FATTIME()   ((DWORD)(FF_NORTC_YEAR - 1980) << 25 | (DWORD)FF_NORTC_MON << 21 | (DWORD)F…
268 DWORD clu; /* Object ID 2, containing directory (0:root) */
269 DWORD ofs; /* Object ID 3, offset in the directory */
590 static DWORD ld_dword (const BYTE* ptr) /* Load a 4-byte little-endian word */ in ld_dword()
592 DWORD rv; in ld_dword()
625 static void st_dword (BYTE* ptr, DWORD val) /* Store a 4-byte word in little-endian */ in st_dword()
715 static DWORD tchar2uni ( /* Returns character in UTF-16 encoding (>=0x10000 on double encoding u… in tchar2uni()
719 DWORD uc; in tchar2uni()
789 DWORD chr, /* UTF-16 encoded character (Double encoding unit char if >=0x10000) */ in put_utf()
810 DWORD hc; in put_utf()
843 DWORD hc; in put_utf()
1036 DWORD sector /* Sector number to make appearance in the fs->win[] */ in move_window()
1102 static DWORD clst2sect ( /* !=0:Sector number, 0:Failed (invalid cluster#) */ in clst2sect()
1104 DWORD clst /* Cluster# to be converted */ in clst2sect()
1119 static DWORD get_fat ( /* 0xFFFFFFFF:Disk error, 1:Internal error, 2..0x7FFFFFFF:Cluster statu… in get_fat()
1121 DWORD clst /* Cluster number to get the value */ in get_fat()
1125 DWORD val; in get_fat()
1157 DWORD cofs = clst - obj->sclust; /* Offset from start cluster */ in get_fat()
1158DWORD clen = (DWORD)((obj->objsize - 1) / SS(fs)) / fs->csize; /* Number of clusters - 1 */ in get_fat()
1198 DWORD clst, /* FAT index number (cluster number) to be changed */ in put_fat()
1199 DWORD val /* New value to be set to the entry */ in put_fat()
1261 static DWORD find_bitmap ( /* 0:Not found, 2..:Cluster block found, 0xFFFFFFFF:Disk error */ in find_bitmap()
1263 DWORD clst, /* Cluster number to scan from */ in find_bitmap()
1264 DWORD ncl /* Number of contiguous clusters to find (1..) */ in find_bitmap()
1269 DWORD val, scl, ctr; in find_bitmap()
1303 DWORD clst, /* Cluster number to change from */ in change_bitmap()
1304 DWORD ncl, /* Number of clusters to be changed */ in change_bitmap()
1310 DWORD sect; in change_bitmap()
1342 DWORD cl, n; in fill_first_frag()
1362 DWORD lcl, /* Last cluster of the fragment */ in fill_last_frag()
1363 DWORD term /* Value to set the last FAT entry */ in fill_last_frag()
1388 DWORD clst, /* Cluster to remove a chain from */ in remove_chain()
1389 DWORD pclst /* Previous cluster of clst (0 if entire chain) */ in remove_chain()
1393 DWORD nxt; in remove_chain()
1396 DWORD scl = clst, ecl = clst; in remove_chain()
1399 DWORD rt[2]; in remove_chain()
1481 static DWORD create_chain ( /* 0:No free cluster, 1:Internal error, 0xFFFFFFFF:Disk error, >=2:New … in create_chain()
1483 DWORD clst /* Cluster# to stretch, 0:Create a new chain */ in create_chain()
1486 DWORD cs, ncl, scl; in create_chain()
1584 static DWORD clmt_clust ( /* <2:Error, >=2:Cluster number */ in clmt_clust()
1589 DWORD cl, ncl, *tbl; in clmt_clust()
1594 cl = (DWORD)(ofs / SS(fs) / fs->csize); /* Cluster order from top of the file */ in clmt_clust()
1616 DWORD clst /* Directory table to clear */ in dir_clear()
1619 DWORD sect; in dir_clear()
1630 …for (szb = ((DWORD)fs->csize * SS(fs) >= MAX_MALLOC) ? MAX_MALLOC : fs->csize * SS(fs), ibuf = 0; … in dir_clear()
1655 DWORD ofs /* Offset of directory table */ in dir_sdi()
1658 DWORD csz, clst; in dir_sdi()
1662 …if (ofs >= (DWORD)((FF_FS_EXFAT && fs->fs_type == FS_EXFAT) ? MAX_DIR_EX : MAX_DIR) || ofs % SZDIR… in dir_sdi()
1677 csz = (DWORD)fs->csize * SS(fs); /* Bytes per cluster */ in dir_sdi()
1706 DWORD ofs, clst; in dir_next()
1711 …if (ofs >= (DWORD)((FF_FS_EXFAT && fs->fs_type == FS_EXFAT) ? MAX_DIR_EX : MAX_DIR)) dp->sect = 0;… in dir_next()
1804 static DWORD ld_clust ( /* Returns the top cluster value of the SFN entry */
1809 DWORD cl;
1813 cl |= (DWORD)ld_word(dir + DIR_FstClusHI) << 16;
1824 DWORD cl /* Value to be set */
1962 DWORD sr;
2071 static DWORD xsum32 ( /* Returns 32-bit checksum */
2073 DWORD sum /* Previous sum value */
2105 …wc = put_utf((DWORD)hs << 16 | wc, &fno->fname[di], FF_LFN_BUF - di); /* Store it in API encodin…
2495 …dp->obj.objsize += (DWORD)fs->csize * SS(fs); /* Increase the directory size by cluster …
2576 DWORD last = dp->dptr;
2648 …wc = put_utf((DWORD)hs << 16 | wc, &fno->fname[di], FF_LFN_BUF - di); /* Store it in UTF-16 or U…
2721 static DWORD get_achar ( /* Get a character and advances ptr */
2725 DWORD chr;
2760 DWORD pc, nc;
2807 DWORD uc;
3062 dp->obj.c_size = ((DWORD)dp->obj.objsize & 0xFFFFFF00) | dp->obj.stat;
3085 DWORD sect /* Sector# (lba) to load and check if it is an FAT-VBR or not */
3117 DWORD bsect, fasize, tsect, sysect, nclst, szbfat, br[4];
3176 DWORD so, cv, bcl;
3429 DWORD dw, cl, bcs, clst, sc;
3548 fp->obj.c_size = ((DWORD)dj.obj.objsize & 0xFFFFFF00) | dj.obj.stat;
3572 bcs = (DWORD)fs->csize * SS(fs); /* Cluster size in byte */
3584 fp->sect = sc + (DWORD)(ofs / SS(fs));
3618 DWORD clst, sect;
3718 DWORD clst, sect;
3729 if ((!FF_FS_EXFAT || fs->fs_type != FS_EXFAT) && (DWORD)(fp->fptr + btw) < (DWORD)fp->fptr) {
3730 btw = (UINT)(0xFFFFFFFF - (DWORD)fp->fptr);
3836 DWORD tm;
3888 st_dword(dir + DIR_FileSize, (DWORD)fp->obj.objsize); /* Update file size */
3982 fs->cdc_size = ((DWORD)dj.obj.objsize & 0xFFFFFF00) | dj.obj.stat;
4018 DWORD ccl;
4116 DWORD clst, bcs, nsect;
4119 DWORD cl, pcl, ncl, tcl, dsc, tlen, ulen, *tbl;
4165 dsc += (DWORD)((ofs - 1) / SS(fs)) & (fs->csize - 1);
4194 bcs = (DWORD)fs->csize * SS(fs); /* Cluster size (byte) */
4238 nsect += (DWORD)(ofs / SS(fs));
4294 dp->obj.c_size = ((DWORD)dp->obj.objsize & 0xFFFFFF00) | dp->obj.stat;
4493 DWORD* nclst /* Pointer to a variable to return number of free clusters */
4497 DWORD nfree, clst, sect, stat;
4583 DWORD ncl;
4634 DWORD dclst = 0;
4729 DWORD dcl, pcl, tm;
4772 …st_dword(fs->dirbuf + XDIR_FileSize, (DWORD)fs->csize * SS(fs)); /* File size needs to be valid…
4773 st_dword(fs->dirbuf + XDIR_ValidFileSize, (DWORD)fs->csize * SS(fs));
4814 DWORD dw;
4981 st_dword(fs->dirbuf + XDIR_ModTime, (DWORD)fno->fdate << 16 | fno->ftime);
4986 st_dword(dj.dir + DIR_ModTime, (DWORD)fno->fdate << 16 | fno->ftime);
5011 DWORD* vsn /* Variable to store the volume serial number */
5038 wc = put_utf((DWORD)hs << 16 | wc, &label[di], 4);
5114 DWORD dc;
5230 DWORD n, clst, stcl, scl, ncl, tcl, lclst;
5239 n = (DWORD)fs->csize * SS(fs); /* Cluster size */
5240 tcl = (DWORD)(fsz / n) + ((fsz & (n - 1)) ? 1 : 0); /* Number of clusters required */
5321 DWORD clst, sect;
5386 DWORD au, /* Size of allocation unit (cluster) [byte] */
5397 DWORD szb_buf, sz_buf, sz_blk, n_clst, pau, sect, nsect, n;
5398 DWORD b_vol, b_fat, b_data; /* Base LBA for volume, fat, data */
5399 DWORD sz_vol, sz_rsv, sz_fat, sz_dir; /* Size for volume, fat, dir, data */
5403 DWORD tbl[3];
5477 DWORD szb_bit, szb_case, sum, nb, cl;
5666 sz_dir = (DWORD)n_rootdir * SZDIRE / ss; /* Rootdir size [sector] */
5847 const DWORD* szt, /* Pointer to the size table for each partitions */
5854 DWORD sz_disk, sz_part, s_part;
5880 …p_cyl = (szt[i] <= 100U) ? (DWORD)tot_cyl * szt[i] / 100 : szt[i] / sz_cyl; /* Number of cylinders…
5882 s_part = (DWORD)sz_cyl * b_cyl;
5883 sz_part = (DWORD)sz_cyl * p_cyl;