Lines Matching refs:key

27     void * key;  member
43 static uint32_t lv_lru_hash(lv_lru_t * cache, const void * key, uint32_t key_length);
46 static int lv_lru_cmp_keys(lv_lru_item_t * item, const void * key, uint32_t key_length);
65 #define test_for_missing_key() error_for(!key, LV_LRU_MISSING_KEY)
115 cache->key_free(item->key); in lv_lru_del()
137 lv_lru_res_t lv_lru_set(lv_lru_t * cache, const void * key, size_t key_length, void * value, size_t… in lv_lru_set() argument
145 uint32_t hash_index = lv_lru_hash(cache, key, key_length); in lv_lru_set()
150 while(item && lv_lru_cmp_keys(item, key, key_length)) { in lv_lru_set()
167 item->key = lv_mem_alloc(key_length); in lv_lru_set()
168 memcpy(item->key, key, key_length); in lv_lru_set()
189 lv_lru_res_t lv_lru_get(lv_lru_t * cache, const void * key, size_t key_size, void ** value) in lv_lru_get() argument
195 uint32_t hash_index = lv_lru_hash(cache, key, key_size); in lv_lru_get()
198 while(item && lv_lru_cmp_keys(item, key, key_size)) in lv_lru_get()
212 lv_lru_res_t lv_lru_remove(lv_lru_t * cache, const void * key, size_t key_size) in lv_lru_remove() argument
219 uint32_t hash_index = lv_lru_hash(cache, key, key_size); in lv_lru_remove()
222 while(item && lv_lru_cmp_keys(item, key, key_size)) { in lv_lru_remove()
266 static uint32_t lv_lru_hash(lv_lru_t * cache, const void * key, uint32_t key_length) in lv_lru_hash() argument
271 char * data = (char *) key; in lv_lru_hash()
301 static int lv_lru_cmp_keys(lv_lru_item_t * item, const void * key, uint32_t key_length) in lv_lru_cmp_keys() argument
307 return memcmp(key, item->key, key_length); in lv_lru_cmp_keys()
323 cache->key_free(item->key); in lv_lru_remove_item()