/FileX-v6.2.1/common/inc/ |
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); 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); 90 UINT _fx_file_extended_allocate(FX_FILE *file_ptr, ULONG64 size); 91 UINT _fx_file_extended_best_effort_allocate(FX_FILE *file_ptr, ULONG64 size, ULONG64 *actual_size_a… 94 UINT _fx_file_extended_truncate(FX_FILE *file_ptr, ULONG64 size); 95 UINT _fx_file_extended_truncate_release(FX_FILE *file_ptr, ULONG64 size); 97 UINT _fxe_file_allocate(FX_FILE *file_ptr, ULONG size); [all …]
|
/FileX-v6.2.1/common/src/ |
D | fx_file_extended_truncate.c | 85 UINT _fx_file_extended_truncate(FX_FILE *file_ptr, ULONG64 size) in _fx_file_extended_truncate() argument 128 …FX_TRACE_IN_LINE_INSERT(FX_TRACE_FILE_TRUNCATE, file_ptr, size, file_ptr -> fx_file_current_file_s… in _fx_file_extended_truncate() 157 if (size < file_ptr -> fx_file_current_file_size) in _fx_file_extended_truncate() 161 file_ptr -> fx_file_current_file_size = size; in _fx_file_extended_truncate() 167 FX_TRACE_EVENT_UPDATE(trace_event, trace_timestamp, FX_TRACE_FILE_TRUNCATE, 0, 0, 0, size) in _fx_file_extended_truncate() 201 search_ptr -> fx_file_current_file_size = size; in _fx_file_extended_truncate() 202 search_ptr -> fx_file_dir_entry.fx_dir_entry_file_size = size; in _fx_file_extended_truncate() 223 bytes_remaining = size; in _fx_file_extended_truncate() 270 if (size > (((ULONG64) bytes_per_cluster) * ((ULONG64) cluster_count))) in _fx_file_extended_truncate() 288 file_ptr -> fx_file_current_file_offset = size; in _fx_file_extended_truncate() [all …]
|
D | fx_file_extended_truncate_release.c | 93 UINT _fx_file_extended_truncate_release(FX_FILE *file_ptr, ULONG64 size) in _fx_file_extended_truncate_release() argument 137 …FX_TRACE_IN_LINE_INSERT(FX_TRACE_FILE_TRUNCATE_RELEASE, file_ptr, size, file_ptr -> fx_file_curren… in _fx_file_extended_truncate_release() 198 if (size < file_ptr -> fx_file_current_available_size) in _fx_file_extended_truncate_release() 204 …file_ptr -> fx_file_current_available_size = ((size + bytes_per_cluster - 1) / bytes_per_cluster)… in _fx_file_extended_truncate_release() 207 if (size < file_ptr -> fx_file_current_file_size) in _fx_file_extended_truncate_release() 211 file_ptr -> fx_file_current_file_size = size; in _fx_file_extended_truncate_release() 217 file_ptr -> fx_file_dir_entry.fx_dir_entry_file_size = size; in _fx_file_extended_truncate_release() 220 if (size == 0) in _fx_file_extended_truncate_release() 280 bytes_remaining = size; in _fx_file_extended_truncate_release() 332 if (size > (((ULONG64) bytes_per_cluster) * ((ULONG64) cluster_count))) in _fx_file_extended_truncate_release() [all …]
|
D | fx_fault_tolerant_read_FAT.c | 83 ULONG size; in _fx_fault_tolerant_read_FAT() local 101 size = media_ptr -> fx_media_fault_tolerant_file_size - FX_FAULT_TOLERANT_LOG_CONTENT_OFFSET; in _fx_fault_tolerant_read_FAT() 119 if (log_len > size) in _fx_fault_tolerant_read_FAT() 125 size -= log_len; in _fx_fault_tolerant_read_FAT()
|
D | fx_fault_tolerant_read_directory_sector.c | 87 ULONG size; in _fx_fault_tolerant_read_directory_sector() local 105 size = media_ptr -> fx_media_fault_tolerant_file_size - FX_FAULT_TOLERANT_LOG_CONTENT_OFFSET; in _fx_fault_tolerant_read_directory_sector() 123 if (log_len > size) in _fx_fault_tolerant_read_directory_sector() 129 size -= log_len; in _fx_fault_tolerant_read_directory_sector()
|
D | fxe_directory_information_get.c | 84 UINT *attributes, ULONG *size, in _fxe_directory_information_get() argument 94 ((attributes == FX_NULL) && (size == FX_NULL) && (year == FX_NULL) && (month == FX_NULL) && in _fxe_directory_information_get() 104 status = _fx_directory_information_get(media_ptr, directory_name, attributes, size, in _fxe_directory_information_get()
|
D | fx_fault_tolerant_apply_logs.c | 94 ULONG size; in _fx_fault_tolerant_apply_logs() local 110 …size = _fx_utility_16_unsigned_read((UCHAR *)&log_header -> fx_fault_tolerant_log_header_total_siz… in _fx_fault_tolerant_apply_logs() 115 size -= FX_FAULT_TOLERANT_LOG_CONTENT_HEADER_SIZE; in _fx_fault_tolerant_apply_logs() 135 if (log_len > size) in _fx_fault_tolerant_apply_logs() 143 size -= log_len; in _fx_fault_tolerant_apply_logs()
|
D | fx_file_truncate_release.c | 79 UINT _fx_file_truncate_release(FX_FILE *file_ptr, ULONG size) in _fx_file_truncate_release() argument 82 return(_fx_file_extended_truncate_release(file_ptr, (ULONG64)size)); in _fx_file_truncate_release()
|
D | fx_file_allocate.c | 78 UINT _fx_file_allocate(FX_FILE *file_ptr, ULONG size) in _fx_file_allocate() argument 81 return(_fx_file_extended_allocate(file_ptr, (ULONG64)size)); in _fx_file_allocate()
|
D | fx_file_truncate.c | 77 UINT _fx_file_truncate(FX_FILE *file_ptr, ULONG size) in _fx_file_truncate() argument 80 return(_fx_file_extended_truncate(file_ptr, (ULONG64)size)); in _fx_file_truncate()
|
D | fx_utility_memory_set.c | 81 VOID _fx_utility_memory_set(UCHAR *dest_ptr, UCHAR value, ULONG size) in _fx_utility_memory_set() argument 85 while (size--) in _fx_utility_memory_set()
|
D | fx_utility_memory_copy.c | 82 VOID _fx_utility_memory_copy(UCHAR *source_ptr, UCHAR *dest_ptr, ULONG size) in _fx_utility_memory_copy() argument 86 memcpy(dest_ptr, source_ptr, size); /* Use case of memcpy is verified. */ in _fx_utility_memory_copy()
|
D | fxe_file_extended_truncate.c | 73 UINT _fxe_file_extended_truncate(FX_FILE *file_ptr, ULONG64 size) in _fxe_file_extended_truncate() argument 89 status = _fx_file_extended_truncate(file_ptr, size); in _fxe_file_extended_truncate()
|
D | fxe_file_truncate.c | 73 UINT _fxe_file_truncate(FX_FILE *file_ptr, ULONG size) in _fxe_file_truncate() argument 89 status = _fx_file_truncate(file_ptr, size); in _fxe_file_truncate()
|
D | fxe_file_extended_truncate_release.c | 74 UINT _fxe_file_extended_truncate_release(FX_FILE *file_ptr, ULONG64 size) in _fxe_file_extended_truncate_release() argument 90 status = _fx_file_extended_truncate_release(file_ptr, size); in _fxe_file_extended_truncate_release()
|
D | fxe_file_allocate.c | 73 UINT _fxe_file_allocate(FX_FILE *file_ptr, ULONG size) in _fxe_file_allocate() argument 89 status = _fx_file_allocate(file_ptr, size); in _fxe_file_allocate()
|
D | fxe_file_extended_allocate.c | 73 UINT _fxe_file_extended_allocate(FX_FILE *file_ptr, ULONG64 size) in _fxe_file_extended_allocate() argument 89 status = _fx_file_extended_allocate(file_ptr, size); in _fxe_file_extended_allocate()
|
D | fxe_file_truncate_release.c | 74 UINT _fxe_file_truncate_release(FX_FILE *file_ptr, ULONG size) in _fxe_file_truncate_release() argument 90 status = _fx_file_truncate_release(file_ptr, size); in _fxe_file_truncate_release()
|
D | fxe_file_best_effort_allocate.c | 76 UINT _fxe_file_best_effort_allocate(FX_FILE *file_ptr, ULONG size, ULONG *actual_size_allocated) in _fxe_file_best_effort_allocate() argument 92 status = _fx_file_best_effort_allocate(file_ptr, size, actual_size_allocated); in _fxe_file_best_effort_allocate()
|
D | fxe_file_write.c | 74 UINT _fxe_file_write(FX_FILE *file_ptr, VOID *buffer_ptr, ULONG size) in _fxe_file_write() argument 90 status = _fx_file_write(file_ptr, buffer_ptr, size); in _fxe_file_write()
|
D | fxe_file_extended_best_effort_allocate.c | 76 UINT _fxe_file_extended_best_effort_allocate(FX_FILE *file_ptr, ULONG64 size, ULONG64 *actual_size… in _fxe_file_extended_best_effort_allocate() argument 92 status = _fx_file_extended_best_effort_allocate(file_ptr, size, actual_size_allocated); in _fxe_file_extended_best_effort_allocate()
|
D | fx_file_best_effort_allocate.c | 78 UINT _fx_file_best_effort_allocate(FX_FILE *file_ptr, ULONG size, ULONG *actual_size_allocated) in _fx_file_best_effort_allocate() argument 85 …status = _fx_file_extended_best_effort_allocate(file_ptr, (ULONG64)size, &temp_actual_size_allocat… in _fx_file_best_effort_allocate()
|
D | fxe_directory_first_full_entry_find.c | 84 CHAR *directory_name, UINT *attributes, ULONG *size, in _fxe_directory_first_full_entry_find() argument 102 … attributes, size, year, month, day, hour, minute, second); in _fxe_directory_first_full_entry_find()
|
D | fxe_directory_next_full_entry_find.c | 84 CHAR *directory_name, UINT *attributes, ULONG *size, in _fxe_directory_next_full_entry_find() argument 102 … attributes, size, year, month, day, hour, minute, second); in _fxe_directory_next_full_entry_find()
|
/FileX-v6.2.1/test/regression_test/ |
D | filex_file_write_available_cluster_test.c | 36 UINT size; member 175 fx_file_write (&my_file, test_buffer, steps[i].size); in ftest_0_entry() 194 status += fx_file_write( &my_file, test_buffer, steps[0].size); in ftest_0_entry() 200 status += fx_file_write( &my_file, test_buffer, steps[3].size); in ftest_0_entry() 206 status += fx_file_write( &my_file, test_buffer, steps[3].size); in ftest_0_entry() 212 status += fx_file_write( &my_file, test_buffer, steps[3].size); in ftest_0_entry() 219 status += fx_file_write( &my_file, test_buffer, steps[3].size); in ftest_0_entry() 226 status += fx_file_write( &my_file, test_buffer, steps[3].size); in ftest_0_entry() 232 status += fx_file_write( &my_file, test_buffer, steps[3].size); in ftest_0_entry() 237 status += fx_file_write( &my_file, test_buffer, steps[0].size); in ftest_0_entry() [all …]
|