Lines Matching refs:state_copy
131 wl_state_t *state_copy = &sa_copy; in init() local
132 result = this->flash_drv->read(this->addr_state2, state_copy, sizeof(wl_state_t)); in init()
138 uint32_t crc2 = crc32::crc32_le(WL_CFG_CRC_CONST, (uint8_t *)state_copy, check_size); in init()
150 …, version=%i, read_version=%i", __func__, crc1, crc2, this->state.crc, state_copy->crc, this->cfg.… in init()
151 if ((crc1 == this->state.crc) && (crc2 == state_copy->crc)) { in init()
180 …} else if ((crc1 != this->state.crc) && (crc2 != state_copy->crc)) { // This is just new flash or … in init()
213 result = this->flash_drv->write(this->addr_state1, state_copy, sizeof(wl_state_t)); in init()
334 wl_state_t *state_copy = &sa_copy; in updateV1_V2() local
335 result = this->flash_drv->read(this->addr_state2, state_copy, sizeof(wl_state_t)); in updateV1_V2()
337 uint32_t crc2 = crc32::crc32_le(WL_CFG_CRC_CONST, (uint8_t *)state_copy, check_size); in updateV1_V2()
341 uint32_t v1_crc2 = state_copy->device_id; in updateV1_V2()
345 … == v1_crc2) && (v1_crc1 == v1_crc2) && (this->state.version == 1) && (state_copy->version == 1)) { in updateV1_V2()
360 …)this->state.max_pos, (uint32_t)pos, (uint32_t)this->state.version, (uint32_t)state_copy->version); in updateV1_V2()