Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 44) sorted by relevance

12

/FileX-v6.2.1/common/inc/
Dfx_file.h58 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/
Dfx_file_extended_truncate.c85 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 …]
Dfx_file_extended_truncate_release.c93 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 …]
Dfx_fault_tolerant_read_FAT.c83 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()
Dfx_fault_tolerant_read_directory_sector.c87 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()
Dfxe_directory_information_get.c84 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()
Dfx_fault_tolerant_apply_logs.c94 ULONG size; in _fx_fault_tolerant_apply_logs() local
110size = _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()
Dfx_file_truncate_release.c79 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()
Dfx_file_allocate.c78 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()
Dfx_file_truncate.c77 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()
Dfx_utility_memory_set.c81 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()
Dfx_utility_memory_copy.c82 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()
Dfxe_file_extended_truncate.c73 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()
Dfxe_file_truncate.c73 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()
Dfxe_file_extended_truncate_release.c74 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()
Dfxe_file_allocate.c73 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()
Dfxe_file_extended_allocate.c73 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()
Dfxe_file_truncate_release.c74 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()
Dfxe_file_best_effort_allocate.c76 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()
Dfxe_file_write.c74 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()
Dfxe_file_extended_best_effort_allocate.c76 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()
Dfx_file_best_effort_allocate.c78 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()
Dfxe_directory_first_full_entry_find.c84 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()
Dfxe_directory_next_full_entry_find.c84 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/
Dfilex_file_write_available_cluster_test.c36 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 …]

12