Home
last modified time | relevance | path

Searched refs:KV_BLOCK_SIZE_BITS (Results 1 – 3 of 3) sorted by relevance

/AliOS-Things-master/components/kv/internal/
A Dkv_types.h15 #if (KV_BLOCK_SIZE_BITS >= 16) || (KV_TOTAL_SIZE >= 0x10000)
79 #define KV_BLOCK_SIZE (1 << KV_BLOCK_SIZE_BITS)
80 #define KV_BLOCK_NUMS (KV_TOTAL_SIZE >> KV_BLOCK_SIZE_BITS)
A Dkv_conf.h29 #define KV_BLOCK_SIZE_BITS 12 macro
31 #define KV_BLOCK_SIZE_BITS KV_CONFIG_BLOCK_SIZE_BITS macro
/AliOS-Things-master/components/kv/src/
A Dkv.c131 kv_size_t pos = (blk_idx << KV_BLOCK_SIZE_BITS); in kv_block_format()
170 blk_idx = (g_kv_mgr.write_pos) >> KV_BLOCK_SIZE_BITS; in kv_calc_position()
185 blk_idx_tmp = (g_kv_mgr.write_pos) >> KV_BLOCK_SIZE_BITS; in kv_calc_position()
201 blk_start = (i << KV_BLOCK_SIZE_BITS); in kv_calc_position()
282 i = off >> KV_BLOCK_SIZE_BITS; in kv_item_del()
395 idx = (g_kv_mgr.write_pos) >> KV_BLOCK_SIZE_BITS; in __item_gc_cb()
685 i = (origin_pos >> KV_BLOCK_SIZE_BITS) + 1; in kv_gc_task()
705 if (i == (origin_pos >> KV_BLOCK_SIZE_BITS)) { in kv_gc_task()
743 pos = (blk_idx << KV_BLOCK_SIZE_BITS) + KV_BLOCK_HDR_SIZE; in kv_item_traverse()
744 end = (blk_idx << KV_BLOCK_SIZE_BITS) + KV_BLOCK_SIZE; in kv_item_traverse()
[all …]

Completed in 5 milliseconds