Searched refs:ADDR_SECT_SHIFT (Results 1 – 3 of 3) sorted by relevance
/Zephyr-Core-3.5.0/subsys/fs/nvs/ |
D | nvs.c | 79 if ((*cache_entry >> ADDR_SECT_SHIFT) == sector) { in nvs_lookup_cache_invalidate() 117 offset += fs->sector_size * (addr >> ADDR_SECT_SHIFT); in nvs_flash_al_wrt() 152 offset += fs->sector_size * (addr >> ADDR_SECT_SHIFT); in nvs_flash_rd() 297 offset += fs->sector_size * (addr >> ADDR_SECT_SHIFT); in nvs_flash_erase_sector() 303 nvs_lookup_cache_invalidate(fs, addr >> ADDR_SECT_SHIFT); in nvs_flash_erase_sector() 443 (*addr >> ADDR_SECT_SHIFT)); in nvs_recover_last_ate() 489 if (((*addr) >> ADDR_SECT_SHIFT) == 0U) { in nvs_prev_ate() 490 *addr += ((fs->sector_count - 1) << ADDR_SECT_SHIFT); in nvs_prev_ate() 492 *addr -= (1 << ADDR_SECT_SHIFT); in nvs_prev_ate() 527 *addr += (1 << ADDR_SECT_SHIFT); in nvs_sector_advance() [all …]
|
D | nvs_priv.h | 21 #define ADDR_SECT_SHIFT 16 macro
|
/Zephyr-Core-3.5.0/tests/subsys/fs/nvs/src/ |
D | main.c | 354 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 0, in ZTEST_F() 361 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 2, in ZTEST_F() 368 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 2, in ZTEST_F() 376 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 0, in ZTEST_F() 383 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 0, in ZTEST_F() 391 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 1, in ZTEST_F() 398 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 1, in ZTEST_F() 406 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 2, in ZTEST_F() 413 zassert_equal(fixture->fs.ate_wra >> ADDR_SECT_SHIFT, 2, in ZTEST_F() 855 num = num_matching_cache_entries(0 << ADDR_SECT_SHIFT, true, &fixture->fs); in ZTEST_F() [all …]
|