Searched refs:checksum (Results 1 – 10 of 10) sorted by relevance
/FileX-v6.2.1/common/src/ |
D | fx_fault_tolerant_calculate_checksum.c | 78 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()
|
D | fx_fault_tolerant_transaction_end.c | 99 USHORT checksum; in _fx_fault_tolerant_transaction_end() local 133 …checksum = _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() 147 …checksum = _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()
|
D | fx_fault_tolerant_set_FAT_chain.c | 88 USHORT checksum; in _fx_fault_tolerant_set_FAT_chain() local 114 …checksum = _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()
|
D | fx_fault_tolerant_enable.c | 98 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) 399 …checksum = _fx_fault_tolerant_calculate_checksum((media_ptr -> fx_media_fault_tolerant_memory_buff… 402 if (checksum == 0)
|
D | fx_fault_tolerant_reset_log_file.c | 94 USHORT checksum; in _fx_fault_tolerant_reset_log_file() local 114 …checksum = _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()
|
D | fx_fault_tolerant_cleanup_FAT_chain.c | 185 USHORT checksum; in _fx_fault_tolerant_cleanup_FAT_chain() local 296 …checksum = _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()
|
D | fx_directory_entry_write.c | 90 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() 519 …checksum = (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/ |
D | filex_fault_tolerant_enable_test.c | 109 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() 300 …checksum = _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()
|
D | fx_ram_driver_test.c | 666 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() 772 …checksum = _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() 786 …checksum = _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()
|
D | filex_fault_tolerant_corrupted_log_file_test.c | 5 When a valid log file with correct ID and checksum is detected by the _fx_fault_tolerant_enable fun…
|