Lines Matching refs:num_clus
348 Fs->num_clus = rem_sect / Fs->cluster_size; in xdf_calc_fat_size()
349 if(abs(fat_bits) == 16 || Fs->num_clus >= FAT12) in xdf_calc_fat_size()
421 Fs->num_clus = (rem_sect-(Fs->fat_len*Fs->num_fat))/Fs->cluster_size; in calc_fat_size()
424 if(Fs->fat_bits == 16 && Fs->num_clus >= FAT16) in calc_fat_size()
425 Fs->num_clus = FAT16-1; in calc_fat_size()
426 if(Fs->fat_bits == 12 && Fs->num_clus >= FAT12) in calc_fat_size()
427 Fs->num_clus = FAT12-1; in calc_fat_size()
430 if(Fs->num_clus > (Fs->fat_len * Fs->sector_size * 2 / in calc_fat_size()
434 Fs->num_clus); in calc_fat_size()
435 Fs->num_clus = (Fs->fat_len * Fs->sector_size * 2 / in calc_fat_size()
437 fprintf(stderr, " to %d\n", Fs->num_clus); in calc_fat_size()
441 Fs->num_clus, Fs->fat_len, fat_nybbles); in calc_fat_size()
444 if ( Fs->num_clus < FAT16 && Fs->fat_bits > 16 ){ in calc_fat_size()
457 assert(rem_sect >= Fs->num_clus * Fs->cluster_size + in calc_fat_size()
461 Fs->num_clus * Fs->cluster_size - in calc_fat_size()
480 Fs->num_clus = (rem_sect-(Fs->fat_len*Fs->num_fat))/ in calc_fat_size()
487 assert( ((Fs->num_clus+2) * fat_nybbles) <= in calc_fat_size()
493 assert(Fs->num_clus == in calc_fat_size()
673 unsigned long num_clus; in calc_fs_parameters_32() local
682 num_clus = tot_sectors / Fs->cluster_size; in calc_fs_parameters_32()
684 if (num_clus > 0xffffff6) { in calc_fs_parameters_32()
688 Fs->num_clus = (unsigned int) num_clus; in calc_fs_parameters_32()
1506 Fs.freeSpace = Fs.num_clus; in mformat()