Lines Matching refs:sz_vol
5628 LBA_t sz_vol, b_vol, b_fat, b_data; /* Size of volume, Base LBA of volume, fat, data */ local
5682 b_vol = sz_vol = 0;
5717 sz_vol = ld_dword(pte + PTE_SizLba); /* Get volume size */
5720 sz_vol = LD2PC(vol); /* Volume size */
5725 sz_vol = LD2PC(vol); /* Volume size */
5741 if (disk_ioctl(pdrv, GET_SECTOR_COUNT, &sz_vol) != RES_OK) {fr = FR_DISK_ERR; goto EXIT;}
5742 …b_vol = (fsopt & FM_SFD) ? 0 : 63; /* Volume start sector */ if (sz_vol < b_vol) {fr = FR_MKFS_AB…
5743 sz_vol -= b_vol; /* Volume size */
5745 if (sz_vol < 128) {fr = FR_MKFS_ABORTED; goto EXIT;} /* Check if volume size is >=128s */
5766 n = (DWORD)sz_vol / 0x20000; /* Volume size in unit of 128KS */
5769 n_clst = (DWORD)sz_vol / pau; /* Number of clusters */
5776 n = (DWORD)sz_vol / 0x1000; /* Volume size in unit of 4KS */
5779 n_clst = (DWORD)sz_vol / pau;
5805 if (sz_vol < b_data + pau * 16 - b_vol) { /* Too small volume? */
5809 n_clst = ((DWORD)sz_vol - sz_rsv - sz_fat * n_fat - sz_dir) / pau;
5839 …lba[0] = b_vol; lba[1] = b_vol + sz_vol - 1; /* Inform storage device that the volume area may be …
5850 if (sz_vol < 0x10000) {
5851 st_word(buf + BPB_TotSec16, (WORD)sz_vol); /* Volume size in 16-bit LBA */
5853 st_dword(buf + BPB_TotSec32, (DWORD)sz_vol); /* Volume size in 32-bit LBA */
5932 } else if (sz_vol >= 0x10000) {
5977 lba[0] = sz_vol, lba[1] = 0;
6013 LBA_t sz_vol, b_vol, b_fat, b_data; /* Size of volume, Base LBA of volume, fat, data */ local
6059 b_vol = sz_vol = 0;
6107 sz_vol = partition->sector_count; /* Volume size */
6112 if (disk_ioctl(pdrv, GET_SECTOR_COUNT, &sz_vol) != RES_OK) {fr = FR_DISK_ERR; goto EXIT;}
6113 …b_vol = (fsopt & FM_SFD) ? 0 : 63; /* Volume start sector */ if (sz_vol < b_vol) {fr = FR_MKFS_AB…
6114 sz_vol -= b_vol; /* Volume size */
6116 if (sz_vol < VOL_MIN_SIZE) {fr = FR_MKFS_ABORTED; goto EXIT;} /* Check if volume size is >=128s */
6137 n = (DWORD)sz_vol / 0x20000; /* Volume size in unit of 128KS */
6140 n_clst = (DWORD)sz_vol / pau; /* Number of clusters */
6147 n = (DWORD)sz_vol / 0x1000; /* Volume size in unit of 4KS */
6150 n_clst = (DWORD)sz_vol / pau;
6176 if (sz_vol < b_data + pau * 16 - b_vol) { /* Too small volume */
6180 n_clst = ((DWORD)sz_vol - sz_rsv - sz_fat * n_fat - sz_dir) / pau;
6210 …lba[0] = b_vol; lba[1] = b_vol + sz_vol - 1; /* Inform storage device that the volume area may be …
6221 if (sz_vol < 0x10000) {
6222 st_word(buf + BPB_TotSec16, (WORD)sz_vol); /* Volume size in 16-bit LBA */
6224 st_dword(buf + BPB_TotSec32, (DWORD)sz_vol); /* Volume size in 32-bit LBA */
6306 if (sz_vol >= 0x10000) {
6348 lba[0] = sz_vol, lba[1] = 0;