Home
last modified time | relevance | path

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

/external/mtools/
Dmformat.c339 rem_sect = tot_sectors - Fs->dir_len - Fs->fat_start - 2 * Fs->fat_len; in xdf_calc_fat_size()
341 if(Fs->fat_len) { in xdf_calc_fat_size()
353 if (Fs->fat_len >= NEEDED_FAT_SIZE(Fs)) in xdf_calc_fat_size()
420 Fs->fat_len = (numerator-1)/denominator+1; in calc_fat_size()
421 Fs->num_clus = (rem_sect-(Fs->fat_len*Fs->num_fat))/Fs->cluster_size; in calc_fat_size()
430 if(Fs->num_clus > (Fs->fat_len * Fs->sector_size * 2 / in calc_fat_size()
435 Fs->num_clus = (Fs->fat_len * Fs->sector_size * 2 / in calc_fat_size()
441 Fs->num_clus, Fs->fat_len, fat_nybbles); in calc_fat_size()
458 Fs->fat_len * Fs->num_fat); in calc_fat_size()
462 Fs->fat_len * Fs->num_fat; in calc_fat_size()
[all …]
Dfat.c71 nr_entries = (Stream->fat_len + SECT_PER_ENTRY - 1) / SECT_PER_ENTRY; in GetFatMap()
87 if(offset >= Stream->fat_len) in locate()
101 fat_start = This->fat_start + This->fat_len * dupe; in fatReadSector()
141 fat_start = This->fat_start + This->fat_len * dupe; in fatWriteSector()
158 if (((This->fat_len + SECT_PER_ENTRY - 1) / SECT_PER_ENTRY) <= slot) { in loadSector()
160 fprintf(stderr, "fat_len = %d\n", This->fat_len); in loadSector()
165 ((This->fat_len+SECT_PER_ENTRY-1) / SECT_PER_ENTRY)); in loadSector()
425 for(slot=0;j<This->fat_len;slot++) { in fat_write()
431 bit < SECT_PER_ENTRY && j<This->fat_len; in fat_write()
496 fat_start = Stream->fat_start + i*Stream->fat_len; in zero_fat()
[all …]
Dinit.c299 This->fat_len = params->fat_len; in fs_init()
337 This->fat_len = WORD_S(fatlen); in fs_init()
341 if (This->fat_len) { in fs_init()
DfsP.h48 unsigned int fat_len; member
Dmtools.h89 unsigned int fat_len; member
DNEWS253 Improved fat_len calculation
Dmtools.texi1750 [@code{-r} @var{root_sectors}] [@code{-L} @var{fat_len}]