Home
last modified time | relevance | path

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

/FileX-v6.2.1/common/src/
Dfx_media_format.c135 UINT reserved_sectors, i, j, root_sectors, total_clusters, bytes_needed; in _fx_media_format() local
250total_clusters = (total_sectors - reserved_sectors - ((directory_entries * FX_DIR_ENTRY_SIZE) + (… in _fx_media_format()
253 if (total_clusters % 2) in _fx_media_format()
255 bytes_needed = (total_clusters + total_clusters / 2) + 1; in _fx_media_format()
259 bytes_needed = (total_clusters + total_clusters / 2); in _fx_media_format()
268total_clusters = total_clusters - ((sectors_per_fat * number_of_fats) + (sectors_per_cluster - 1)… in _fx_media_format()
271 if (total_clusters >= FX_12_BIT_FAT_SIZE) in _fx_media_format()
278total_clusters = (total_sectors - reserved_sectors - ((directory_entries * FX_DIR_ENTRY_SIZE) + … in _fx_media_format()
281 sectors_per_fat = (total_clusters * 2) / bytes_per_sector; in _fx_media_format()
282 if ((total_clusters * 2) % bytes_per_sector) in _fx_media_format()
[all …]
Dfx_media_check_lost_cluster_check.c80 …ck_lost_cluster_check(FX_MEDIA *media_ptr, UCHAR *logical_fat, ULONG total_clusters, ULONG error_c… in _fx_media_check_lost_cluster_check() argument
104 for (cluster = FX_FAT_ENTRY_START; cluster < total_clusters; cluster++) in _fx_media_check_lost_cluster_check()
Dfx_directory_create.c104 ULONG total_clusters; in _fx_directory_create() local
255 total_clusters = media_ptr -> fx_media_total_clusters; in _fx_directory_create()
262 if (!total_clusters) in _fx_directory_create()
296 total_clusters--; in _fx_directory_create()
Dfx_directory_free_search.c95 ULONG cluster, total_clusters, clusters_needed; in _fx_directory_free_search() local
433 total_clusters = media_ptr -> fx_media_total_clusters; in _fx_directory_free_search()
450 if (!total_clusters) in _fx_directory_free_search()
470 total_clusters--; in _fx_directory_free_search()
Dfx_file_write.c109 ULONG total_clusters; in _fx_file_write() local
518 total_clusters = media_ptr -> fx_media_total_clusters; in _fx_file_write()
550 if (!total_clusters) in _fx_file_write()
584 total_clusters--; in _fx_file_write()
/FileX-v6.2.1/test/regression_test/
Dfilex_file_write_available_cluster_test.c120 ULONG total_clusters; in ftest_0_entry() local
167 total_clusters = ram_disk.fx_media_available_clusters; in ftest_0_entry()
182 return_if_fail( total_clusters == ram_disk.fx_media_available_clusters + used_clusters); in ftest_0_entry()
/FileX-v6.2.1/common/inc/
Dfx_media.h104 …ck_lost_cluster_check(FX_MEDIA *media_ptr, UCHAR *logical_fat, ULONG total_clusters, ULONG error_c…