Home
last modified time | relevance | path

Searched refs:n_clst (Results 1 – 1 of 1) sorted by relevance

/fatfs-2.7.6/
Dff.c5814 DWORD sz_buf, sz_blk, n_clst, pau, nsect, n, vsn; local
5960 n_clst = (DWORD)(sz_vol - (b_data - b_vol)) / sz_au; /* Number of clusters */
5961 if (n_clst <16) LEAVE_MKFS(FR_MKFS_ABORTED); /* Too few clusters? */
5962 if (n_clst > MAX_EXFAT) LEAVE_MKFS(FR_MKFS_ABORTED); /* Too many clusters? */
5964 szb_bit = (n_clst + 7) / 8; /* Size of allocation bitmap */
6066 st_dword(buf + BPB_NumClusEx, n_clst); /* Number of clusters */
6109 n_clst = (DWORD)sz_vol / pau; /* Number of clusters */
6110 sz_fat = (n_clst * 4 + 8 + ss - 1) / ss; /* FAT size [sector] */
6113 if (n_clst <= MAX_FAT16 || n_clst > MAX_FAT32) LEAVE_MKFS(FR_MKFS_ABORTED);
6119 n_clst = (DWORD)sz_vol / pau;
[all …]