Home
last modified time | relevance | path

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

123

/Zephyr-latest/subsys/retention/
Dretention.c24 #define INST_HAS_CHECKSUM(n) DT_INST_PROP(n, checksum) ||
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()
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()
345 uint16_t output_checksum = (uint16_t)checksum; in retention_write()
353 (void *)&checksum, sizeof(checksum)); in retention_write()
411 .checksum_size = DT_INST_PROP(inst, checksum), \
[all …]
/Zephyr-latest/drivers/gnss/
Dgnss_nmea0183.c113 uint8_t checksum = 0; in gnss_nmea0183_checksum() local
120 checksum = checksum ^ str[i]; in gnss_nmea0183_checksum()
123 return checksum; in gnss_nmea0183_checksum()
129 uint8_t checksum; in gnss_nmea0183_snprintk() local
156 checksum = gnss_nmea0183_checksum(&str[1]); in gnss_nmea0183_snprintk()
157 pos = snprintk(&str[pos], size - pos, "*%02X", checksum); in gnss_nmea0183_snprintk()
250 uint8_t checksum = 0; in gnss_nmea0183_validate_message() local
267 checksum ^= argv[0][u]; in gnss_nmea0183_validate_message()
269 checksum ^= ','; in gnss_nmea0183_validate_message()
275 checksum ^= argv[i][u]; in gnss_nmea0183_validate_message()
[all …]
/Zephyr-latest/drivers/sensor/fcx_mldx5/
Dfcx_mldx5.c108 uint8_t checksum; in fcx_mldx5_calculate_checksum() local
115 checksum = buf[0]; in fcx_mldx5_calculate_checksum()
117 checksum ^= buf[i]; in fcx_mldx5_calculate_checksum()
120 return checksum; in fcx_mldx5_calculate_checksum()
152 uint8_t checksum; in fcx_mldx5_frame_verify() local
174 checksum = fcx_mldx5_calculate_checksum(command_received, in fcx_mldx5_frame_verify()
178 if (checksum != checksum_received) { in fcx_mldx5_frame_verify()
179 LOG_ERR("Expected checksum 0x%02x not 0x%02x", checksum, checksum_received); in fcx_mldx5_frame_verify()
233 uint8_t checksum; in fcx_mldx5_uart_send() local
242 checksum = fcx_mldx5_calculate_checksum(&buf[FCX_MLDX5_CMD_INDEX], in fcx_mldx5_uart_send()
[all …]
/Zephyr-latest/tests/subsys/mgmt/ec_host_cmd/simulator/src/
Dmain.c68 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()
275 host_to_dut->header.checksum = 42; in ZTEST()
/Zephyr-latest/doc/services/device_mgmt/smp_groups/
Dsmp_group_8.rst21 | ``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-latest/drivers/sensor/seeed/hm330x/
Dhm330x.c41 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()
/Zephyr-latest/drivers/ethernet/dwc_xgmac/
DKconfig53 bool "RX checksum offload"
56 Enable receive checksum offload for TCP/UDP/IP packets
59 bool "TX checksum offload"
62 Enable transmit checksum offload for TCP/UDP/IP packets
/Zephyr-latest/scripts/coredump/gdbstubs/
Dgdbstub.py42 checksum = 0
56 checksum += ord(ch)
65 if (checksum % 256) == in_chksum:
83 checksum = 0
85 checksum += d
89 checksum = checksum % 256
90 pkt += format(checksum, "02X").encode()
/Zephyr-latest/drivers/sensor/a01nyub/
Da01nyub.c69 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()
74 checksum, in a01nyub_poll_data()
/Zephyr-latest/subsys/debug/coredump/
Dcoredump_backend_flash_partition.c73 uint16_t checksum; member
103 uint16_t checksum; member
230 backend_ctx.checksum += buf[i]; in cb_calc_buf_checksum()
273 backend_ctx.checksum = 0; in process_stored_dump()
279 ret = (backend_ctx.checksum == hdr.checksum) ? 1 : 0; in process_stored_dump()
423 backend_ctx.checksum = 0; in coredump_flash_backend_start()
477 hdr.checksum = backend_ctx.checksum; in coredump_flash_backend_end()
532 backend_ctx.checksum += tmp_buf[i]; in coredump_flash_backend_buffer_output()
/Zephyr-latest/subsys/mgmt/mcumgr/grp/fs_mgmt/
DKconfig104 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.
116 Chunk size of buffer to use when calculating file checksum or hash
120 bool "IEEE CRC32 checksum support"
124 Enable IEEE CRC32 checksum support for MCUmgr.
134 bool "Supported hash/checksum command"
137 Enable the supported hash/checksum command which will return details on
138 supported hash and checksum types that can be used.
145 This is used for defining CBOR map holding supported hash/checksum info.
/Zephyr-latest/subsys/mgmt/ec_host_cmd/
Dec_host_cmd_handler.c88 uint8_t checksum = 0; in cal_checksum() local
91 checksum += buffer[i]; in cal_checksum()
93 return (uint8_t)(-checksum); in cal_checksum()
204 tx_header->checksum = 0; in send_status_response()
205 tx_header->checksum = cal_checksum((uint8_t *)tx_header, TX_HEADER_SIZE); in send_status_response()
280 tx_header->checksum = 0; in prepare_response()
281 tx_header->checksum = cal_checksum(tx->buf, tx_valid_data_size); in prepare_response()
/Zephyr-latest/subsys/debug/gdbstub/
Dgdbstub.c193 uint8_t checksum = 0; in gdb_send_packet() local
200 checksum += *data; in gdb_send_packet()
207 if (gdb_bin2hex(&checksum, 1, buf, sizeof(buf)) == 0) { in gdb_send_packet()
232 uint8_t expected_checksum, checksum = 0; in gdb_get_packet() local
236 checksum = 0; in gdb_get_packet()
257 checksum += ch; in gdb_get_packet()
272 if (checksum != expected_checksum) { in gdb_get_packet()
274 checksum, expected_checksum); in gdb_get_packet()
/Zephyr-latest/drivers/sensor/ti/bq274xx/
Dbq274xx.c173 uint8_t checksum = 0; in bq274xx_write_block() local
189 checksum += block[i]; in bq274xx_write_block()
191 checksum = 0xff - checksum; in bq274xx_write_block()
193 ret = i2c_reg_write_byte_dt(&config->i2c, BQ274XX_EXT_CHECKSUM, checksum); in bq274xx_write_block()
270 uint8_t val, checksum; in bq27427_ccgain_quirk() local
298 ret = i2c_reg_read_byte_dt(&config->i2c, BQ274XX_EXT_CHECKSUM, &checksum); in bq27427_ccgain_quirk()
306 checksum ^= BQ27427_CC_GAIN_SIGN_BIT; in bq27427_ccgain_quirk()
308 LOG_DBG("bq27427: val=%02x checksum=%02x", val, checksum); in bq27427_ccgain_quirk()
316 ret = i2c_reg_write_byte_dt(&config->i2c, BQ274XX_EXT_CHECKSUM, checksum); in bq27427_ccgain_quirk()
/Zephyr-latest/boards/nxp/lpcxpresso11u68/
DCMakeLists.txt4 # Insert checksum (verified by the bootloader) into the zephyr.bin
/Zephyr-latest/tests/subsys/mgmt/ec_host_cmd/uart/src/
Dmain.c26 uint8_t checksum = 0; in cal_checksum() local
29 checksum += buffer[i]; in cal_checksum()
31 return (uint8_t)(-checksum); in cal_checksum()
92 cmd->checksum = cal_checksum((uint8_t *)cmd, CMD_HEADER_SIZE + sizeof(*cmd_data)); in prepare_hello_cmd()
119 rsp->checksum = cal_checksum(tx_buf, sizeof(tx_buf)); in test_hello()
/Zephyr-latest/doc/services/retention/
Dindex.rst19 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-latest/boards/seagate/faze/
DCMakeLists.txt8 # Insert checksum (verified by the bootloader) into the zephyr.bin
/Zephyr-latest/include/zephyr/mgmt/ec_host_cmd/
Dec_host_cmd.h228 uint8_t checksum; member
256 uint8_t checksum; member
/Zephyr-latest/drivers/sensor/renesas/hs400x/
DKconfig19 Verify the checksum byte from measurements
/Zephyr-latest/drivers/sensor/mhz19b/
Dmhz19b.c120 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-latest/drivers/sensor/silabs/si7055/
DKconfig19 Validates the additional checksum byte for temperature measurements.
/Zephyr-latest/soc/nxp/s32/s32ze/
DKconfig.defconfig26 # NETC drops TCP/UDP packets with invalid checksum
/Zephyr-latest/subsys/testsuite/coverage/
Dcoverage.h112 unsigned int checksum; /* unique object checksum */ member
/Zephyr-latest/drivers/sensor/tdk/icp10125/
DKconfig21 Verify the CRC checksum that appended to the measurement data.

123