/FileX-v6.2.1/common/src/ |
D | fx_file_extended_seek.c | 86 ULONG bytes_per_cluster; in _fx_file_extended_seek() local 130 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_extended_seek() 134 if (bytes_per_cluster == 0) in _fx_file_extended_seek() 153 … if (byte_offset >= (ULONG64)file_ptr -> fx_file_consecutive_cluster * (ULONG64)bytes_per_cluster) in _fx_file_extended_seek() 160 …if ((ULONG64)file_ptr -> fx_file_current_relative_cluster * (ULONG64)bytes_per_cluster < byte_offs… in _fx_file_extended_seek() 166 file_ptr -> fx_file_current_relative_cluster * bytes_per_cluster; in _fx_file_extended_seek() 176 (file_ptr -> fx_file_consecutive_cluster - 1) * bytes_per_cluster; in _fx_file_extended_seek() 209 if (bytes_remaining > bytes_per_cluster) in _fx_file_extended_seek() 213 bytes_remaining = bytes_remaining - bytes_per_cluster; in _fx_file_extended_seek() 226 if ((bytes_remaining == bytes_per_cluster) && in _fx_file_extended_seek() [all …]
|
D | fx_file_extended_truncate_release.c | 99 ULONG bytes_per_cluster; in _fx_file_extended_truncate_release() local 179 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_extended_truncate_release() 183 if (bytes_per_cluster == 0) in _fx_file_extended_truncate_release() 204 …> fx_file_current_available_size = ((size + bytes_per_cluster - 1) / bytes_per_cluster) * bytes_p… in _fx_file_extended_truncate_release() 268 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_extended_truncate_release() 317 if (bytes_remaining >= bytes_per_cluster) in _fx_file_extended_truncate_release() 321 bytes_remaining = bytes_remaining - bytes_per_cluster; in _fx_file_extended_truncate_release() 332 if (size > (((ULONG64) bytes_per_cluster) * ((ULONG64) cluster_count))) in _fx_file_extended_truncate_release() 359 … -> fx_file_current_available_size + (((ULONG64) bytes_per_cluster) - ((ULONG64) 1)))/bytes_per_cl… in _fx_file_extended_truncate_release() 630 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_extended_truncate_release() [all …]
|
D | fx_media_extended_space_available.c | 78 ULONG bytes_per_cluster; in _fx_media_extended_space_available() local 100 …bytes_per_cluster = media_ptr -> fx_media_bytes_per_sector * media_ptr -> fx_media_sectors_per_cl… in _fx_media_extended_space_available() 103 available_bytes = ((ULONG64)available_clusters) * ((ULONG64)bytes_per_cluster); in _fx_media_extended_space_available()
|
D | fx_file_extended_best_effort_allocate.c | 98 ULONG bytes_per_cluster; in _fx_file_extended_best_effort_allocate() local 177 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_extended_best_effort_allocate() 181 if (bytes_per_cluster == 0) in _fx_file_extended_best_effort_allocate() 197 clusters = (ULONG)(((size + bytes_per_cluster - 1) / bytes_per_cluster)); in _fx_file_extended_best_effort_allocate() 233 …fx_file_current_available_size + (((ULONG64) clusters) * ((ULONG64) bytes_per_cluster))) < file_pt… in _fx_file_extended_best_effort_allocate() 234 …fx_file_current_available_size + (((ULONG64) clusters) * ((ULONG64) bytes_per_cluster))) > 0xFFFFF… in _fx_file_extended_best_effort_allocate() 482 file_ptr -> fx_file_current_available_size + bytes_per_cluster * clusters; in _fx_file_extended_best_effort_allocate() 493 *actual_size_allocated = ((ULONG64)clusters) * bytes_per_cluster; in _fx_file_extended_best_effort_allocate()
|
D | fx_file_extended_allocate.c | 97 ULONG bytes_per_cluster; in _fx_file_extended_allocate() local 173 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_extended_allocate() 177 if (bytes_per_cluster == 0) in _fx_file_extended_allocate() 193 clusters = (ULONG)(((size + bytes_per_cluster - 1) / bytes_per_cluster)); in _fx_file_extended_allocate() 226 …fx_file_current_available_size + (((ULONG64) clusters) * ((ULONG64) bytes_per_cluster))) < file_pt… in _fx_file_extended_allocate() 227 …fx_file_current_available_size + (((ULONG64) clusters) * ((ULONG64) bytes_per_cluster))) > 0xFFFFF… in _fx_file_extended_allocate() 438 file_ptr -> fx_file_current_available_size + (bytes_per_cluster * clusters); in _fx_file_extended_allocate()
|
D | fx_file_open.c | 96 ULONG bytes_per_cluster; in _fx_file_open() local 296 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_open() 301 if (bytes_per_cluster == 0) in _fx_file_open() 325 …bytes_available = ((bytes_remaining + bytes_per_cluster - 1) / bytes_per_cluster) * bytes_per_clu… in _fx_file_open() 394 if (bytes_remaining > bytes_per_cluster) in _fx_file_open() 398 bytes_remaining = bytes_remaining - bytes_per_cluster; in _fx_file_open() 411 if ((bytes_remaining == bytes_per_cluster) && in _fx_file_open() 477 if (bytes_remaining == bytes_per_cluster) in _fx_file_open()
|
D | fx_fault_tolerant_enable.c | 108 ULONG bytes_per_cluster; local 115 bytes_per_cluster = bytes_per_sector * media_ptr -> fx_media_sectors_per_cluster; 117 if (bytes_per_cluster == 0) 126 … clusters = (FX_FAULT_TOLERANT_MAXIMUM_LOG_FILE_SIZE + bytes_per_cluster - 1) / bytes_per_cluster; 263 if (memory_size > (clusters * bytes_per_cluster)) 265 media_ptr -> fx_media_fault_tolerant_memory_buffer_size = clusters * bytes_per_cluster;
|
D | fx_file_extended_truncate.c | 91 ULONG bytes_per_cluster; in _fx_file_extended_truncate() local 217 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_extended_truncate() 255 if (bytes_remaining >= bytes_per_cluster) in _fx_file_extended_truncate() 259 bytes_remaining = bytes_remaining - bytes_per_cluster; in _fx_file_extended_truncate() 270 if (size > (((ULONG64) bytes_per_cluster) * ((ULONG64) cluster_count))) in _fx_file_extended_truncate()
|
D | fx_media_check.c | 171 ULONG bytes_per_cluster, i, current_errors; in _fx_media_check() local 221 …bytes_per_cluster = media_ptr -> fx_media_sectors_per_cluster * media_ptr -> fx_media_bytes_per_s… in _fx_media_check() 371 …media_ptr -> fx_media_root_directory_entries = (valid_clusters * bytes_per_cluster) / FX_DIR_ENTR… in _fx_media_check() 490 if (dir_entry_ptr -> fx_dir_entry_file_size > (valid_clusters * bytes_per_cluster)) in _fx_media_check() 494 dir_entry_ptr -> fx_dir_entry_file_size = valid_clusters * bytes_per_cluster; in _fx_media_check() 603 …ent_directory_index].current_total_entries = (valid_clusters * bytes_per_cluster) / FX_DIR_EN… in _fx_media_check() 623 …if (((valid_clusters * bytes_per_cluster) - dir_entry_ptr -> fx_dir_entry_file_size) > bytes_per_c… in _fx_media_check()
|
D | fx_file_write.c | 101 ULONG bytes_per_cluster; in _fx_file_write() local 207 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_file_write() 211 if (bytes_per_cluster == 0) in _fx_file_write() 267 …INT)((file_ptr -> fx_file_current_file_offset + size + bytes_per_cluster - 1) / bytes_per_cluster - in _fx_file_write() 314 … bytes_remaining -= file_ptr -> fx_file_current_relative_cluster * bytes_per_cluster; in _fx_file_write() 327 bytes_remaining -= bytes_per_cluster; in _fx_file_write() 375 if (bytes_remaining <= bytes_per_cluster) in _fx_file_write() 392 if (bytes_remaining <= bytes_per_cluster) in _fx_file_write() 398 bytes_remaining -= bytes_per_cluster; in _fx_file_write() 459 clusters = (UINT)((size + (bytes_per_cluster - 1) - in _fx_file_write() [all …]
|
D | fx_unicode_directory_entry_read.c | 92 ULONG bytes_per_cluster; in _fx_unicode_directory_entry_read() local 115 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_unicode_directory_entry_read() 119 if (bytes_per_cluster == 0) in _fx_unicode_directory_entry_read() 127 relative_cluster = (UINT)(byte_offset / bytes_per_cluster); in _fx_unicode_directory_entry_read() 130 byte_offset = byte_offset % bytes_per_cluster; in _fx_unicode_directory_entry_read()
|
D | fx_directory_entry_read.c | 94 ULONG bytes_per_cluster; in _fx_directory_entry_read() local 122 bytes_per_cluster = ((ULONG)media_ptr -> fx_media_bytes_per_sector) * in _fx_directory_entry_read() 126 if (bytes_per_cluster == 0) in _fx_directory_entry_read() 134 relative_cluster = (UINT)(byte_offset / bytes_per_cluster); in _fx_directory_entry_read() 137 byte_offset = byte_offset % bytes_per_cluster; in _fx_directory_entry_read()
|
/FileX-v6.2.1/test/regression_test/ |
D | filex_fault_tolerant_enable_test.c | 104 ULONG bytes_per_cluster; in ftest_0_entry() local 259 … bytes_per_cluster = ram_disk.fx_media_bytes_per_sector * ram_disk.fx_media_sectors_per_cluster; in ftest_0_entry() 260 … clusters = (FX_FAULT_TOLERANT_MINIMAL_BUFFER_SIZE + bytes_per_cluster - 1) / bytes_per_cluster; in ftest_0_entry()
|
D | filex_fault_tolerant_enable_1_test.c | 110 ULONG bytes_per_cluster; in ftest_0_entry() local 426 bytes_per_cluster = ram_disk.fx_media_bytes_per_sector * ram_disk.fx_media_sectors_per_cluster; in ftest_0_entry() 427 clusters = (FX_FAULT_TOLERANT_MINIMAL_BUFFER_SIZE + bytes_per_cluster - 1) / bytes_per_cluster; in ftest_0_entry()
|
D | filex_fault_tolerant_enable_2_test.c | 108 ULONG bytes_per_cluster; in ftest_0_entry() local 329 bytes_per_cluster = ram_disk.fx_media_bytes_per_sector * ram_disk.fx_media_sectors_per_cluster; in ftest_0_entry() 330 clusters = (FX_FAULT_TOLERANT_MINIMAL_BUFFER_SIZE + bytes_per_cluster - 1) / bytes_per_cluster; in ftest_0_entry()
|