Lines Matching full:checksum
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()
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), \
416 DT_INST_PROP(inst, checksum)), \