Searched refs:NVS_DATA_CRC_SIZE (Results 1 – 2 of 2) sorted by relevance
37 #define NVS_DATA_CRC_SIZE 4 /* CRC-32 size in bytes */ macro39 #define NVS_DATA_CRC_SIZE 0
185 uint8_t *data8 = (uint8_t *)data, buf[NVS_BLOCK_SIZE + NVS_DATA_CRC_SIZE], *pbuf; in nvs_flash_data_wrt()464 entry.len += NVS_DATA_CRC_SIZE; in nvs_flash_wrt_entry()1087 if ((len > (fs->sector_size - 4 * ate_size - NVS_DATA_CRC_SIZE)) || in nvs_write()1136 } else if (len + NVS_DATA_CRC_SIZE == wlk_ate.len) { in nvs_write()1139 rc = nvs_flash_block_cmp(fs, rd_addr, data, len + NVS_DATA_CRC_SIZE); in nvs_write()1154 required_space = data_size + ate_size + NVS_DATA_CRC_SIZE; in nvs_write()1259 if (wlk_ate.len < NVS_DATA_CRC_SIZE) { in nvs_read_hist()1266 rc = nvs_flash_rd(fs, rd_addr, data, MIN(len, wlk_ate.len - NVS_DATA_CRC_SIZE)); in nvs_read_hist()1273 if (len >= (wlk_ate.len - NVS_DATA_CRC_SIZE)) { in nvs_read_hist()1274 rd_addr += wlk_ate.len - NVS_DATA_CRC_SIZE; in nvs_read_hist()[all …]