Lines Matching refs:newmd
296 struct ht_mutable_data_st *newmd = NULL; in ossl_ht_flush_internal() local
299 newmd = OPENSSL_zalloc(sizeof(*newmd)); in ossl_ht_flush_internal()
300 if (newmd == NULL) in ossl_ht_flush_internal()
303 newmd->neighborhoods = alloc_new_neighborhood_list(DEFAULT_NEIGH_LEN, in ossl_ht_flush_internal()
304 &newmd->neighborhood_ptr_to_free); in ossl_ht_flush_internal()
305 if (newmd->neighborhoods == NULL) { in ossl_ht_flush_internal()
306 OPENSSL_free(newmd); in ossl_ht_flush_internal()
310 newmd->neighborhood_mask = DEFAULT_NEIGH_LEN - 1; in ossl_ht_flush_internal()
314 ossl_rcu_assign_ptr(&h->md, &newmd); in ossl_ht_flush_internal()
434 struct ht_mutable_data_st *newmd; in grow_hashtable() local
446 if ((newmd = OPENSSL_zalloc(sizeof(*newmd))) == NULL) in grow_hashtable()
450 newmd->neighborhoods = alloc_new_neighborhood_list(oldsize * 2, in grow_hashtable()
451 &newmd->neighborhood_ptr_to_free); in grow_hashtable()
452 if (newmd->neighborhoods == NULL) in grow_hashtable()
456 newmd->neighborhood_mask = (newsize - 1); in grow_hashtable()
470 newi = oldhash & newmd->neighborhood_mask; in grow_hashtable()
473 if (newmd->neighborhoods[newi].entries[newj].value == NULL) { in grow_hashtable()
474 newmd->neighborhoods[newi].entries[newj].value = oldv; in grow_hashtable()
475 newmd->neighborhoods[newi].entries[newj].hash = oldhash; in grow_hashtable()
482 OPENSSL_free(newmd->neighborhoods); in grow_hashtable()
483 OPENSSL_free(newmd); in grow_hashtable()
497 ossl_rcu_assign_ptr(&h->md, &newmd); in grow_hashtable()
508 OPENSSL_free(newmd->neighborhoods); in grow_hashtable()
509 OPENSSL_free(newmd); in grow_hashtable()