Lines Matching refs:neigh_idx
546 uint64_t neigh_idx = neigh_idx_start; in ossl_ht_insert_locked() local
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()
589 neigh_idx = (neigh_idx + 1) & md->neighborhood_mask; in ossl_ht_insert_locked()
590 } while (neigh_idx != neigh_idx_start); 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()
680 uint64_t neigh_idx; in ossl_ht_get() local
689 neigh_idx = neigh_idx_start = hash & md->neighborhood_mask; in ossl_ht_get()
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()
709 neigh_idx = (neigh_idx + 1) & md->neighborhood_mask; in ossl_ht_get()
710 } while (neigh_idx != neigh_idx_start); in ossl_ht_get()
726 uint64_t neigh_idx; in ossl_ht_delete() local
737 neigh_idx = hash & h->md->neighborhood_mask; in ossl_ht_delete()
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()