Home
last modified time | relevance | path

Searched refs:start_cluster (Results 1 – 3 of 3) sorted by relevance

/FileX-v6.4.1/common/src/
Dfx_fault_tolerant_enable.c95 ULONG start_cluster; local
297start_cluster = _fx_utility_32_unsigned_read((UCHAR *)memory_buffer + FX_FAULT_TOLERANT_BOOT_INDEX…
298 if (start_cluster != 0)
302 … if ((start_cluster >= FX_FAT_ENTRY_START) && (start_cluster < media_ptr -> fx_media_fat_reserved))
310 status = _fx_utility_FAT_entry_read(media_ptr, start_cluster + i, &FAT_value);
325 if (FAT_value != (start_cluster + i + 1))
329 start_cluster = 0;
337 start_cluster = 0;
343 if (start_cluster)
347 media_ptr -> fx_media_fault_tolerant_start_cluster = start_cluster;
[all …]
/FileX-v6.4.1/test/regression_test/
Dfilex_fault_tolerant_enable_test.c102 ULONG start_cluster; in ftest_0_entry() local
189 start_cluster = _fx_utility_32_unsigned_read(buffer + FX_FAULT_TOLERANT_BOOT_INDEX); in ftest_0_entry()
190 return_if_fail( start_cluster == 0); in ftest_0_entry()
253 start_cluster = _fx_utility_32_unsigned_read(buffer + FX_FAULT_TOLERANT_BOOT_INDEX); in ftest_0_entry()
254 return_if_fail( start_cluster != 0); in ftest_0_entry()
264 status = _fx_utility_FAT_entry_read(&ram_disk, start_cluster + j, &value); in ftest_0_entry()
269 return_if_fail (value == (start_cluster + j + 1)); in ftest_0_entry()
278 …start_sector = (start_cluster - FX_FAT_ENTRY_START) * ram_disk.fx_media_sectors_per_cluster + ram_… in ftest_0_entry()
Dfx_ram_driver_test.c662 ULONG start_cluster; in _filex_fault_tolerant_log_check() local
694 start_cluster = _fx_utility_32_unsigned_read(buffer + FX_FAULT_TOLERANT_BOOT_INDEX); in _filex_fault_tolerant_log_check()
697 if (start_cluster == 0) in _filex_fault_tolerant_log_check()
717 if ((start_cluster < FX_FAT_ENTRY_START) || (start_cluster >= fat_reserved)) in _filex_fault_tolerant_log_check()
727 …start_sector = (start_cluster - FX_FAT_ENTRY_START) * media_ptr -> fx_media_sectors_per_cluster + … in _filex_fault_tolerant_log_check()