Home
last modified time | relevance | path

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

/fatfs-2.7.6/
Dff.c5817 DWORD sz_rsv, sz_fat, sz_dir, sz_au; /* Size of reserved, fat, dir, data, cluster */ local
5849 sz_au = (opt->au_size <= 0x1000000 && (opt->au_size & (opt->au_size - 1)) == 0) ? opt->au_size : 0;
5850 sz_au /= ss; /* Byte --> Sector */
5920 …if ((fsopt & FM_ANY) == FM_EXFAT || sz_vol >= 0x4000000 || sz_au > 128) { /* exFAT only, vol >= 64…
5927 if (sz_au > 128) sz_au = 128; /* Invalid AU for FAT/FAT32? */
5951 if (sz_au == 0) { /* AU auto-selection */
5952 sz_au = 8;
5953 if (sz_vol >= 0x80000) sz_au = 64; /* >= 512Ks */
5954 if (sz_vol >= 0x4000000) sz_au = 256; /* >= 64Ms */
5957 sz_fat = (DWORD)((sz_vol / sz_au + 2) * 4 + ss - 1) / ss; /* Number of FAT sectors */
[all …]