Lines Matching refs:n_ent
1826 UINT n_ent /* Number of contiguous entries to allocate */ argument
1845 if (++n == n_ent) break; /* Is a block of contiguous free entries found? */
2494 UINT n, len, n_ent; local
2503 n_ent = (len + 14) / 15 + 2; /* Number of entries to allocate (85+C0+C1s) */
2504 res = dir_alloc(dp, n_ent); /* Allocate directory entries */
2506 dp->blk_ofs = dp->dptr - SZDIRE * (n_ent - 1); /* Set the allocated entry block offset */
2547 n_ent = (sn[NSFLAG] & NS_LFN) ? (len + 12) / 13 + 1 : 1; /* Number of entries to allocate */
2548 res = dir_alloc(dp, n_ent); /* Allocate entries */
2549 if (res == FR_OK && --n_ent) { /* Set LFN entry if needed */
2550 res = dir_sdi(dp, dp->dptr - n_ent * SZDIRE);
2556 put_lfn(fs->lfnbuf, dp->dir, (BYTE)n_ent, sum);
2559 } while (res == FR_OK && --n_ent);
3363 DWORD n_ent, v_ent, ofs; local
3368 n_ent = ld_dword(fs->win + GPTH_PtNum); /* Number of entries */
3370 for (v_ent = i = 0; i < n_ent; i++) { /* Find FAT partition */
5972 DWORD n_ent, ofs; local
5978 n_ent = ld_dword(buf + GPTH_PtNum); /* Number of entries */
5981 while (n_ent) { /* Find MS Basic partition with order of ipart */
5988 n_ent--; ofs = (ofs + SZ_GPTE) % ss; /* Next entry */
5990 if (n_ent == 0) LEAVE_MKFS(FR_MKFS_ABORTED); /* Partition not found */