Lines Matching full:cache

18 	if (!hash_cache->cache) {  in hash_cache_calc()
19 hash_cache->cache = (u8 *)memalign(CONFIG_SYS_CACHELINE_SIZE, in hash_cache_calc()
21 if (!hash_cache->cache) in hash_cache_calc()
31 /* copy to cache */ in hash_cache_calc()
32 debug("%s, %d: copy to cache %u\n", in hash_cache_calc()
34 memcpy(hash_cache->cache + hash_cache->cache_size, data, in hash_cache_calc()
38 /* if last one calc cache immediately */ in hash_cache_calc()
40 debug("%s, %d: last one calc cache %u\n", in hash_cache_calc()
45 hash_cache->cache, in hash_cache_calc()
55 /* 1. make cache be full */ in hash_cache_calc()
56 /* 2. calc cache */ in hash_cache_calc()
58 debug("%s, %d: make cache be full %u\n", in hash_cache_calc()
60 memcpy(hash_cache->cache + hash_cache->cache_size, in hash_cache_calc()
63 ret = direct_calc(hash_cache->user_data, hash_cache->cache, in hash_cache_calc()
121 if (hash_cache->cache) in crypto_hash_cache_free()
122 free(hash_cache->cache); in crypto_hash_cache_free()
150 /* calc some directly calc some in cache */ in crypto_hash_update_with_cache()
151 debug("%s, %d: calc some directly calc some in cache\n", in crypto_hash_update_with_cache()
160 /* calc all in cache */ in crypto_hash_update_with_cache()
161 debug("%s, %d: calc all in cache\n", __func__, __LINE__); in crypto_hash_update_with_cache()
179 debug("%s, %d: calc cache data %u\n", in crypto_hash_update_with_cache()
190 if (hash_cache->cache) { in crypto_hash_update_with_cache()
191 free(hash_cache->cache); in crypto_hash_update_with_cache()
192 hash_cache->cache = NULL; in crypto_hash_update_with_cache()