Lines Matching refs:neighborhoods
138 struct ht_neighborhood_st *neighborhoods; member
220 new->md->neighborhoods = in ossl_ht_new()
223 if (new->md->neighborhoods == NULL) in ossl_ht_new()
280 PREFETCH_NEIGHBORHOOD(oldmd->neighborhoods[i + 1]); in free_oldmd()
282 if (oldmd->neighborhoods[i].entries[j].value != NULL) { in free_oldmd()
283 v = oldmd->neighborhoods[i].entries[j].value; in free_oldmd()
303 newmd->neighborhoods = alloc_new_neighborhood_list(DEFAULT_NEIGH_LEN, in ossl_ht_flush_internal()
305 if (newmd->neighborhoods == NULL) { in ossl_ht_flush_internal()
363 PREFETCH_NEIGHBORHOOD(md->neighborhoods[i + 1]); in ossl_ht_foreach_until()
365 if (md->neighborhoods[i].entries[j].value != NULL) { in ossl_ht_foreach_until()
366 if (!cb((HT_VALUE *)md->neighborhoods[i].entries[j].value, arg)) in ossl_ht_foreach_until()
396 PREFETCH_NEIGHBORHOOD(md->neighborhoods[i+1]); in ossl_ht_filter()
398 v = md->neighborhoods[i].entries[j].value; in ossl_ht_filter()
450 newmd->neighborhoods = alloc_new_neighborhood_list(oldsize * 2, in grow_hashtable()
452 if (newmd->neighborhoods == NULL) in grow_hashtable()
464 PREFETCH_NEIGHBORHOOD(oldmd->neighborhoods[oldi + 1]); in grow_hashtable()
466 oldv = oldmd->neighborhoods[oldi].entries[oldj].value; in grow_hashtable()
469 oldhash = oldmd->neighborhoods[oldi].entries[oldj].hash; 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()
508 OPENSSL_free(newmd->neighborhoods); in grow_hashtable()
554 PREFETCH_NEIGHBORHOOD(md->neighborhoods[neigh_idx]); in ossl_ht_insert_locked()
557 ival = ossl_rcu_deref(&md->neighborhoods[neigh_idx].entries[j].value); in ossl_ht_insert_locked()
565 if (!CRYPTO_atomic_load(&md->neighborhoods[neigh_idx].entries[j].hash, in ossl_ht_insert_locked()
575 if (!CRYPTO_atomic_store(&md->neighborhoods[neigh_idx].entries[j].hash, in ossl_ht_insert_locked()
578 *olddata = (HT_VALUE *)md->neighborhoods[neigh_idx].entries[j].value; in ossl_ht_insert_locked()
579 ossl_rcu_assign_ptr(&md->neighborhoods[neigh_idx].entries[j].value, in ossl_ht_insert_locked()
596 if (!CRYPTO_atomic_store(&md->neighborhoods[neigh_idx].entries[empty_idx].hash, in ossl_ht_insert_locked()
600 ossl_rcu_assign_ptr(&md->neighborhoods[neigh_idx].entries[empty_idx].value, in ossl_ht_insert_locked()
691 PREFETCH_NEIGHBORHOOD(md->neighborhoods[neigh_idx]); in ossl_ht_get()
693 ival = ossl_rcu_deref(&md->neighborhoods[neigh_idx].entries[j].value); in ossl_ht_get()
700 if (!CRYPTO_atomic_load(&md->neighborhoods[neigh_idx].entries[j].hash, in ossl_ht_get()
738 PREFETCH_NEIGHBORHOOD(h->md->neighborhoods[neigh_idx]); in ossl_ht_delete()
740 v = (struct ht_internal_value_st *)h->md->neighborhoods[neigh_idx].entries[j].value; in ossl_ht_delete()
743 if (compare_hash(hash, h->md->neighborhoods[neigh_idx].entries[j].hash) in ossl_ht_delete()
745 if (!CRYPTO_atomic_store(&h->md->neighborhoods[neigh_idx].entries[j].hash, in ossl_ht_delete()
749 ossl_rcu_assign_ptr(&h->md->neighborhoods[neigh_idx].entries[j].value, in ossl_ht_delete()