Lines Matching refs:n_clst
5545 DWORD szb_buf, sz_buf, sz_blk, n_clst, pau, sect, nsect, n; local
5650 n_clst = (sz_vol - (b_data - b_vol)) / au; /* Number of clusters */
5651 if (n_clst <16) LEAVE_MKFS(FR_MKFS_ABORTED); /* Too few clusters? */
5652 if (n_clst > MAX_EXFAT) LEAVE_MKFS(FR_MKFS_ABORTED); /* Too many clusters? */
5654 szb_bit = (n_clst + 7) / 8; /* Size of allocation bitmap */
5757 st_dword(buf + BPB_NumClusEx, n_clst); /* Number of clusters */
5800 n_clst = sz_vol / pau; /* Number of clusters */
5801 sz_fat = (n_clst * 4 + 8 + ss - 1) / ss; /* FAT size [sector] */
5804 if (n_clst <= MAX_FAT16 || n_clst > MAX_FAT32) LEAVE_MKFS(FR_MKFS_ABORTED);
5810 n_clst = sz_vol / pau;
5811 if (n_clst > MAX_FAT12) {
5812 n = n_clst * 2 + 4; /* FAT size [byte] */
5815 n = (n_clst * 3 + 1) / 2 + 3; /* FAT size [byte] */
5834 n_clst = (sz_vol - sz_rsv - sz_fat * n_fats - sz_dir) / pau;
5836 if (n_clst <= MAX_FAT16) { /* Too few clusters for FAT32 */
5842 if (n_clst > MAX_FAT16) { /* Too many clusters for FAT16 */
5852 if (n_clst <= MAX_FAT12) { /* Too few clusters for FAT16 */
5857 …if (fmt == FS_FAT12 && n_clst > MAX_FAT12) LEAVE_MKFS(FR_MKFS_ABORTED); /* Too many clusters for F…
5909 st_dword(buf + FSI_Free_Count, n_clst - 1); /* Number of free clusters */