Lines Matching refs:close_ate
473 struct nvs_ate close_ate; in nvs_prev_ate() local
495 rc = nvs_flash_ate_rd(fs, *addr, &close_ate); in nvs_prev_ate()
500 rc = nvs_ate_cmp_const(&close_ate, fs->flash_parameters->erase_value); in nvs_prev_ate()
509 if (nvs_close_ate_valid(fs, &close_ate)) { in nvs_prev_ate()
511 (*addr) += close_ate.offset; in nvs_prev_ate()
538 struct nvs_ate close_ate; in nvs_sector_close() local
543 close_ate.id = 0xFFFF; in nvs_sector_close()
544 close_ate.len = 0U; in nvs_sector_close()
545 close_ate.offset = (uint16_t)((fs->ate_wra + ate_size) & ADDR_OFFS_MASK); in nvs_sector_close()
546 close_ate.part = 0xff; in nvs_sector_close()
551 nvs_ate_crc8_update(&close_ate); in nvs_sector_close()
553 (void)nvs_flash_ate_wrt(fs, &close_ate); in nvs_sector_close()
583 struct nvs_ate close_ate, gc_ate, wlk_ate; in nvs_gc() local
595 rc = nvs_flash_ate_rd(fs, gc_addr, &close_ate); in nvs_gc()
601 rc = nvs_ate_cmp_const(&close_ate, fs->flash_parameters->erase_value); in nvs_gc()
608 if (nvs_close_ate_valid(fs, &close_ate)) { in nvs_gc()
610 gc_addr += close_ate.offset; in nvs_gc()