Lines Matching defs:fat_type

27 fat_min_cluster_size (FatType fat_type) {
28 switch (fat_type) {
49 fat_recommend_min_cluster_size (FatType fat_type, PedSector size) {
50 switch (fat_type) {
52 case FAT_TYPE_FAT16: return fat_min_cluster_size(fat_type);
56 fat_min_cluster_size (fat_type));
63 fat_max_cluster_size (FatType fat_type) {
64 switch (fat_type) {
74 fat_min_cluster_count (FatType fat_type) {
75 switch (fat_type) {
78 return fat_max_cluster_count (fat_type) / 2;
87 fat_max_cluster_count (FatType fat_type) {
88 switch (fat_type) {
98 fat_min_reserved_sector_count (FatType fat_type)
100 return (fat_type == FAT_TYPE_FAT32) ? 32 : 1;
161 entries_per_sector (FatType fat_type)
163 switch (fat_type) {
175 calc_sizes (PedSector size, PedSector align, FatType fat_type,
188 data_fat_space = size - fat_min_reserved_sector_count (fat_type)
190 if (fat_type == FAT_TYPE_FAT16)
195 if (fat_type == FAT_TYPE_FAT32)
202 entries_per_sector (fat_type));
212 entries_per_sector (fat_type))) {
214 entries_per_sector (fat_type));
217 if (cluster_count > fat_max_cluster_count (fat_type)
218 || cluster_count < fat_min_cluster_count (fat_type))
230 fat_calc_sizes (PedSector size, PedSector align, FatType fat_type,
241 for (cluster_sectors = fat_recommend_min_cluster_size (fat_type, size);
242 cluster_sectors <= fat_max_cluster_size (fat_type);
244 if (calc_sizes (size, align, fat_type, root_dir_sectors,
252 for (cluster_sectors = fat_recommend_min_cluster_size (fat_type, size);
253 cluster_sectors >= fat_min_cluster_size (fat_type);
255 if (calc_sizes (size, align, fat_type, root_dir_sectors,
268 if (calc_sizes (size, align, fat_type, root_dir_sectors,
287 FatType fat_type,
301 *out_cluster_sectors >= fat_min_cluster_size (fat_type);
303 if (calc_sizes (geom->length, align, fat_type, root_dir_sectors,
332 = fat_min_reserved_sector_count (new_fs_info->fat_type)
335 if (new_fs_info->fat_type == FAT_TYPE_FAT16)