Home
last modified time | relevance | path

Searched refs:close_ate (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.5.0/tests/subsys/fs/nvs/src/
Dmain.c638 struct nvs_ate ate, close_ate; in ZTEST_F() local
643 close_ate.id = 0xffff; in ZTEST_F()
644 close_ate.offset = fixture->fs.sector_size - sizeof(struct nvs_ate) * 5; in ZTEST_F()
645 close_ate.len = 0; in ZTEST_F()
646 close_ate.crc8 = 0xff; /* Incorrect crc8 */ in ZTEST_F()
656 sizeof(struct nvs_ate), &close_ate, in ZTEST_F()
657 sizeof(close_ate)); in ZTEST_F()
673 sizeof(struct nvs_ate), &close_ate, in ZTEST_F()
674 sizeof(close_ate)); in ZTEST_F()
694 struct nvs_ate corrupt_ate, close_ate; in ZTEST_F() local
[all …]
/Zephyr-Core-3.5.0/subsys/fs/nvs/
Dnvs.c473 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()
[all …]