/FileX-v6.2.1/common/src/ |
D | fx_system_initialize.c | 114 _fx_system_build_options_1 = _fx_system_build_options_1 | (((ULONG)0xFF) << 24); in _fx_system_initialize() 118 …_fx_system_build_options_1 = _fx_system_build_options_1 | (((ULONG)(FX_MAX_LONG_NAME_LEN & 0xFF))… in _fx_system_initialize() 122 _fx_system_build_options_1 = _fx_system_build_options_1 | (((ULONG)0xFF) << 16); in _fx_system_initialize() 126 …_fx_system_build_options_1 = _fx_system_build_options_1 | (((ULONG)(FX_MAX_LAST_NAME_LEN & 0xFF))… in _fx_system_initialize() 130 _fx_system_build_options_1 = _fx_system_build_options_1 | (((ULONG)1) << 10); in _fx_system_initialize() 133 _fx_system_build_options_1 = _fx_system_build_options_1 | (((ULONG)1) << 9); in _fx_system_initialize() 136 _fx_system_build_options_1 = _fx_system_build_options_1 | (((ULONG)1) << 8); in _fx_system_initialize() 139 _fx_system_build_options_1 = _fx_system_build_options_1 | (((ULONG)1) << 7); in _fx_system_initialize() 142 _fx_system_build_options_1 = _fx_system_build_options_1 | (((ULONG)1) << 6); in _fx_system_initialize() 146 _fx_system_build_options_1 = _fx_system_build_options_1 | (((ULONG)1) << 4); in _fx_system_initialize() [all …]
|
D | fx_partition_offset_calculate.c | 35 ULONG fx_media_part_start; 36 ULONG fx_media_part_size; 60 ULONG *partition_start, ULONG *partition_size); 62 UINT *count, ULONG sector, UCHAR *sector_buffer); 64 ULONG *partition_start, ULONG *partition_size); 129 ULONG *partition_start, ULONG *partition_size) in _fx_partition_offset_calculate() 161 …total_sectors = (((ULONG) partition_sector_ptr[0x14]) << 8) | ((ULONG) partition_sector_ptr[0x13]… in _fx_partition_offset_calculate() 167 total_sectors = (((ULONG) partition_sector_ptr[0x23]) << 24) | in _fx_partition_offset_calculate() 168 (((ULONG) partition_sector_ptr[0x22]) << 16) | in _fx_partition_offset_calculate() 169 (((ULONG) partition_sector_ptr[0x21]) << 8) | in _fx_partition_offset_calculate() [all …]
|
D | fx_file_extended_seek.c | 84 ULONG cluster; in _fx_file_extended_seek() 85 ULONG contents = 0; in _fx_file_extended_seek() 86 ULONG bytes_per_cluster; in _fx_file_extended_seek() 87 ULONG last_cluster; in _fx_file_extended_seek() 88 ULONG cluster_count; in _fx_file_extended_seek() 130 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_extended_seek() 131 ((ULONG)media_ptr -> fx_media_sectors_per_cluster); in _fx_file_extended_seek() 258 file_ptr -> fx_file_current_relative_cluster = (ULONG)(byte_offset / bytes_per_cluster); in _fx_file_extended_seek() 272 …file_ptr -> fx_file_current_logical_sector = (ULONG)(((ULONG)media_ptr -> fx_media_data_sector_sta… in _fx_file_extended_seek() 274 … ((ULONG)media_ptr -> fx_media_sectors_per_cluster)) + in _fx_file_extended_seek() [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() 73 ULONG FAT_sector; in _fx_utility_FAT_sector_get() 74 ULONG byte_offset; in _fx_utility_FAT_sector_get() 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() 105 (ULONG)media_ptr -> fx_media_reserved_sectors; in _fx_utility_FAT_sector_get()
|
D | fx_fault_tolerant_cleanup_FAT_chain.c | 72 static UINT _fx_utility_FAT_entry_multiple_sectors_check(FX_MEDIA *media_ptr, ULONG cluster) in _fx_utility_FAT_entry_multiple_sectors_check() 74 ULONG byte_offset; in _fx_utility_FAT_entry_multiple_sectors_check() 75 ULONG FAT_sector; in _fx_utility_FAT_entry_multiple_sectors_check() 87 byte_offset = (((ULONG)cluster << 1) + cluster) >> 1; in _fx_utility_FAT_entry_multiple_sectors_check() 91 (ULONG)media_ptr -> fx_media_reserved_sectors; in _fx_utility_FAT_entry_multiple_sectors_check() 95 ((FAT_sector - (ULONG)media_ptr -> fx_media_reserved_sectors) * in _fx_utility_FAT_entry_multiple_sectors_check() 99 if (byte_offset == (ULONG)(media_ptr -> fx_media_bytes_per_sector - 1)) in _fx_utility_FAT_entry_multiple_sectors_check() 177 ULONG current_cluster; in _fx_fault_tolerant_cleanup_FAT_chain() 178 ULONG next_cluster = 0; in _fx_fault_tolerant_cleanup_FAT_chain() 179 ULONG head_cluster; in _fx_fault_tolerant_cleanup_FAT_chain() [all …]
|
D | fx_unicode_directory_entry_change.c | 80 …change(FX_MEDIA *media_ptr, FX_DIR_ENTRY *entry_ptr, UCHAR *unicode_name, ULONG unicode_name_lengt… in _fx_unicode_directory_entry_change() 87 ULONG logical_sector, relative_sector; in _fx_unicode_directory_entry_change() 88 ULONG byte_offset; in _fx_unicode_directory_entry_change() 89 ULONG cluster, next_cluster; in _fx_unicode_directory_entry_change() 94 ULONG changed_offset; in _fx_unicode_directory_entry_change() 108 logical_sector = (ULONG)entry_ptr -> fx_dir_entry_log_sector; in _fx_unicode_directory_entry_change() 111 if (logical_sector >= (ULONG)(media_ptr -> fx_media_data_sector_start)) in _fx_unicode_directory_entry_change() 118 relative_sector = logical_sector - (((ULONG)media_ptr -> fx_media_data_sector_start) + in _fx_unicode_directory_entry_change() 119 (((ULONG)cluster - FX_FAT_ENTRY_START) * in _fx_unicode_directory_entry_change() 120 ((ULONG)media_ptr -> fx_media_sectors_per_cluster))); in _fx_unicode_directory_entry_change() [all …]
|
D | fx_trace_event_insert.c | 84 …ULONG event_id, ULONG info_field_1, ULONG info_field_2, ULONG info_field_3, ULONG info_field_4, UL… in _fx_trace_event_insert() 90 ULONG timestamp; in _fx_trace_event_insert()
|
D | fx_utility_32_unsigned_read.c | 72 ULONG _fx_utility_32_unsigned_read(UCHAR *source_ptr) in _fx_utility_32_unsigned_read() 75 ULONG value; in _fx_utility_32_unsigned_read() 78 value = ((((ULONG) *(source_ptr+3)) & 0xFF) << 24) | in _fx_utility_32_unsigned_read() 79 ((((ULONG) *(source_ptr+2)) & 0xFF) << 16) | in _fx_utility_32_unsigned_read() 80 ((((ULONG) *(source_ptr+1)) & 0xFF) << 8) | in _fx_utility_32_unsigned_read() 81 (((ULONG) *(source_ptr)) & 0xFF); in _fx_utility_32_unsigned_read()
|
D | fx_media_check_FAT_chain_check.c | 79 ULONG _fx_media_check_FAT_chain_check(FX_MEDIA *media_ptr, ULONG starting_cluster, ULONG *last_val… in _fx_media_check_FAT_chain_check() 82 ULONG prev_cluster, cluster, next_clust = 0; in _fx_media_check_FAT_chain_check() 83 ULONG cluster_number; in _fx_media_check_FAT_chain_check() 84 ULONG count, error; in _fx_media_check_FAT_chain_check() 101 while ((cluster >= (ULONG)FX_FAT_ENTRY_START) && in _fx_media_check_FAT_chain_check() 134 (next_clust < (ULONG)FX_FAT_ENTRY_START) || in _fx_media_check_FAT_chain_check()
|
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() 90 ULONG FAT_sector; in _fx_utility_FAT_entry_read() 91 ULONG byte_offset, entry32; in _fx_utility_FAT_entry_read() 238 byte_offset = (((ULONG)cluster << 1) + cluster) >> 1; in _fx_utility_FAT_entry_read() 242 (ULONG)media_ptr -> fx_media_reserved_sectors; in _fx_utility_FAT_entry_read() 246 … media_ptr -> fx_media_memory_buffer, ((ULONG) 1), FX_FAT_SECTOR); in _fx_utility_FAT_entry_read() 257 ((FAT_sector - (ULONG)media_ptr -> fx_media_reserved_sectors) * in _fx_utility_FAT_entry_read() 276 if (byte_offset == (ULONG)(media_ptr -> fx_media_bytes_per_sector - 1)) in _fx_utility_FAT_entry_read() 282 … media_ptr -> fx_media_memory_buffer, ((ULONG) 1), FX_FAT_SECTOR); in _fx_utility_FAT_entry_read() 311 if (byte_offset == (ULONG)(media_ptr -> fx_media_bytes_per_sector - 1)) in _fx_utility_FAT_entry_read() [all …]
|
D | fx_utility_FAT_flush.c | 83 ULONG FAT_sector; in _fx_utility_FAT_flush() 84 ULONG byte_offset; in _fx_utility_FAT_flush() 88 ULONG cluster, next_cluster; in _fx_utility_FAT_flush() 91 ULONG sector; in _fx_utility_FAT_flush() 121 byte_offset = (((ULONG)cluster << 1) + cluster) >> 1; in _fx_utility_FAT_flush() 125 (ULONG)media_ptr -> fx_media_reserved_sectors; in _fx_utility_FAT_flush() 135 … media_ptr -> fx_media_memory_buffer, ((ULONG) 1), FX_FAT_SECTOR); in _fx_utility_FAT_flush() 195 byte_offset = (((ULONG)cluster << 1) + cluster) >> 1; in _fx_utility_FAT_flush() 199 (ULONG)media_ptr -> fx_media_reserved_sectors; in _fx_utility_FAT_flush() 214 ((FAT_sector - (ULONG)media_ptr -> fx_media_reserved_sectors) * in _fx_utility_FAT_flush() [all …]
|
D | fx_file_write.c | 94 UINT _fx_file_write(FX_FILE *file_ptr, VOID *buffer_ptr, ULONG size) in _fx_file_write() 99 ULONG i; in _fx_file_write() 100 ULONG copy_bytes; in _fx_file_write() 101 ULONG bytes_per_cluster; in _fx_file_write() 103 ULONG first_new_cluster; in _fx_file_write() 104 ULONG last_cluster; in _fx_file_write() 105 ULONG cluster, next_cluster; in _fx_file_write() 106 ULONG FAT_index; in _fx_file_write() 107 ULONG FAT_value; in _fx_file_write() 108 ULONG clusters; in _fx_file_write() [all …]
|
D | fx_file_extended_truncate.c | 89 ULONG cluster; in _fx_file_extended_truncate() 90 ULONG contents = 0; in _fx_file_extended_truncate() 91 ULONG bytes_per_cluster; in _fx_file_extended_truncate() 92 ULONG last_cluster; in _fx_file_extended_truncate() 93 ULONG cluster_count; in _fx_file_extended_truncate() 98 ULONG open_count; in _fx_file_extended_truncate() 104 ULONG trace_timestamp; in _fx_file_extended_truncate() 217 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_extended_truncate() 218 ((ULONG)media_ptr -> fx_media_sectors_per_cluster); in _fx_file_extended_truncate() 283 … file_ptr -> fx_file_current_logical_sector = ((ULONG)media_ptr -> fx_media_data_sector_start) + in _fx_file_extended_truncate() [all …]
|
D | fx_file_open.c | 91 ULONG cluster; in _fx_file_open() 92 ULONG contents = 0; in _fx_file_open() 93 ULONG open_count; in _fx_file_open() 96 ULONG bytes_per_cluster; in _fx_file_open() 98 ULONG cluster_count; in _fx_file_open() 101 ULONG fat_last; in _fx_file_open() 296 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_open() 297 ((ULONG)media_ptr -> fx_media_sectors_per_cluster); in _fx_file_open() 464 … file_ptr -> fx_file_current_logical_sector = ((ULONG)media_ptr -> fx_media_data_sector_start) + in _fx_file_open() 466 ((ULONG)media_ptr -> fx_media_sectors_per_cluster)); in _fx_file_open() [all …]
|
D | fx_directory_free_search.c | 90 ULONG i, j; in _fx_directory_free_search() 93 ULONG entry_sector, entry_offset; in _fx_directory_free_search() 94 ULONG FAT_index, FAT_value; in _fx_directory_free_search() 95 ULONG cluster, total_clusters, clusters_needed; in _fx_directory_free_search() 96 ULONG first_new_cluster, last_cluster, clusters; in _fx_directory_free_search() 97 ULONG directory_index; in _fx_directory_free_search() 98 ULONG directory_entries; in _fx_directory_free_search() 99 ULONG logical_sector; in _fx_directory_free_search() 101 ULONG free_entry_start; in _fx_directory_free_search() 283 directory_entries = (ULONG)directory_ptr -> fx_dir_entry_file_size; in _fx_directory_free_search() [all …]
|
D | fx_media_check_lost_cluster_check.c | 80 ULONG _fx_media_check_lost_cluster_check(FX_MEDIA *media_ptr, UCHAR *logical_fat, ULONG total_clus… in _fx_media_check_lost_cluster_check() 83 ULONG cluster, next_cluster = 0; in _fx_media_check_lost_cluster_check() 84 ULONG fat_last; in _fx_media_check_lost_cluster_check() 85 ULONG error; in _fx_media_check_lost_cluster_check() 132 …if (((next_cluster > (ULONG)FX_FREE_CLUSTER) && (next_cluster < media_ptr -> fx_media_fat_reserved… in _fx_media_check_lost_cluster_check()
|
/FileX-v6.2.1/common/inc/ |
D | fx_unicode.h | 61 UINT _fx_unicode_directory_create(FX_MEDIA *media_ptr, UCHAR *source_unicode_name, ULONG source_un… 63 UINT _fx_unicode_directory_rename(FX_MEDIA *media_ptr, UCHAR *old_unicode_name, ULONG old_unicode_… 64 … UCHAR *new_unicode_name, ULONG new_unicode_length, CHAR *new_short_name); 65 UINT _fx_unicode_file_create(FX_MEDIA *media_ptr, UCHAR *source_unicode_name, ULONG source_unicode… 67 ULONG _fx_unicode_length_get(UCHAR *unicode_name); 68 ULONG _fx_unicode_length_get_extended(UCHAR *unicode_name, UINT buffer_length); 70 UCHAR *destination_unicode_name, ULONG *destination_unicode_length); 72 …UCHAR *destination_unicode_name, ULONG *destination_unicode_length, ULONG unicode_name_buffer_leng… 73 UINT _fx_unicode_file_rename(FX_MEDIA *media_ptr, UCHAR *old_unicode_name, ULONG old_unicode_lengt… 74 … UCHAR *new_unicode_name, ULONG new_unicode_length, CHAR *new_short_name); [all …]
|
D | fx_api.h | 351 …STER(t, p, n, a, b) _fx_trace_object_register(t, (VOID *)p, (CHAR *)n, (ULONG)a, (ULONG)b); 353 …(i, a, b, c, d, f, g, h) _fx_trace_event_insert((ULONG)i, (ULONG)a, (ULONG)b, (ULONG)c, (ULONG)d, … 354 …_trace_event_update((TX_TRACE_BUFFER_ENTRY *)e, (ULONG)t, (ULONG)i, (ULONG)a, (ULONG)b, (ULONG)c, … 359 …egister(UCHAR object_type, VOID *object_ptr, CHAR *object_name, ULONG parameter_1, ULONG parameter… 361 …ULONG event_id, ULONG info_field_1, ULONG info_field_2, ULONG info_field_3, ULONG info_field_4, UL… 362 …TRACE_BUFFER_ENTRY *event, ULONG timestamp, ULONG event_id, ULONG info_field_1, ULONG info_field_2… 376 #define FX_MEDIA_ID ((ULONG)0x4D454449) 377 #define FX_MEDIA_CLOSED_ID ((ULONG)0x4D454443) 378 #define FX_MEDIA_ABORTED_ID ((ULONG)0x4D454441) 380 #define FX_FILE_ID ((ULONG)0x46494C45) [all …]
|
D | fx_fault_tolerant.h | 230 ULONG fx_fault_tolerant_log_header_id; 245 ULONG fx_fault_tolerant_FAT_chain_insertion_front; 246 ULONG fx_fault_tolerant_FAT_chain_head_new; 247 ULONG fx_fault_tolerant_FAT_chain_head_original; 248 ULONG fx_fault_tolerant_FAT_chain_insertion_back; 249 ULONG fx_fault_tolerant_FAT_chain_next_deletion; 283 ULONG fx_fault_tolerant_FAT_log_cluster; 284 ULONG fx_fault_tolerant_FAT_log_value; 314 ULONG fx_fault_tolerant_dir_log_offset; 338 ULONG fx_fault_tolerant_bitmap_log_cluster; [all …]
|
D | fx_media.h | 57 …MEDIA *media_ptr, UCHAR *scratch_memory_ptr, ULONG scratch_memory_size, ULONG error_correction_opt… 62 ULONG total_sectors, UINT bytes_per_sector, UINT sectors_per_cluster, 66 VOID *memory_ptr, ULONG memory_size); 67 UINT _fx_media_read(FX_MEDIA *media_ptr, ULONG logical_sector, VOID *buffer_ptr); 68 UINT _fx_media_space_available(FX_MEDIA *media_ptr, ULONG *available_bytes_ptr); 72 UINT _fx_media_write(FX_MEDIA *media_ptr, ULONG logical_sector, VOID *buffer_ptr); 80 …MEDIA *media_ptr, UCHAR *scratch_memory_ptr, ULONG scratch_memory_size, ULONG error_correction_opt… 85 ULONG total_sectors, UINT bytes_per_sector, UINT sectors_per_cluster, 89 VOID *memory_ptr, ULONG memory_size, UINT media_control_block_size); 90 UINT _fxe_media_read(FX_MEDIA *media_ptr, ULONG logical_sector, VOID *buffer_ptr); [all …]
|
D | fx_utility.h | 57 ULONG _fx_utility_32_unsigned_read(UCHAR *source_ptr); 58 VOID _fx_utility_32_unsigned_write(UCHAR *dest_ptr, ULONG value); 61 VOID _fx_utility_memory_copy(UCHAR *source_ptr, UCHAR *dest_ptr, ULONG size); 62 VOID _fx_utility_memory_set(UCHAR *dest_ptr, UCHAR value, ULONG size); 66 VOID *buffer_ptr, ULONG sectors, UCHAR sector_type); 68 VOID *buffer_ptr, ULONG sectors, UCHAR sector_type); 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);
|
D | fx_file.h | 58 UINT _fx_file_allocate(FX_FILE *file_ptr, ULONG size); 64 UINT _fx_file_best_effort_allocate(FX_FILE *file_ptr, ULONG size, ULONG *actual_size_allocated); 72 UINT _fx_file_read(FX_FILE *file_ptr, VOID *buffer_ptr, ULONG request_size, ULONG *actual_size); 74 UINT _fx_file_relative_seek(FX_FILE *file_ptr, ULONG byte_offset, UINT seek_from); 80 UINT _fx_file_seek(FX_FILE *file_ptr, ULONG byte_offset); 81 UINT _fx_file_truncate(FX_FILE *file_ptr, ULONG size); 82 UINT _fx_file_truncate_release(FX_FILE *file_ptr, ULONG size); 88 UINT _fx_file_write(FX_FILE *file_ptr, VOID *buffer_ptr, ULONG size); 97 UINT _fxe_file_allocate(FX_FILE *file_ptr, ULONG size); 100 UINT _fxe_file_best_effort_allocate(FX_FILE *file_ptr, ULONG size, ULONG *actual_size_allocated); [all …]
|
/FileX-v6.2.1/ports/linux/gnu/inc/ |
D | fx_port.h | 96 typedef unsigned long ULONG; typedef 111 #define ALIGN_TYPE ULONG 126 extern ULONG _fx_ram_driver_io_error_request; 127 extern ULONG _fx_ram_driver_io_request_count; 128 extern ULONG _fx_file_open_max_file_size_request; 129 extern ULONG _fx_directory_entry_read_count; 130 extern ULONG _fx_directory_entry_read_error_request; 131 extern ULONG _fx_directory_entry_write_count; 132 extern ULONG _fx_directory_entry_write_error_request; 133 extern ULONG _fx_utility_fat_entry_write_count; [all …]
|
/FileX-v6.2.1/test/regression_test/ |
D | filex_file_seek_test.c | 36 static void ftest_0_entry(ULONG thread_input); 84 static void ftest_0_entry(ULONG thread_input) in ftest_0_entry() 88 ULONG actual; in ftest_0_entry() 89 ULONG read_value; in ftest_0_entry() 90 ULONG write_value; in ftest_0_entry() 91 ULONG available_bytes; in ftest_0_entry() 92 ULONG i; in ftest_0_entry() 229 if ((status != FX_SUCCESS) || (available_bytes < sizeof(ULONG))) in ftest_0_entry() 243 status = fx_file_write(&my_file, (void *) &write_value, sizeof(ULONG)); in ftest_0_entry() 254 i = i + sizeof(ULONG); in ftest_0_entry() [all …]
|
D | filex_fault_tolerant_write_large_data_test.c | 54 static void ftest_0_entry(ULONG thread_input); 98 static void ftest_0_entry(ULONG thread_input) in ftest_0_entry() 102 ULONG actual; in ftest_0_entry() 103 ULONG available_bytes; in ftest_0_entry() 104 ULONG i, j; in ftest_0_entry() 105 ULONG data_value; in ftest_0_entry() 113 srand((ULONG)time(NULL)); in ftest_0_entry() 114 …data_value = (ULONG)(rand() & 0xFF) | (ULONG)((rand() & 0xFF) << 8) | (ULONG)((rand() & 0xFF) << 1… in ftest_0_entry() 117 for (j = 0; j < large_data_buffer_size / sizeof(ULONG); j ++) in ftest_0_entry() 119 ((ULONG*)large_data_buffer)[j] = data_value++; in ftest_0_entry() [all …]
|