Lines Matching refs:checksum_size
56 uint8_t checksum_size; member
89 if (config->checksum_size == CHECKSUM_CRC8 || in retention_checksum()
90 config->checksum_size == CHECKSUM_CRC16 || in retention_checksum()
91 config->checksum_size == CHECKSUM_CRC32) { in retention_checksum()
93 size_t end = config->offset + config->size - config->checksum_size; in retention_checksum()
107 if (config->checksum_size == CHECKSUM_CRC8) { in retention_checksum()
110 } else if (config->checksum_size == CHECKSUM_CRC16) { in retention_checksum()
113 } else if (config->checksum_size == CHECKSUM_CRC32) { in retention_checksum()
178 if (config->prefix_len == 0 && config->checksum_size == 0) { in retention_is_valid()
218 if (config->checksum_size != 0) { in retention_is_valid()
222 ssize_t data_size = config->size - config->checksum_size; in retention_is_valid()
230 if (config->checksum_size == CHECKSUM_CRC8) { in retention_is_valid()
236 } else if (config->checksum_size == CHECKSUM_CRC16) { in retention_is_valid()
242 } else if (config->checksum_size == CHECKSUM_CRC32) { in retention_is_valid()
328 if (config->checksum_size != 0) { in retention_write()
338 if (config->checksum_size == CHECKSUM_CRC8) { in retention_write()
342 (config->offset + config->size - config->checksum_size), in retention_write()
344 } else if (config->checksum_size == CHECKSUM_CRC16) { in retention_write()
348 (config->offset + config->size - config->checksum_size), in retention_write()
350 } else if (config->checksum_size == CHECKSUM_CRC32) { in retention_write()
352 (config->offset + config->size - config->checksum_size), in retention_write()
411 .checksum_size = DT_INST_PROP(inst, checksum), \