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.c54 addr = fs->ate_wra; in zms_lookup_cache_rebuild()
87 if (addr == fs->ate_wra) { in zms_lookup_cache_rebuild()
207 rc = zms_flash_al_wrt(fs, fs->ate_wra, entry, sizeof(struct zms_ate)); in zms_flash_ate_wrt()
214 fs->lookup_cache[zms_lookup_cache_pos(entry->id)] = fs->ate_wra; in zms_flash_ate_wrt()
217 fs->ate_wra -= zms_al_size(fs, sizeof(struct zms_ate)); in zms_flash_ate_wrt()
618 *addr = fs->ate_wra; in zms_compute_prev_addr()
663 close_ate.offset = (uint32_t)SECTOR_OFFSET(fs->ate_wra + fs->ate_size); in zms_sector_close()
680 while (SECTOR_OFFSET(fs->ate_wra) && (fs->ate_wra >= fs->data_wra)) { in zms_sector_close()
687 fs->ate_wra = zms_close_ate_addr(fs, fs->ate_wra); in zms_sector_close()
693 zms_sector_advance(fs, &fs->ate_wra); in zms_sector_close()
[all …]
/Zephyr-latest/tests/subsys/fs/zms/src/
Dmain.c338 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 0, "unexpected write sector"); in ZTEST_F()
344 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 2, "unexpected write sector"); in ZTEST_F()
350 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 2, "unexpected write sector"); in ZTEST_F()
357 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 0, "unexpected write sector"); in ZTEST_F()
363 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 0, "unexpected write sector"); in ZTEST_F()
370 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 1, "unexpected write sector"); in ZTEST_F()
376 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 1, "unexpected write sector"); in ZTEST_F()
383 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 2, "unexpected write sector"); in ZTEST_F()
389 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 2, "unexpected write sector"); in ZTEST_F()
513 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.h42 uint64_t ate_wra; member