Home
last modified time | relevance | path

Searched refs:checksum (Results 1 – 10 of 10) sorted by relevance

/FileX-v6.2.1/common/src/
Dfx_fault_tolerant_calculate_checksum.c78 ULONG checksum = 0; in _fx_fault_tolerant_calculate_checksum() local
88 checksum += (long_value >> 16) + (long_value & 0xFFFF); in _fx_fault_tolerant_calculate_checksum()
96 checksum = (checksum & 0xFFFF) + (checksum >> 16); in _fx_fault_tolerant_calculate_checksum()
97 checksum = (checksum & 0xFFFF) + (checksum >> 16); in _fx_fault_tolerant_calculate_checksum()
99 return((USHORT)((~checksum) & 0xFFFF)); in _fx_fault_tolerant_calculate_checksum()
Dfx_fault_tolerant_transaction_end.c99 USHORT checksum; in _fx_fault_tolerant_transaction_end() local
133checksum = _fx_fault_tolerant_calculate_checksum((media_ptr -> fx_media_fault_tolerant_memory_buff… in _fx_fault_tolerant_transaction_end()
139 …ility_16_unsigned_write((UCHAR *)&log_content -> fx_fault_tolerant_log_content_checksum, checksum); in _fx_fault_tolerant_transaction_end()
147checksum = _fx_fault_tolerant_calculate_checksum((UCHAR *)log_header, FX_FAULT_TOLERANT_LOG_HEADER… in _fx_fault_tolerant_transaction_end()
150 …utility_16_unsigned_write((UCHAR *)&log_header -> fx_fault_tolerant_log_header_checksum, checksum); in _fx_fault_tolerant_transaction_end()
Dfx_fault_tolerant_set_FAT_chain.c88 USHORT checksum; in _fx_fault_tolerant_set_FAT_chain() local
114checksum = _fx_fault_tolerant_calculate_checksum((UCHAR *)FAT_chain, FX_FAULT_TOLERANT_FAT_CHAIN_S… in _fx_fault_tolerant_set_FAT_chain()
115 …_utility_16_unsigned_write((UCHAR *)&FAT_chain -> fx_fault_tolerant_FAT_chain_checksumm, checksum); in _fx_fault_tolerant_set_FAT_chain()
Dfx_fault_tolerant_enable.c98 ULONG checksum; local
373 checksum = _fx_fault_tolerant_calculate_checksum((UCHAR *)log_header,
376 if (checksum == 0)
386 checksum = _fx_fault_tolerant_calculate_checksum((UCHAR *)FAT_chain,
389 if (checksum == 0)
399checksum = _fx_fault_tolerant_calculate_checksum((media_ptr -> fx_media_fault_tolerant_memory_buff…
402 if (checksum == 0)
Dfx_fault_tolerant_reset_log_file.c94 USHORT checksum; in _fx_fault_tolerant_reset_log_file() local
114checksum = _fx_fault_tolerant_calculate_checksum((UCHAR *)log_header, FX_FAULT_TOLERANT_LOG_HEADER… in _fx_fault_tolerant_reset_log_file()
115 …utility_16_unsigned_write((UCHAR *)&log_header -> fx_fault_tolerant_log_header_checksum, checksum); in _fx_fault_tolerant_reset_log_file()
Dfx_fault_tolerant_cleanup_FAT_chain.c185 USHORT checksum; in _fx_fault_tolerant_cleanup_FAT_chain() local
296checksum = _fx_fault_tolerant_calculate_checksum((UCHAR *)FAT_chain, FX_FAULT_TOLERANT_FAT_CHAIN_S… in _fx_fault_tolerant_cleanup_FAT_chain()
297 …_utility_16_unsigned_write((UCHAR *)&FAT_chain -> fx_fault_tolerant_FAT_chain_checksumm, checksum); in _fx_fault_tolerant_cleanup_FAT_chain()
Dfx_directory_entry_write.c90 UCHAR checksum, eof_marker; in _fx_directory_entry_write() local
515 for (i = checksum = 0; i < FX_DIR_NAME_SIZE + FX_DIR_EXT_SIZE; i++) in _fx_directory_entry_write()
519checksum = (UCHAR)((UCHAR)(((checksum & 1) << 7) | ((checksum & (UCHAR)0xfe) >> 1)) + shortname[i]… in _fx_directory_entry_write()
542 work_ptr[13] = checksum; in _fx_directory_entry_write()
/FileX-v6.2.1/test/regression_test/
Dfilex_fault_tolerant_enable_test.c109 ULONG checksum; in ftest_0_entry() local
296 checksum = _fx_fault_tolerant_calculate_checksum(buffer, FX_FAULT_TOLERANT_LOG_HEADER_SIZE); in ftest_0_entry()
297 return_if_fail( checksum == 0); in ftest_0_entry()
300checksum = _fx_fault_tolerant_calculate_checksum(buffer + FX_FAULT_TOLERANT_FAT_CHAIN_OFFSET, FX_F… in ftest_0_entry()
301 return_if_fail( checksum == 0); in ftest_0_entry()
Dfx_ram_driver_test.c666 ULONG checksum; in _filex_fault_tolerant_log_check() local
759 checksum = _fx_fault_tolerant_calculate_checksum(buffer, FX_FAULT_TOLERANT_LOG_HEADER_SIZE); in _filex_fault_tolerant_log_check()
762 if (checksum != 0) in _filex_fault_tolerant_log_check()
772checksum = _fx_fault_tolerant_calculate_checksum(buffer + FX_FAULT_TOLERANT_FAT_CHAIN_OFFSET, FX_F… in _filex_fault_tolerant_log_check()
778 if ((checksum == 0) && (flag != 0)) in _filex_fault_tolerant_log_check()
786checksum = _fx_fault_tolerant_calculate_checksum(buffer + FX_FAULT_TOLERANT_LOG_CONTENT_OFFSET, si… in _filex_fault_tolerant_log_check()
789 …if ((checksum == 0) && (size > FX_FAULT_TOLERANT_LOG_HEADER_SIZE + FX_FAULT_TOLERANT_FAT_CHAIN_SIZ… in _filex_fault_tolerant_log_check()
Dfilex_fault_tolerant_corrupted_log_file_test.c5 When a valid log file with correct ID and checksum is detected by the _fx_fault_tolerant_enable fun…