Home
last modified time | relevance | path

Searched refs:ate_wra (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/subsys/fs/nvs/
Dnvs.c47 addr = fs->ate_wra; in nvs_lookup_cache_rebuild()
65 if (addr == fs->ate_wra) { in nvs_lookup_cache_rebuild()
164 rc = nvs_flash_al_wrt(fs, fs->ate_wra, entry, in nvs_flash_ate_wrt()
169 fs->lookup_cache[nvs_lookup_cache_pos(entry->id)] = fs->ate_wra; in nvs_flash_ate_wrt()
172 fs->ate_wra -= nvs_al_size(fs, sizeof(struct nvs_ate)); in nvs_flash_ate_wrt()
550 *addr = fs->ate_wra; in nvs_prev_ate()
592 close_ate.offset = (uint16_t)((fs->ate_wra + ate_size) & ADDR_OFFS_MASK); in nvs_sector_close()
595 fs->ate_wra &= ADDR_SECT_MASK; in nvs_sector_close()
596 fs->ate_wra += (fs->sector_size - ate_size); in nvs_sector_close()
602 nvs_sector_advance(fs, &fs->ate_wra); in nvs_sector_close()
[all …]
/Zephyr-latest/subsys/fs/zms/
Dzms.c55 addr = fs->ate_wra; in zms_lookup_cache_rebuild()
88 if (addr == fs->ate_wra) { in zms_lookup_cache_rebuild()
208 rc = zms_flash_al_wrt(fs, fs->ate_wra, entry, sizeof(struct zms_ate)); in zms_flash_ate_wrt()
215 fs->lookup_cache[zms_lookup_cache_pos(entry->id)] = fs->ate_wra; in zms_flash_ate_wrt()
218 fs->ate_wra -= zms_al_size(fs, sizeof(struct zms_ate)); in zms_flash_ate_wrt()
619 *addr = fs->ate_wra; in zms_compute_prev_addr()
664 close_ate.offset = (uint32_t)SECTOR_OFFSET(fs->ate_wra + fs->ate_size); in zms_sector_close()
681 while (SECTOR_OFFSET(fs->ate_wra) && (fs->ate_wra >= fs->data_wra)) { in zms_sector_close()
688 fs->ate_wra = zms_close_ate_addr(fs, fs->ate_wra); in zms_sector_close()
694 zms_sector_advance(fs, &fs->ate_wra); in zms_sector_close()
[all …]
/Zephyr-latest/tests/subsys/fs/zms/src/
Dmain.c335 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 0, "unexpected write sector"); in ZTEST_F()
341 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 2, "unexpected write sector"); in ZTEST_F()
347 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 2, "unexpected write sector"); in ZTEST_F()
354 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 0, "unexpected write sector"); in ZTEST_F()
360 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 0, "unexpected write sector"); in ZTEST_F()
367 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 1, "unexpected write sector"); in ZTEST_F()
373 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 1, "unexpected write sector"); in ZTEST_F()
380 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 2, "unexpected write sector"); in ZTEST_F()
386 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 2, "unexpected write sector"); in ZTEST_F()
511 uint32_t ate_wra; in ZTEST_F() local
[all …]
/Zephyr-latest/tests/subsys/fs/nvs/src/
Dmain.c366 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 0, in ZTEST_F()
373 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 2, in ZTEST_F()
380 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 2, in ZTEST_F()
388 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 0, in ZTEST_F()
395 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 0, in ZTEST_F()
403 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 1, in ZTEST_F()
410 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 1, in ZTEST_F()
418 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 2, in ZTEST_F()
425 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 2, in ZTEST_F()
589 uint32_t ate_wra, data_wra; in ZTEST_F() local
[all …]
/Zephyr-latest/include/zephyr/fs/
Dnvs.h47 uint32_t ate_wra; member
Dzms.h43 uint64_t ate_wra; member