/FileX-v6.2.1/common/src/ |
D | fx_media_check_FAT_chain_check.c | 82 ULONG prev_cluster, cluster, next_clust = 0; in _fx_media_check_FAT_chain_check() local 92 cluster = starting_cluster; in _fx_media_check_FAT_chain_check() 101 while ((cluster >= (ULONG)FX_FAT_ENTRY_START) && in _fx_media_check_FAT_chain_check() 102 (cluster < (FX_FAT_ENTRY_START + media_ptr -> fx_media_total_clusters))) in _fx_media_check_FAT_chain_check() 105 cluster_number = cluster; in _fx_media_check_FAT_chain_check() 119 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &next_clust); in _fx_media_check_FAT_chain_check() 133 if ((cluster == next_clust) || in _fx_media_check_FAT_chain_check() 147 prev_cluster = cluster; in _fx_media_check_FAT_chain_check() 148 cluster = next_clust; in _fx_media_check_FAT_chain_check()
|
D | fx_media_check_lost_cluster_check.c | 83 ULONG cluster, next_cluster = 0; in _fx_media_check_lost_cluster_check() local 104 for (cluster = FX_FAT_ENTRY_START; cluster < total_clusters; cluster++) in _fx_media_check_lost_cluster_check() 108 if (logical_fat[cluster >> 3] & (1 << (cluster & 7))) in _fx_media_check_lost_cluster_check() 118 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &next_cluster); in _fx_media_check_lost_cluster_check() 146 status = _fx_utility_FAT_entry_write(media_ptr, cluster, FX_FREE_CLUSTER); in _fx_media_check_lost_cluster_check()
|
D | fx_directory_delete.c | 98 ULONG cluster, next_cluster; in _fx_directory_delete() local 218 cluster = search_directory.fx_dir_entry_cluster; in _fx_directory_delete() 219 while (cluster < media_ptr -> fx_media_fat_reserved) in _fx_directory_delete() 226 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &next_cluster); in _fx_directory_delete() 243 …if ((cluster < FX_FAT_ENTRY_START) || (cluster == next_cluster) || (i > media_ptr -> fx_media_tota… in _fx_directory_delete() 256 cluster = next_cluster; in _fx_directory_delete() 350 cluster = search_directory.fx_dir_entry_cluster; in _fx_directory_delete() 352 while (cluster < media_ptr -> fx_media_fat_reserved) in _fx_directory_delete() 360 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &next_cluster); in _fx_directory_delete() 377 …if ((cluster < FX_FAT_ENTRY_START) || (cluster == next_cluster) || (i > media_ptr -> fx_media_tota… in _fx_directory_delete() [all …]
|
D | fx_utility_FAT_sector_get.c | 70 ULONG _fx_utility_FAT_sector_get(FX_MEDIA *media_ptr, ULONG cluster) in _fx_utility_FAT_sector_get() argument 83 byte_offset = (((ULONG)cluster << 1) + cluster) >> 1; in _fx_utility_FAT_sector_get() 92 byte_offset = (((ULONG)cluster) << 1); in _fx_utility_FAT_sector_get() 100 byte_offset = (((ULONG)cluster) * 4); in _fx_utility_FAT_sector_get()
|
D | fx_file_extended_truncate_release.c | 97 ULONG cluster; in _fx_file_extended_truncate_release() local 279 cluster = file_ptr -> fx_file_first_physical_cluster; in _fx_file_extended_truncate_release() 285 while ((cluster >= FX_FAT_ENTRY_START) && (cluster < media_ptr -> fx_media_fat_reserved)) in _fx_file_extended_truncate_release() 293 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &contents); in _fx_file_extended_truncate_release() 311 last_cluster = cluster; in _fx_file_extended_truncate_release() 314 cluster = contents; in _fx_file_extended_truncate_release() 366 cluster = file_ptr -> fx_file_first_physical_cluster; in _fx_file_extended_truncate_release() 375 … media_ptr -> fx_media_fat_last, cluster, media_ptr -> fx_media_fat_last); in _fx_file_extended_truncate_release() 390 file_ptr -> fx_file_last_physical_cluster = cluster; in _fx_file_extended_truncate_release() 395 while ((cluster >= FX_FAT_ENTRY_START) && (cluster < media_ptr -> fx_media_fat_reserved)) in _fx_file_extended_truncate_release() [all …]
|
D | fx_utility_FAT_entry_read.c | 87 UINT _fx_utility_FAT_entry_read(FX_MEDIA *media_ptr, ULONG cluster, ULONG *entry_ptr) in _fx_utility_FAT_entry_read() argument 107 …status = _fx_fault_tolerant_read_FAT(media_ptr, cluster, entry_ptr, FX_FAULT_TOLERANT_FAT_LOG_TYPE… in _fx_utility_FAT_entry_read() 127 index = (cluster & FX_FAT_CACHE_HASH_MASK) * FX_FAT_CACHE_DEPTH; in _fx_utility_FAT_entry_read() 135 if ((cache_entry_ptr -> fx_fat_cache_entry_cluster) == cluster) in _fx_utility_FAT_entry_read() 146 else if (((cache_entry_ptr + 1) -> fx_fat_cache_entry_cluster) == cluster) in _fx_utility_FAT_entry_read() 160 else if (((cache_entry_ptr + 2) -> fx_fat_cache_entry_cluster) == cluster) in _fx_utility_FAT_entry_read() 175 else if (((cache_entry_ptr + 3) -> fx_fat_cache_entry_cluster) == cluster) in _fx_utility_FAT_entry_read() 194 if (((cache_entry_ptr + i) -> fx_fat_cache_entry_cluster) == cluster) in _fx_utility_FAT_entry_read() 238 byte_offset = (((ULONG)cluster << 1) + cluster) >> 1; in _fx_utility_FAT_entry_read() 264 if (cluster & 1) in _fx_utility_FAT_entry_read() [all …]
|
D | fx_file_extended_seek.c | 84 ULONG cluster; in _fx_file_extended_seek() local 163 cluster = file_ptr -> fx_file_current_physical_cluster; in _fx_file_extended_seek() 173 cluster = file_ptr -> fx_file_first_physical_cluster + in _fx_file_extended_seek() 182 while ((cluster >= FX_FAT_ENTRY_START) && (cluster < media_ptr -> fx_media_fat_reserved)) in _fx_file_extended_seek() 189 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &contents); in _fx_file_extended_seek() 203 last_cluster = cluster; in _fx_file_extended_seek() 206 cluster = contents; in _fx_file_extended_seek() 227 … (cluster >= FX_FAT_ENTRY_START) && (cluster < media_ptr -> fx_media_fat_reserved)) in _fx_file_extended_seek() 231 file_ptr -> fx_file_current_physical_cluster = cluster; in _fx_file_extended_seek()
|
D | fx_utility_FAT_flush.c | 88 ULONG cluster, next_cluster; in _fx_utility_FAT_flush() local 114 cluster = media_ptr -> fx_media_fat_cache[index].fx_fat_cache_entry_cluster; in _fx_utility_FAT_flush() 121 byte_offset = (((ULONG)cluster << 1) + cluster) >> 1; in _fx_utility_FAT_flush() 156 … cluster = (media_ptr -> fx_media_fat_cache[multi_sector_entry].fx_fat_cache_entry_cluster); in _fx_utility_FAT_flush() 160 if (cluster & 1) in _fx_utility_FAT_flush() 192 cluster = (media_ptr -> fx_media_fat_cache[i].fx_fat_cache_entry_cluster); in _fx_utility_FAT_flush() 195 byte_offset = (((ULONG)cluster << 1) + cluster) >> 1; in _fx_utility_FAT_flush() 232 if (cluster & 1) in _fx_utility_FAT_flush() 337 byte_offset = (((ULONG)cluster) << 1); in _fx_utility_FAT_flush() 369 cluster = (media_ptr -> fx_media_fat_cache[i].fx_fat_cache_entry_cluster); in _fx_utility_FAT_flush() [all …]
|
D | fx_utility_FAT_entry_write.c | 79 UINT _fx_utility_FAT_entry_write(FX_MEDIA *media_ptr, ULONG cluster, ULONG next_cluster) in _fx_utility_FAT_entry_write() argument 97 return(_fx_fault_tolerant_add_FAT_log(media_ptr, cluster, next_cluster)); in _fx_utility_FAT_entry_write() 101 FAT_sector = _fx_utility_FAT_sector_get(media_ptr, cluster); in _fx_utility_FAT_entry_write() 133 index = (cluster & FX_FAT_CACHE_HASH_MASK) * FX_FAT_CACHE_DEPTH; in _fx_utility_FAT_entry_write() 143 if (((cache_entry_ptr + i) -> fx_fat_cache_entry_cluster) == cluster) in _fx_utility_FAT_entry_write() 170 … ((cluster - FX_FAT_ENTRY_START) * media_ptr -> fx_media_sectors_per_cluster)); in _fx_utility_FAT_entry_write() 221 cache_entry_ptr -> fx_fat_cache_entry_cluster = cluster; in _fx_utility_FAT_entry_write() 243 … ((cluster - FX_FAT_ENTRY_START) * media_ptr -> fx_media_sectors_per_cluster)); in _fx_utility_FAT_entry_write()
|
D | fx_file_delete.c | 96 ULONG cluster; in _fx_file_delete() local 228 cluster = dir_entry.fx_dir_entry_cluster; in _fx_file_delete() 274 … media_ptr -> fx_media_fat_last, cluster, media_ptr -> fx_media_fat_last); in _fx_file_delete() 294 while ((cluster >= FX_FAT_ENTRY_START) && (cluster < media_ptr -> fx_media_fat_reserved)) in _fx_file_delete() 302 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &contents); in _fx_file_delete() 319 if ((cluster == contents) || (cluster_count > media_ptr -> fx_media_total_clusters)) in _fx_file_delete() 335 status = _fx_utility_FAT_entry_write(media_ptr, cluster, FX_FREE_CLUSTER); in _fx_file_delete() 353 cluster = contents; in _fx_file_delete()
|
D | fx_unicode_directory_entry_read.c | 87 ULONG cluster, next_cluster = 0; in _fx_unicode_directory_entry_read() local 149 cluster = source_dir -> fx_dir_entry_last_search_cluster; in _fx_unicode_directory_entry_read() 162 cluster = source_dir -> fx_dir_entry_cluster; in _fx_unicode_directory_entry_read() 172 cluster = media_ptr -> fx_media_root_cluster_32; in _fx_unicode_directory_entry_read() 184 if ((cluster < FX_FAT_ENTRY_START) || (cluster > media_ptr -> fx_media_fat_reserved)) in _fx_unicode_directory_entry_read() 192 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &next_cluster); in _fx_unicode_directory_entry_read() 205 cluster = next_cluster; in _fx_unicode_directory_entry_read() 213 (((ULONG)cluster - FX_FAT_ENTRY_START) * in _fx_unicode_directory_entry_read() 255 relative_cluster = relative_sector = cluster = 0; in _fx_unicode_directory_entry_read() 452 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &next_cluster); in _fx_unicode_directory_entry_read() [all …]
|
D | fx_directory_entry_read.c | 89 ULONG cluster, next_cluster = 0; in _fx_directory_entry_read() local 156 cluster = source_dir -> fx_dir_entry_last_search_cluster; in _fx_directory_entry_read() 169 cluster = source_dir -> fx_dir_entry_cluster; in _fx_directory_entry_read() 179 cluster = media_ptr -> fx_media_root_cluster_32; in _fx_directory_entry_read() 191 if ((cluster < FX_FAT_ENTRY_START) || (cluster >= media_ptr -> fx_media_fat_reserved)) in _fx_directory_entry_read() 199 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &next_cluster); in _fx_directory_entry_read() 212 cluster = next_cluster; in _fx_directory_entry_read() 220 (((ULONG)cluster - FX_FAT_ENTRY_START) * in _fx_directory_entry_read() 262 relative_cluster = relative_sector = cluster = 0; in _fx_directory_entry_read() 427 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &next_cluster); in _fx_directory_entry_read() [all …]
|
D | fx_unicode_directory_entry_change.c | 89 ULONG cluster, next_cluster; in _fx_unicode_directory_entry_change() local 115 …cluster = (logical_sector - media_ptr -> fx_media_data_sector_start) / (media_ptr -> fx_media_sec… in _fx_unicode_directory_entry_change() 119 (((ULONG)cluster - FX_FAT_ENTRY_START) * in _fx_unicode_directory_entry_change() 126 cluster = 0; in _fx_unicode_directory_entry_change() 284 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &next_cluster); in _fx_unicode_directory_entry_change() 295 cluster = next_cluster; in _fx_unicode_directory_entry_change() 299 … if ((cluster < FX_FAT_ENTRY_START) || (cluster > media_ptr -> fx_media_fat_reserved)) in _fx_unicode_directory_entry_change() 311 (((ULONG)cluster - FX_FAT_ENTRY_START) * in _fx_unicode_directory_entry_change()
|
D | fx_file_open.c | 91 ULONG cluster; in _fx_file_open() local 294 cluster = file_ptr -> fx_file_dir_entry.fx_dir_entry_cluster; in _fx_file_open() 333 while ((cluster >= FX_FAT_ENTRY_START) && (cluster < media_ptr -> fx_media_fat_reserved)) in _fx_file_open() 340 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &contents); in _fx_file_open() 354 if ((cluster == contents) || (cluster_count > media_ptr -> fx_media_total_clusters)) in _fx_file_open() 367 if (cluster + 1 == contents) in _fx_file_open() 387 last_cluster = cluster; in _fx_file_open() 390 cluster = contents; in _fx_file_open() 412 … (cluster >= FX_FAT_ENTRY_START) && (cluster < media_ptr -> fx_media_fat_reserved)) in _fx_file_open() 416 file_ptr -> fx_file_current_physical_cluster = cluster; in _fx_file_open()
|
D | fx_file_extended_truncate.c | 89 ULONG cluster; in _fx_file_extended_truncate() local 222 cluster = file_ptr -> fx_file_first_physical_cluster; in _fx_file_extended_truncate() 228 while ((cluster >= FX_FAT_ENTRY_START) && (cluster < media_ptr -> fx_media_fat_reserved)) in _fx_file_extended_truncate() 235 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &contents); in _fx_file_extended_truncate() 249 last_cluster = cluster; in _fx_file_extended_truncate() 252 cluster = contents; in _fx_file_extended_truncate()
|
D | fx_directory_next_entry_find.c | 89 ULONG cluster, next_cluster = 0; in _fx_directory_next_entry_find() local 212 cluster = search_dir_ptr -> fx_dir_entry_cluster; in _fx_directory_next_entry_find() 213 while (cluster < media_ptr -> fx_media_fat_reserved) in _fx_directory_next_entry_find() 220 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &next_cluster); in _fx_directory_next_entry_find() 233 …if ((cluster < FX_FAT_ENTRY_START) || (cluster == next_cluster) || (i > media_ptr -> fx_media_tota… in _fx_directory_next_entry_find() 243 cluster = next_cluster; in _fx_directory_next_entry_find()
|
D | fx_directory_next_full_entry_find.c | 99 ULONG cluster, next_cluster = 0; in _fx_directory_next_full_entry_find() local 223 cluster = search_dir_ptr -> fx_dir_entry_cluster; in _fx_directory_next_full_entry_find() 224 while (cluster < media_ptr -> fx_media_fat_reserved) in _fx_directory_next_full_entry_find() 231 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &next_cluster); in _fx_directory_next_full_entry_find() 245 …if ((cluster < FX_FAT_ENTRY_START) || (cluster == next_cluster) || (i > media_ptr -> fx_media_tota… in _fx_directory_next_full_entry_find() 255 cluster = next_cluster; in _fx_directory_next_full_entry_find()
|
D | fx_unicode_directory_search.c | 111 ULONG cluster, next_cluster = 0; in _fx_unicode_directory_search() local 185 cluster = search_dir_ptr -> fx_dir_entry_cluster; in _fx_unicode_directory_search() 186 while ((cluster >= FX_FAT_ENTRY_START) && (cluster < media_ptr -> fx_media_fat_reserved)) in _fx_unicode_directory_search() 193 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &next_cluster); in _fx_unicode_directory_search() 204 if ((cluster == next_cluster) || (i > media_ptr -> fx_media_total_clusters)) in _fx_unicode_directory_search() 211 cluster = next_cluster; in _fx_unicode_directory_search()
|
D | fx_file_write.c | 105 ULONG cluster, next_cluster; in _fx_file_write() local 320 cluster = file_ptr -> fx_file_first_physical_cluster; in _fx_file_write() 323 … while ((cluster >= FX_FAT_ENTRY_START) && (cluster < media_ptr -> fx_media_fat_reserved)) in _fx_file_write() 330 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &FAT_value); in _fx_file_write() 351 cluster = FAT_value; in _fx_file_write() 354 … if ((cluster >= FX_FAT_ENTRY_START) && (cluster < media_ptr -> fx_media_fat_reserved)) in _fx_file_write() 358 insertion_front = cluster; in _fx_file_write() 385 cluster = copy_head_cluster; in _fx_file_write() 389 … while ((cluster >= FX_FAT_ENTRY_START) && (cluster < media_ptr -> fx_media_fat_reserved)) in _fx_file_write() 401 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &FAT_value); in _fx_file_write() [all …]
|
D | fx_file_read.c | 90 ULONG cluster, next_cluster; in _fx_file_read() local 223 next_cluster = cluster = file_ptr -> fx_file_current_physical_cluster; in _fx_file_read() 227 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &next_cluster); in _fx_file_read() 248 if (next_cluster != cluster + 1) in _fx_file_read() 254 cluster = next_cluster; in _fx_file_read() 333 file_ptr -> fx_file_current_physical_cluster = cluster; in _fx_file_read()
|
D | fx_directory_free_search.c | 95 ULONG cluster, total_clusters, clusters_needed; in _fx_directory_free_search() local 674 cluster = search_dir_ptr -> fx_dir_entry_cluster; in _fx_directory_free_search() 678 cluster = media_ptr -> fx_media_root_cluster_32; in _fx_directory_free_search() 686 while (cluster < media_ptr -> fx_media_fat_reserved) in _fx_directory_free_search() 690 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &FAT_value); in _fx_directory_free_search() 702 …if ((cluster < FX_FAT_ENTRY_START) || (cluster == FAT_value) || (i > media_ptr -> fx_media_total_c… in _fx_directory_free_search() 710 last_cluster = cluster; in _fx_directory_free_search() 713 cluster = FAT_value; in _fx_directory_free_search()
|
D | fx_directory_entry_write.c | 95 ULONG cluster, next_cluster; in _fx_directory_entry_write() local 146 …cluster = (logical_sector - media_ptr -> fx_media_data_sector_start) / (media_ptr -> fx_media_sec… in _fx_directory_entry_write() 150 (((ULONG)cluster - FX_FAT_ENTRY_START) * in _fx_directory_entry_write() 157 cluster = 0; in _fx_directory_entry_write() 645 status = _fx_utility_FAT_entry_read(media_ptr, cluster, &next_cluster); in _fx_directory_entry_write() 656 cluster = next_cluster; in _fx_directory_entry_write() 660 … if ((cluster < FX_FAT_ENTRY_START) || (cluster >= media_ptr -> fx_media_fat_reserved)) in _fx_directory_entry_write() 672 (((ULONG)cluster - FX_FAT_ENTRY_START) * in _fx_directory_entry_write() 874 … status = _fx_utility_FAT_entry_read(media_ptr, cluster, &next_cluster); in _fx_directory_entry_write() 885 cluster = next_cluster; in _fx_directory_entry_write() [all …]
|
D | fx_fault_tolerant_add_FAT_log.c | 73 UINT _fx_fault_tolerant_add_FAT_log(FX_MEDIA *media_ptr, ULONG cluster, ULONG value) in _fx_fault_tolerant_add_FAT_log() argument 102 _fx_utility_32_unsigned_write((UCHAR *)&fat_log -> fx_fault_tolerant_FAT_log_cluster, cluster); in _fx_fault_tolerant_add_FAT_log()
|
D | fx_fault_tolerant_read_FAT.c | 78 UINT _fx_fault_tolerant_read_FAT(FX_MEDIA *media_ptr, ULONG cluster, ULONG *value, ULONG log_typ… in _fx_fault_tolerant_read_FAT() argument 136 …f (_fx_utility_32_unsigned_read((UCHAR *)&fat_log -> fx_fault_tolerant_FAT_log_cluster) == cluster) in _fx_fault_tolerant_read_FAT()
|
/FileX-v6.2.1/common/inc/ |
D | fx_utility.h | 70 UINT _fx_utility_FAT_entry_read(FX_MEDIA *media_ptr, ULONG cluster, ULONG *entry_ptr); 71 UINT _fx_utility_FAT_entry_write(FX_MEDIA *media_ptr, ULONG cluster, ULONG next_cluster); 74 ULONG _fx_utility_FAT_sector_get(FX_MEDIA *media_ptr, ULONG cluster);
|