Home
last modified time | relevance | path

Searched refs:FAT_index (Results 1 – 6 of 6) sorted by relevance

/FileX-v6.4.1/common/src/
Dfx_fault_tolerant_create_log_file.c83 ULONG FAT_index; in _fx_fault_tolerant_create_log_file() local
100 FAT_index = FX_FAT_ENTRY_START; in _fx_fault_tolerant_create_log_file()
102 while (FAT_index <= (media_ptr -> fx_media_total_clusters - clusters + FX_FAT_ENTRY_START)) in _fx_fault_tolerant_create_log_file()
113 status = _fx_utility_FAT_entry_read(media_ptr, (FAT_index + i), &FAT_value); in _fx_fault_tolerant_create_log_file()
145 FAT_index = FAT_index + i + 1; in _fx_fault_tolerant_create_log_file()
165 status = _fx_utility_FAT_entry_write(media_ptr, FAT_index + i, FAT_index + i + 1); in _fx_fault_tolerant_create_log_file()
178 …status = _fx_utility_FAT_entry_write(media_ptr, FAT_index + clusters - 1, media_ptr -> fx_media_f… in _fx_fault_tolerant_create_log_file()
197 …rite(media_ptr -> fx_media_fault_tolerant_memory_buffer + FX_FAULT_TOLERANT_BOOT_INDEX, FAT_index); in _fx_fault_tolerant_create_log_file()
222 media_ptr -> fx_media_fault_tolerant_start_cluster = FAT_index; in _fx_fault_tolerant_create_log_file()
Dfx_file_extended_best_effort_allocate.c99 ULONG FAT_index, start_FAT_index; in _fx_file_extended_best_effort_allocate() local
251 FAT_index = FX_FAT_ENTRY_START; in _fx_file_extended_best_effort_allocate()
253 start_FAT_index = FAT_index; in _fx_file_extended_best_effort_allocate()
255 while (FAT_index < (media_ptr -> fx_media_total_clusters + FX_FAT_ENTRY_START)) in _fx_file_extended_best_effort_allocate()
266 status = _fx_utility_FAT_entry_read(media_ptr, (FAT_index + i), &FAT_value); in _fx_file_extended_best_effort_allocate()
291 …} while ((i < clusters) && ((FAT_index + i) < media_ptr -> fx_media_total_clusters + FX_FAT_ENTRY_… in _fx_file_extended_best_effort_allocate()
300 start_FAT_index = FAT_index; in _fx_file_extended_best_effort_allocate()
316 FAT_index = FAT_index + i + 1; in _fx_file_extended_best_effort_allocate()
327 FAT_index = start_FAT_index; in _fx_file_extended_best_effort_allocate()
345FAT_index, media_ptr -> fx_media_fat_last, media_ptr -> fx_media_fat_last); in _fx_file_extended_best_effort_allocate()
[all …]
Dfx_file_extended_allocate.c98 ULONG FAT_index; in _fx_file_extended_allocate() local
243 FAT_index = FX_FAT_ENTRY_START; in _fx_file_extended_allocate()
247 while (FAT_index <= (media_ptr -> fx_media_total_clusters - clusters + FX_FAT_ENTRY_START)) in _fx_file_extended_allocate()
258 status = _fx_utility_FAT_entry_read(media_ptr, (FAT_index + i), &FAT_value); in _fx_file_extended_allocate()
297 FAT_index = FAT_index + i + 1; in _fx_file_extended_allocate()
314FAT_index, media_ptr -> fx_media_fat_last, media_ptr -> fx_media_fat_last); in _fx_file_extended_allocate()
326 status = _fx_utility_FAT_entry_write(media_ptr, FAT_index + i, FAT_index + i + 1); in _fx_file_extended_allocate()
345 …status = _fx_utility_FAT_entry_write(media_ptr, FAT_index + clusters - 1, media_ptr -> fx_media_f… in _fx_file_extended_allocate()
377 … file_ptr -> fx_file_last_physical_cluster, FAT_index); in _fx_file_extended_allocate()
404 file_ptr -> fx_file_current_physical_cluster = FAT_index; in _fx_file_extended_allocate()
[all …]
Dfx_directory_free_search.c94 ULONG FAT_index, FAT_value; in _fx_directory_free_search() local
435 FAT_index = media_ptr -> fx_media_cluster_search_start; in _fx_directory_free_search()
459 status = _fx_utility_FAT_entry_read(media_ptr, FAT_index, &FAT_value); in _fx_directory_free_search()
477 media_ptr -> fx_media_cluster_search_start = FAT_index + 1; in _fx_directory_free_search()
494 FAT_index++; in _fx_directory_free_search()
497 … if (FAT_index >= (media_ptr -> fx_media_total_clusters + FX_FAT_ENTRY_START)) in _fx_directory_free_search()
501 FAT_index = FX_FAT_ENTRY_START; in _fx_directory_free_search()
511 ((((ULONG) FAT_index) - FX_FAT_ENTRY_START) * in _fx_directory_free_search()
625 first_new_cluster = FAT_index; in _fx_directory_free_search()
634 status = _fx_utility_FAT_entry_write(media_ptr, last_cluster, FAT_index); in _fx_directory_free_search()
[all …]
Dfx_directory_create.c101 ULONG FAT_index; in _fx_directory_create() local
254 FAT_index = media_ptr -> fx_media_cluster_search_start; in _fx_directory_create()
278 status = _fx_utility_FAT_entry_read(media_ptr, FAT_index, &FAT_value); in _fx_directory_create()
303 media_ptr -> fx_media_cluster_search_start = FAT_index + 1; in _fx_directory_create()
320 FAT_index++; in _fx_directory_create()
323 if (FAT_index >= (media_ptr -> fx_media_total_clusters + FX_FAT_ENTRY_START)) in _fx_directory_create()
327 FAT_index = FX_FAT_ENTRY_START; in _fx_directory_create()
363 dir_entry.fx_dir_entry_cluster = FAT_index; in _fx_directory_create()
380 (((ULONG64) FAT_index - FX_FAT_ENTRY_START) * in _fx_directory_create()
659 status = _fx_utility_FAT_entry_write(media_ptr, FAT_index, media_ptr -> fx_media_fat_last); in _fx_directory_create()
Dfx_file_write.c106 ULONG FAT_index; in _fx_file_write() local
536 FAT_index = media_ptr -> fx_media_cluster_search_start; in _fx_file_write()
566 status = _fx_utility_FAT_entry_read(media_ptr, FAT_index, &FAT_value); in _fx_file_write()
591 media_ptr -> fx_media_cluster_search_start = FAT_index + 1; in _fx_file_write()
608 FAT_index++; in _fx_file_write()
611 if (FAT_index >= (media_ptr -> fx_media_total_clusters + FX_FAT_ENTRY_START)) in _fx_file_write()
615 FAT_index = FX_FAT_ENTRY_START; in _fx_file_write()
625 first_new_cluster = FAT_index; in _fx_file_write()
672 status = _fx_utility_FAT_entry_write(media_ptr, last_cluster, FAT_index); in _fx_file_write()
700 file_ptr -> fx_file_current_physical_cluster = FAT_index; in _fx_file_write()
[all …]