/Zephyr-Core-3.5.0/include/zephyr/mgmt/mcumgr/grp/fs_mgmt/ |
D | fs_mgmt_hash_checksum.h | 20 * @brief Function that gets called to generate a hash or checksum. 23 * @param output Output buffer for hash/checksum 25 * @param len Maximum length of data to perform hash/checksum on 33 * @brief A collection of handlers for an entire hash/checksum group. 48 /** Hash/checksum function pointer. */ 53 * @brief Function that gets called with hash/checksum details 55 * @param group Details about a supported hash/checksum 62 * @brief Registers a full hash/checksum group. 69 * @brief Unregisters a full hash/checksum group. 76 * @brief Finds a registered hash/checksum handler. [all …]
|
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/grp/fs_mgmt/ |
D | Kconfig | 102 bool "Checksum/hash MCUmgr functions" 104 Enable this to support the hash/checksum MCUmgr functionality, 105 individual checksum and hash types need to be enabled below. 107 from the file being read and generate the output hash/checksum. 112 int "Checksum calculation buffer size" 116 Chunk size of buffer to use when calculating file checksum or hash 120 bool "IEEE CRC32 checksum support" 123 Enable IEEE CRC32 checksum support for MCUmgr. 132 bool "Supported hash/checksum command" 135 Enable the supported hash/checksum command which will return details on [all …]
|
/Zephyr-Core-3.5.0/dts/bindings/retention/ |
D | zephyr,retention.yaml | 6 64-byte area with 2-byte prefix and 1-byte checksum with 61 usable bytes 26 checksum = <1>; 47 prefix and checksum (if enabled). 59 checksum: 61 An optional data verification checksum, which indicates that the data is 64 16-bit CRC, 4 for 32-bit CRC). Default is to not use a checksum.
|
/Zephyr-Core-3.5.0/scripts/coredump/gdbstubs/ |
D | gdbstub.py | 38 checksum = 0 52 checksum += ord(ch) 55 # Get checksum (2-bytes) 61 if (checksum % 256) == in_chksum: 69 logger.debug(f"NACK (checksum {in_chksum} != {checksum}") 79 checksum = 0 81 checksum += d 85 checksum = checksum % 256 86 pkt += format(checksum, "02X").encode()
|
/Zephyr-Core-3.5.0/subsys/retention/ |
D | retention.c | 24 #define INST_HAS_CHECKSUM(n) DT_INST_PROP(n, checksum) || 177 /* If neither the header or checksum are enabled, return a not supported error */ in retention_is_valid() 219 /* Check the checksum validity, for this all the data must be read out */ in retention_is_valid() 220 uint32_t checksum = 0; in retention_is_valid() local 224 rc = retention_checksum(dev, &checksum); in retention_is_valid() 252 if (checksum != expected_checksum) { in retention_is_valid() 329 /* Generating a checksum requires reading out all the data in the region */ in retention_write() 330 uint32_t checksum = 0; in retention_write() local 332 rc = retention_checksum(dev, &checksum); in retention_write() 339 uint8_t output_checksum = (uint8_t)checksum; in retention_write() [all …]
|
/Zephyr-Core-3.5.0/drivers/sensor/si7055/ |
D | Kconfig | 17 bool "SI7055 Checksum On Measurement" 19 Validates the additional checksum byte for temperature measurements.
|
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/grp/fs_mgmt/include/mgmt/mcumgr/grp/fs_mgmt/ |
D | fs_mgmt_hash_checksum_crc32.h | 17 * @brief Registers the IEEE CRC32 checksum mcumgr handler. 22 * @brief Un-registers the IEEE CRC32 checksum mcumgr handler.
|
/Zephyr-Core-3.5.0/drivers/sensor/hm330x/ |
D | hm330x.c | 41 uint8_t checksum = 0; in hm330x_sample_fetch() local 55 checksum += buf[i]; in hm330x_sample_fetch() 57 if (checksum != buf[HM330X_FRAME_LEN - 1]) { in hm330x_sample_fetch() 58 LOG_ERR("Checksum error"); in hm330x_sample_fetch()
|
/Zephyr-Core-3.5.0/doc/services/retention/ |
D | index.rst | 19 checksum (1, 2, or 4-bytes in size) of the stored data can be appended to the 24 accessed or updated independently. The prefix and checksum can be set 60 * checksum, this means that the usable 71 /* This uses a 1-byte checksum */ 72 checksum = <1>; 83 * includes the prefix and checksum, 95 * checksum 120 When the write function is called, the magic header and checksum (if enabled)
|
/Zephyr-Core-3.5.0/doc/services/ |
D | misc.rst | 8 .. doxygengroup:: checksum 11 Checksum APIs
|
/Zephyr-Core-3.5.0/tests/subsys/mgmt/ec_host_cmd/simulator/src/ |
D | main.c | 68 host_to_dut->header.checksum = 0; in update_host_to_dut_checksum() 70 uint8_t checksum = 0; in update_host_to_dut_checksum() local 75 checksum += host_to_dut_buffer[i]; in update_host_to_dut_checksum() 77 host_to_dut->header.checksum = (uint8_t)(-checksum); in update_host_to_dut_checksum() 85 expected_dut_to_host->header.checksum = 0; in update_dut_to_host_checksum() 87 uint8_t checksum = 0; in update_dut_to_host_checksum() local 90 checksum += expected_dut_to_host_buffer[i]; in update_dut_to_host_checksum() 93 expected_dut_to_host->header.checksum = (uint8_t)(-checksum); in update_dut_to_host_checksum() 274 /* Set an invalid checksum */ in ZTEST() 275 host_to_dut->header.checksum = 42; in ZTEST()
|
/Zephyr-Core-3.5.0/include/zephyr/sys/ |
D | crc.h | 34 * @defgroup checksum Checksum 40 * @ingroup checksum 132 * @brief Compute the checksum of a buffer with polynomial 0x1021, reflecting 165 * @brief Compute the checksum of a buffer with polynomial 0x1021, no 218 * @brief Generate IEEE conform CRC32 checksum. 229 * @brief Update an IEEE conforming CRC32 checksum. 231 * @param crc CRC32 checksum that needs to be updated. 241 * @brief Calculate CRC32C (Castagnoli) checksum. 243 * @param crc CRC32C checksum that needs to be updated. 269 * @brief Compute the CRC-7 checksum of a buffer. [all …]
|
/Zephyr-Core-3.5.0/drivers/sensor/a01nyub/ |
D | a01nyub.c | 69 uint8_t checksum; in a01nyub_poll_data() local 71 checksum = a01nyub_checksum(data->rd_data); in a01nyub_poll_data() 72 if (checksum != data->rd_data[A01NYUB_CHECKSUM_IDX]) { in a01nyub_poll_data() 73 LOG_DBG("Checksum mismatch: calculated 0x%x != data checksum 0x%x", in a01nyub_poll_data() 74 checksum, in a01nyub_poll_data()
|
/Zephyr-Core-3.5.0/subsys/debug/ |
D | gdbstub.c | 183 uint8_t checksum = 0; in gdb_send_packet() local 188 /* Send packet data and calculate checksum */ in gdb_send_packet() 190 checksum += *data; in gdb_send_packet() 194 /* Send the checksum */ in gdb_send_packet() 197 if (gdb_bin2hex(&checksum, 1, buf, sizeof(buf)) == 0) { in gdb_send_packet() 216 * @retval -1 Checksum error 222 uint8_t expected_checksum, checksum = 0; in gdb_get_packet() local 226 checksum = 0; in gdb_get_packet() 247 checksum += ch; in gdb_get_packet() 253 /* Get checksum now */ in gdb_get_packet() [all …]
|
/Zephyr-Core-3.5.0/drivers/sensor/bq274xx/ |
D | bq274xx.c | 170 uint8_t checksum = 0; in bq274xx_write_block() local 186 checksum += block[i]; in bq274xx_write_block() 188 checksum = 0xff - checksum; in bq274xx_write_block() 190 ret = i2c_reg_write_byte_dt(&config->i2c, BQ274XX_EXT_CHECKSUM, checksum); in bq274xx_write_block() 192 LOG_ERR("Failed to update block checksum"); in bq274xx_write_block() 267 uint8_t val, checksum; in bq27427_ccgain_quirk() local 295 ret = i2c_reg_read_byte_dt(&config->i2c, BQ274XX_EXT_CHECKSUM, &checksum); in bq27427_ccgain_quirk() 297 LOG_ERR("Failed to read block checksum"); in bq27427_ccgain_quirk() 301 /* Flip the sign bit on both value and checksum. */ in bq27427_ccgain_quirk() 303 checksum ^= BQ27427_CC_GAIN_SIGN_BIT; in bq27427_ccgain_quirk() [all …]
|
/Zephyr-Core-3.5.0/doc/services/storage/fcb/ |
D | fcb.rst | 20 the entry, and checksum over the entry contents. 36 don't have a valid checksum. 49 entry by calculating the checksum.
|
/Zephyr-Core-3.5.0/cmake/modules/ |
D | kconfig.cmake | 226 # Sorting the variable names will make checksum calculation more stable. 291 # Calculate a checksum of merge_config_files to determine if we need 295 file(MD5 ${f} checksum) 296 set(merge_config_files_checksum "${merge_config_files_checksum}${checksum}") 299 # Create a new .config if it does not exists, or if the checksum of 301 set(merge_config_files_checksum_file ${PROJECT_BINARY_DIR}/.cmake.dotconfig.checksum) 303 # Check if the checksum file exists too before trying to open it, though it 306 # Read out what the checksum was previously 315 # Checksum is the same as before 359 # Write the new configuration fragment checksum. Only do this if kconfig.py
|
/Zephyr-Core-3.5.0/subsys/mgmt/ec_host_cmd/ |
D | ec_host_cmd_handler.c | 76 uint8_t checksum = 0; in cal_checksum() local 79 checksum += buffer[i]; in cal_checksum() 81 return (uint8_t)(-checksum); in cal_checksum() 162 tx_header->checksum = 0; in send_status_response() 163 tx_header->checksum = cal_checksum((uint8_t *)tx_header, TX_HEADER_SIZE); in send_status_response() 195 /* Validate checksum */ in verify_rx() 237 /* Calculate checksum */ in prepare_response() 238 tx_header->checksum = 0; in prepare_response() 239 tx_header->checksum = cal_checksum(tx->buf, tx_valid_data_size); in prepare_response()
|
/Zephyr-Core-3.5.0/subsys/debug/coredump/ |
D | coredump_backend_flash_partition.c | 62 /* Checksum of data so far */ 63 uint16_t checksum; member 92 /* Checksum */ 93 uint16_t checksum; member 206 * @brief Callback to calculate checksum. 220 backend_ctx.checksum += buf[i]; in cb_calc_buf_checksum() 263 backend_ctx.checksum = 0; in process_stored_dump() 269 ret = (backend_ctx.checksum == hdr.checksum) ? 1 : 0; in process_stored_dump() 414 backend_ctx.checksum = 0; in coredump_flash_backend_start() 468 hdr.checksum = backend_ctx.checksum; in coredump_flash_backend_end() [all …]
|
/Zephyr-Core-3.5.0/drivers/sensor/mhz19b/ |
D | mhz19b.c | 21 /* Table of supported MH-Z19B commands with precomputed checksum */ 120 uint8_t checksum; in mhz19b_poll_data() local 128 checksum = mhz19b_checksum(data->rd_data); in mhz19b_poll_data() 129 if (checksum != data->rd_data[MHZ19B_CHECKSUM_IDX]) { in mhz19b_poll_data() 130 LOG_DBG("Checksum mismatch: 0x%x != 0x%x", checksum, in mhz19b_poll_data()
|
/Zephyr-Core-3.5.0/subsys/testsuite/coverage/ |
D | coverage.h | 96 unsigned int cfg_checksum; /* function cfg checksum */ 110 unsigned int checksum; /* unique object checksum */ member
|
/Zephyr-Core-3.5.0/doc/services/device_mgmt/smp_groups/ |
D | smp_group_8.rst | 21 | ``2`` | File hash/checksum | 23 | ``3`` | Supported file hash/checksum types | 398 File hash/checksum 401 Command allows to generate a hash/checksum of an existing file at a specified 404 for generation of the output hash/checksum. 406 the base functionality, supported hash/checksum are opt-in with 410 File hash/checksum request argument 413 File hash/checksum request header: 443 | "type" | type of hash/checksum to perform | 447 | "off" | offset to start hash/checksum calculation at | [all …]
|
/Zephyr-Core-3.5.0/boards/arm/lpcxpresso11u68/ |
D | CMakeLists.txt | 4 # Insert checksum (verified by the bootloader) into the zephyr.bin
|
/Zephyr-Core-3.5.0/include/zephyr/mgmt/ec_host_cmd/ |
D | ec_host_cmd.h | 41 /** Checksum did not match. */ 214 * Checksum of response and data; sum of all bytes including checksum. 217 uint8_t checksum; member 242 * Checksum of response and data; sum of all bytes including checksum. 245 uint8_t checksum; member
|
/Zephyr-Core-3.5.0/boards/arm/faze/ |
D | CMakeLists.txt | 8 # Insert checksum (verified by the bootloader) into the zephyr.bin
|