Lines Matching refs:UINT

238 #define SS(fs)	((UINT)FF_MAX_SS)	/* Fixed sector size */
654 static void mem_cpy (void* dst, const void* src, UINT cnt) in mem_cpy()
668 static void mem_set (void* dst, int val, UINT cnt) in mem_set()
679 static int mem_cmp (const void* dst, const void* src, UINT cnt) /* ZR:same, NZ:different */ in mem_cmp()
821 UINT szb /* Size of the buffer */ in put_utf()
939 UINT i, be; in chk_lock()
963 UINT i; in enq_lock()
970 static UINT inc_lock ( /* Increment object open counter and returns its index (0:Internal error) */ in inc_lock()
975 UINT i; in inc_lock()
1002 UINT i /* Semaphore index (1..) */ in dec_lock()
1027 UINT i; in clear_lock()
1154 UINT wc, bc; in get_fat()
1167 bc = (UINT)clst; bc += bc / 2; in get_fat()
1232 UINT bc; in put_fat()
1240 bc = (UINT)clst; bc += bc / 2; /* bc: byte offset of the entry */ in put_fat()
1298 UINT i; in find_bitmap()
1339 UINT i; in change_bitmap()
1650 UINT n, szb; in dir_clear()
1794 UINT nent /* Number of contiguous entries to allocate */
1798 UINT n;
1876 UINT i, s;
1912 UINT i, s;
1952 UINT i, s;
1986 UINT seq /* Sequence number */
1990 UINT i, j;
2007 seq = (UINT)sr;
2045 UINT n = 11;
2066 UINT i, szblk;
2123 UINT di, si, nc;
2163 UINT i, sz_ent;
2261 UINT nent;
2293 UINT i;
2428 UINT di, ni;
2500 UINT n, nlen, nent;
2650 UINT si, di;
2838 UINT i, ni, si, di;
2957 UINT ni, si, i;
3062 if ((UINT)*path < ' ') { /* Null path name is the origin directory itself */
3127 …do tc = *tt++; while ((UINT)tc >= (FF_USE_LFN ? ' ' : '!') && tc != ':'); /* Find a colon in the p…
3163 …} while ((c || (tc != '/' && (UINT)tc >= (FF_USE_LFN ? ' ' : '!'))) && ++i < FF_VOLUMES); /* Repea…
3226 UINT i;
3740 UINT btr, /* Number of bytes to read */
3741 UINT* br /* Pointer to number of bytes read */
3748 UINT rcnt, cc, csect;
3757 if (btr > remain) btr = (UINT)remain; /* Truncate btr by remaining bytes */
3762 csect = (UINT)(fp->fptr / SS(fs) & (fs->csize - 1)); /* Sector offset in the cluster */
3816 rcnt = SS(fs) - (UINT)fp->fptr % SS(fs); /* Number of bytes left in the sector */
3840 UINT btw, /* Number of bytes to write */
3841 UINT* bw /* Pointer to number of bytes written */
3847 UINT wcnt, cc, csect;
3858 btw = (UINT)(0xFFFFFFFF - (DWORD)fp->fptr);
3864 csect = (UINT)(fp->fptr / SS(fs)) & (fs->csize - 1); /* Sector offset in the cluster */
3934 wcnt = SS(fs) - (UINT)fp->fptr % SS(fs); /* Number of bytes left in the sector */
4097 UINT i;
4156 UINT len /* Size of buff in unit of TCHAR */
4162 UINT i, n;
4166 UINT vl;
4643 UINT i;
4669 UINT b;
5164 UINT si, di;
5258 UINT di;
5273 while ((UINT)*label >= ' ') { /* Create volume label */
5292 while ((UINT)*label >= ' ') { /* Create volume label */
5306 …if (wc == 0 || chk_chr(badchr + 0, (int)wc) || di >= (UINT)((wc >= 0x100) ? 10 : 11)) { /* Reject …
5462 UINT (*func)(const BYTE*,UINT), /* Pointer to the streaming function */ argument
5463 UINT btf, /* Number of bytes to forward */
5464 UINT* bf /* Pointer to number of bytes forwarded */
5471 UINT rcnt, csect;
5481 if (btf > remain) btf = (UINT)remain; /* Truncate btf by remaining bytes */
5485 csect = (UINT)(fp->fptr / SS(fs) & (fs->csize - 1)); /* Sector offset in the cluster */
5514 rcnt = SS(fs) - (UINT)fp->fptr % SS(fs); /* Number of bytes left in the sector */
5516 rcnt = (*func)(dbuf + ((UINT)fp->fptr % SS(fs)), rcnt); /* Forward the file data */
5536 UINT len /* Size of working buffer [byte] */
5539 const UINT n_fats = 1; /* Number of FATs for FAT/FAT32 volume (1 or 2) */
5540 const UINT n_rootdir = 512; /* Number of root directory entries for FAT volume */
5548 UINT i;
5632 UINT j, st;
5917 mem_set(buf, 0, (UINT)szb_buf);
5930 if (disk_write(pdrv, buf, sect, (UINT)n) != RES_OK) LEAVE_MKFS(FR_DISK_ERR);
5940 if (disk_write(pdrv, buf, sect, (UINT)n) != RES_OK) LEAVE_MKFS(FR_DISK_ERR);
6007 UINT i, n, sz_cyl, tot_cyl, b_cyl, e_cyl, p_cyl;
6100 UINT rc;
6106 UINT ct;
6226 UINT wi, ct;
6237 UINT n;
6355 f_write(pb->fp, pb->buf, (UINT)i, &n);
6356 i = (n == (UINT)i) ? 0 : -1;
6367 UINT nw;
6370 && f_write(pb->fp, pb->buf, (UINT)pb->idx, &nw) == FR_OK
6371 && (UINT)pb->idx == nw) return pb->nchr;
6436 UINT i, j, w;
6551 UINT i;