Searched refs:ADDR_SECT_SHIFT (Results 1 – 6 of 6) sorted by relevance
/Zephyr-latest/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() 339 offset += fs->sector_size * (addr >> ADDR_SECT_SHIFT); in nvs_flash_erase_sector() 345 nvs_lookup_cache_invalidate(fs, addr >> ADDR_SECT_SHIFT); in nvs_flash_erase_sector() 490 (*addr >> ADDR_SECT_SHIFT)); in nvs_recover_last_ate() 536 if (((*addr) >> ADDR_SECT_SHIFT) == 0U) { in nvs_prev_ate() 537 *addr += ((fs->sector_count - 1) << ADDR_SECT_SHIFT); in nvs_prev_ate() 539 *addr -= (1 << ADDR_SECT_SHIFT); in nvs_prev_ate() 574 *addr += (1 << ADDR_SECT_SHIFT); in nvs_sector_advance() [all …]
|
D | nvs_priv.h | 21 #define ADDR_SECT_SHIFT 16 macro
|
/Zephyr-latest/tests/subsys/fs/zms/src/ |
D | main.c | 338 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() 811 num = num_matching_cache_entries(0ULL << ADDR_SECT_SHIFT, true, &fixture->fs); in ZTEST_F() [all …]
|
/Zephyr-latest/tests/subsys/fs/nvs/src/ |
D | main.c | 366 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() 881 num = num_matching_cache_entries(0 << ADDR_SECT_SHIFT, true, &fixture->fs); in ZTEST_F() [all …]
|
/Zephyr-latest/subsys/fs/zms/ |
D | zms_priv.h | 22 #define ADDR_SECT_SHIFT 32 macro
|
D | zms.c | 604 *addr += ((uint64_t)(fs->sector_count - 1) << ADDR_SECT_SHIFT); in zms_compute_prev_addr() 606 *addr -= (1ULL << ADDR_SECT_SHIFT); in zms_compute_prev_addr() 646 *addr += (1ULL << ADDR_SECT_SHIFT); in zms_sector_advance() 647 if ((*addr >> ADDR_SECT_SHIFT) == fs->sector_count) { in zms_sector_advance() 648 *addr -= ((uint64_t)fs->sector_count << ADDR_SECT_SHIFT); in zms_sector_advance() 1024 zms_lookup_cache_invalidate(fs, sec_addr >> ADDR_SECT_SHIFT); in zms_gc() 1043 addr = (uint64_t)i << ADDR_SECT_SHIFT; in zms_clear() 1084 addr = zms_close_ate_addr(fs, ((uint64_t)i << ADDR_SECT_SHIFT)); in zms_init() 1740 step_addr = zms_close_ate_addr(fs, ((uint64_t)i << ADDR_SECT_SHIFT)); in zms_calc_free_space()
|