Searched refs:sz_vol (Results 1 – 1 of 1) sorted by relevance
5815 LBA_t sz_vol, b_vol, b_fat, b_data; /* Size of volume, Base LBA of volume, fat, data */ local5862 b_vol = sz_vol = 0;5882 sz_vol = ld_qword(buf + ofs + GPTE_LstLba) - b_vol + 1;5895 sz_vol = ld_dword(pte + PTE_SizLba); /* Get volume size */5898 if (disk_ioctl(pdrv, GET_SECTOR_COUNT, &sz_vol) != RES_OK) LEAVE_MKFS(FR_DISK_ERR);5902 if (sz_vol >= FF_MIN_GPT) { /* Which partition type to create, MBR or GPT? */5904 …b_vol = GPT_ALIGN / ss; sz_vol -= b_vol + GPT_ITEMS * SZ_GPTE / ss + 1; /* Estimated partition off…5908 if (sz_vol > N_SEC_TRACK) {5909 b_vol = N_SEC_TRACK; sz_vol -= b_vol; /* Estimated partition offset and size */5914 if (sz_vol < 128) LEAVE_MKFS(FR_MKFS_ABORTED); /* Check if volume size is >=128s */[all …]