Lines Matching refs:n_ent
1777 UINT n_ent /* Number of contiguous entries to allocate */ argument
1796 if (++n == n_ent) break; /* Is a block of contiguous free entries found? */
2441 UINT n, len, n_ent; local
2450 n_ent = (len + 14) / 15 + 2; /* Number of entries to allocate (85+C0+C1s) */
2451 res = dir_alloc(dp, n_ent); /* Allocate directory entries */
2453 dp->blk_ofs = dp->dptr - SZDIRE * (n_ent - 1); /* Set the allocated entry block offset */
2494 n_ent = (sn[NSFLAG] & NS_LFN) ? (len + 12) / 13 + 1 : 1; /* Number of entries to allocate */
2495 res = dir_alloc(dp, n_ent); /* Allocate entries */
2496 if (res == FR_OK && --n_ent) { /* Set LFN entry if needed */
2497 res = dir_sdi(dp, dp->dptr - n_ent * SZDIRE);
2503 put_lfn(fs->lfnbuf, dp->dir, (BYTE)n_ent, sum);
2506 } while (res == FR_OK && --n_ent);
3294 DWORD n_ent, v_ent, ofs; local
3299 n_ent = ld_dword(fs->win + GPTH_PtNum); /* Number of entries */
3301 for (v_ent = i = 0; i < n_ent; i++) { /* Find FAT partition */
5869 DWORD n_ent, ofs; local
5875 n_ent = ld_dword(buf + GPTH_PtNum); /* Number of entries */
5878 while (n_ent) { /* Find MS Basic partition with order of ipart */
5885 n_ent--; ofs = (ofs + SZ_GPTE) % ss; /* Next entry */
5887 if (n_ent == 0) LEAVE_MKFS(FR_MKFS_ABORTED); /* Partition not found */