Lines Matching refs:sz_vol

5547 	DWORD sz_vol, sz_rsv, sz_fat, sz_dir;	/* Size for volume, fat, dir, data */  local
5601 sz_vol = ld_dword(pte + PTE_SizLba); /* Get volume size */
5604 if (disk_ioctl(pdrv, GET_SECTOR_COUNT, &sz_vol) != RES_OK) LEAVE_MKFS(FR_DISK_ERR);
5606 if (sz_vol < b_vol) LEAVE_MKFS(FR_MKFS_ABORTED);
5607 sz_vol -= b_vol; /* Volume size */
5609 if (sz_vol < 128) LEAVE_MKFS(FR_MKFS_ABORTED); /* Check if volume size is >=128s */
5614 …if ((opt & FM_ANY) == FM_EXFAT || sz_vol >= 0x4000000 || au > 128) { /* exFAT only, vol >= 64Ms or…
5635 if (sz_vol < 0x1000) LEAVE_MKFS(FR_MKFS_ABORTED); /* Too small volume? */
5637 tbl[0] = b_vol; tbl[1] = b_vol + sz_vol - 1; /* Inform the device the volume area may be erased */
5643 if (sz_vol >= 0x80000) au = 64; /* >= 512Ks */
5644 if (sz_vol >= 0x4000000) au = 256; /* >= 64Ms */
5647 sz_fat = ((sz_vol / au + 2) * 4 + ss - 1) / ss; /* Number of FAT sectors */
5649 if (b_data - b_vol >= sz_vol / 2) LEAVE_MKFS(FR_MKFS_ABORTED); /* Too small volume? */
5650 n_clst = (sz_vol - (b_data - b_vol)) / au; /* Number of clusters */
5753 st_dword(buf + BPB_TotSecEx, sz_vol); /* Volume size [sector] */
5797 n = sz_vol / 0x20000; /* Volume size in unit of 128KS */
5800 n_clst = sz_vol / pau; /* Number of clusters */
5807 n = sz_vol / 0x1000; /* Volume size in unit of 4KS */
5810 n_clst = sz_vol / pau;
5833 if (sz_vol < b_data + pau * 16 - b_vol) LEAVE_MKFS(FR_MKFS_ABORTED); /* Too small volume */
5834 n_clst = (sz_vol - sz_rsv - sz_fat * n_fats - sz_dir) / pau;
5864 tbl[0] = b_vol; tbl[1] = b_vol + sz_vol - 1; /* Inform the device the volume area can be erased */
5875 if (sz_vol < 0x10000) {
5876 st_word(buf + BPB_TotSec16, (WORD)sz_vol); /* Volume size in 16-bit LBA */
5878 st_dword(buf + BPB_TotSec32, sz_vol); /* Volume size in 32-bit LBA */
5952 if (sz_vol >= 0x10000) {
5976 n = (b_vol + sz_vol) / (63 * 255); /* (End CHS may be invalid) */
5981 st_dword(pte + PTE_SizLba, sz_vol); /* Size in sectors */