Lines Matching refs:state
779 static void impl_cache_flush_cache(QUERY *c, IMPL_CACHE_FLUSH *state) in impl_cache_flush_cache() argument
790 n = state->seed; in impl_cache_flush_cache()
794 state->seed = n; in impl_cache_flush_cache()
797 impl_cache_free(lh_QUERY_delete(state->cache, c)); in impl_cache_flush_cache()
799 state->nelem++; in impl_cache_flush_cache()
805 IMPL_CACHE_FLUSH *state = (IMPL_CACHE_FLUSH *)v; in impl_cache_flush_one_alg() local
808 state->cache = alg->cache; in impl_cache_flush_one_alg()
810 lh_QUERY_doall_IMPL_CACHE_FLUSH(state->cache, &impl_cache_flush_cache, in impl_cache_flush_one_alg()
811 state); in impl_cache_flush_one_alg()
817 IMPL_CACHE_FLUSH state; in ossl_method_cache_flush_some() local
820 state.nelem = 0; in ossl_method_cache_flush_some()
821 state.using_global_seed = 0; in ossl_method_cache_flush_some()
822 if ((state.seed = OPENSSL_rdtsc()) == 0) { in ossl_method_cache_flush_some()
824 state.using_global_seed = 1; in ossl_method_cache_flush_some()
825 state.seed = tsan_load(&global_seed); in ossl_method_cache_flush_some()
828 ossl_sa_ALGORITHM_doall_arg(store->algs, &impl_cache_flush_one_alg, &state); in ossl_method_cache_flush_some()
829 store->cache_nelem = state.nelem; in ossl_method_cache_flush_some()
831 if (state.using_global_seed) in ossl_method_cache_flush_some()
832 tsan_add(&global_seed, state.seed); in ossl_method_cache_flush_some()