Lines Matching refs:gc_ate
583 struct nvs_ate close_ate, gc_ate, wlk_ate; in nvs_gc() local
620 rc = nvs_prev_ate(fs, &gc_addr, &gc_ate); in nvs_gc()
625 if (!nvs_ate_valid(fs, &gc_ate)) { in nvs_gc()
630 wlk_addr = fs->lookup_cache[nvs_lookup_cache_pos(gc_ate.id)]; in nvs_gc()
649 if ((wlk_ate.id == gc_ate.id) && in nvs_gc()
658 if ((wlk_prev_addr == gc_prev_addr) && gc_ate.len) { in nvs_gc()
660 LOG_DBG("Moving %d, len %d", gc_ate.id, gc_ate.len); in nvs_gc()
663 data_addr += gc_ate.offset; in nvs_gc()
665 gc_ate.offset = (uint16_t)(fs->data_wra & ADDR_OFFS_MASK); in nvs_gc()
666 nvs_ate_crc8_update(&gc_ate); in nvs_gc()
668 rc = nvs_flash_block_move(fs, data_addr, gc_ate.len); in nvs_gc()
673 rc = nvs_flash_ate_wrt(fs, &gc_ate); in nvs_gc()