Lines Matching refs:uint64_t

18 static int zms_prev_ate(struct zms_fs *fs, uint64_t *addr, struct zms_ate *ate);
20 static int zms_get_sector_cycle(struct zms_fs *fs, uint64_t addr, uint8_t *cycle_cnt);
21 static int zms_get_sector_header(struct zms_fs *fs, uint64_t addr, struct zms_ate *empty_ate,
47 uint64_t addr; in zms_lookup_cache_rebuild()
48 uint64_t ate_addr; in zms_lookup_cache_rebuild()
49 uint64_t *cache_entry; in zms_lookup_cache_rebuild()
97 uint64_t *cache_entry = fs->lookup_cache; in zms_lookup_cache_invalidate()
98 uint64_t *const cache_end = &fs->lookup_cache[CONFIG_ZMS_LOOKUP_CACHE_SIZE]; in zms_lookup_cache_invalidate()
110 static inline off_t zms_addr_to_offset(struct zms_fs *fs, uint64_t addr) in zms_addr_to_offset()
141 static inline uint64_t zms_empty_ate_addr(struct zms_fs *fs, uint64_t addr) in zms_empty_ate_addr()
147 static inline uint64_t zms_close_ate_addr(struct zms_fs *fs, uint64_t addr) in zms_close_ate_addr()
153 static int zms_flash_al_wrt(struct zms_fs *fs, uint64_t addr, const void *data, size_t len) in zms_flash_al_wrt()
193 static int zms_flash_rd(struct zms_fs *fs, uint64_t addr, void *data, size_t len) in zms_flash_rd()
237 static int zms_flash_ate_rd(struct zms_fs *fs, uint64_t addr, struct zms_ate *entry) in zms_flash_ate_rd()
246 static int zms_flash_block_cmp(struct zms_fs *fs, uint64_t addr, const void *data, size_t len) in zms_flash_block_cmp()
277 static int zms_flash_cmp_const(struct zms_fs *fs, uint64_t addr, uint8_t value, size_t len) in zms_flash_cmp_const()
302 static int zms_flash_block_move(struct zms_fs *fs, uint64_t addr, size_t len) in zms_flash_block_move()
330 static int zms_flash_erase_sector(struct zms_fs *fs, uint64_t addr) in zms_flash_erase_sector()
422 static inline int zms_get_cycle_on_sector_change(struct zms_fs *fs, uint64_t addr, in zms_get_cycle_on_sector_change()
488 static int zms_validate_closed_sector(struct zms_fs *fs, uint64_t addr, struct zms_ate *empty_ate, in zms_validate_closed_sector()
553 static int zms_recover_last_ate(struct zms_fs *fs, uint64_t *addr, uint64_t *data_wra) in zms_recover_last_ate()
555 uint64_t data_end_addr; in zms_recover_last_ate()
556 uint64_t ate_end_addr; in zms_recover_last_ate()
591 static int zms_compute_prev_addr(struct zms_fs *fs, uint64_t *addr) in zms_compute_prev_addr()
604 *addr += ((uint64_t)(fs->sector_count - 1) << ADDR_SECT_SHIFT); in zms_compute_prev_addr()
632 static int zms_prev_ate(struct zms_fs *fs, uint64_t *addr, struct zms_ate *ate) in zms_prev_ate()
644 static void zms_sector_advance(struct zms_fs *fs, uint64_t *addr) in zms_sector_advance()
648 *addr -= ((uint64_t)fs->sector_count << ADDR_SECT_SHIFT); in zms_sector_advance()
725 static int zms_add_empty_ate(struct zms_fs *fs, uint64_t addr) in zms_add_empty_ate()
730 uint64_t previous_ate_wra; in zms_add_empty_ate()
734 LOG_DBG("Adding empty ate at %llx", (uint64_t)(addr + fs->sector_size - fs->ate_size)); in zms_add_empty_ate()
768 static int zms_get_sector_cycle(struct zms_fs *fs, uint64_t addr, uint8_t *cycle_cnt) in zms_get_sector_cycle()
772 uint64_t empty_addr; in zms_get_sector_cycle()
792 static int zms_get_sector_header(struct zms_fs *fs, uint64_t addr, struct zms_ate *empty_ate, in zms_get_sector_header()
796 uint64_t close_addr; in zms_get_sector_header()
828 static int zms_find_ate_with_id(struct zms_fs *fs, uint32_t id, uint64_t start_addr, in zms_find_ate_with_id()
829 uint64_t end_addr, struct zms_ate *ate, uint64_t *ate_addr) in zms_find_ate_with_id()
833 uint64_t wlk_prev_addr; in zms_find_ate_with_id()
834 uint64_t wlk_addr; in zms_find_ate_with_id()
882 uint64_t sec_addr; in zms_gc()
883 uint64_t gc_addr; in zms_gc()
884 uint64_t gc_prev_addr; in zms_gc()
885 uint64_t wlk_addr; in zms_gc()
886 uint64_t wlk_prev_addr; in zms_gc()
887 uint64_t data_addr; in zms_gc()
888 uint64_t stop_addr; in zms_gc()
1034 uint64_t addr; in zms_clear()
1043 addr = (uint64_t)i << ADDR_SECT_SHIFT; in zms_clear()
1071 uint64_t addr = 0U; in zms_init()
1072 uint64_t data_wra = 0U; in zms_init()
1084 addr = zms_close_ate_addr(fs, ((uint64_t)i << ADDR_SECT_SHIFT)); in zms_init()
1395 uint64_t wlk_addr; in zms_write()
1396 uint64_t rd_addr; in zms_write()
1542 uint64_t wlk_addr; in zms_read_hist()
1543 uint64_t rd_addr = 0; in zms_read_hist()
1544 uint64_t wlk_prev_addr = 0; in zms_read_hist()
1667 uint64_t step_addr; in zms_calc_free_space()
1668 uint64_t wlk_addr; in zms_calc_free_space()
1669 uint64_t step_prev_addr; in zms_calc_free_space()
1670 uint64_t wlk_prev_addr; in zms_calc_free_space()
1671 uint64_t data_wra = 0U; in zms_calc_free_space()
1740 step_addr = zms_close_ate_addr(fs, ((uint64_t)i << ADDR_SECT_SHIFT)); in zms_calc_free_space()