Home
last modified time | relevance | path

Searched refs:hashtable (Results 1 – 3 of 3) sorted by relevance

/drivers/net/wireguard/
Dpeerlookup.c19 return &table->hashtable[hash & (HASH_SIZE(table->hashtable) - 1)]; in pubkey_bucket()
30 hash_init(table->hashtable); in wg_pubkey_hashtable_alloc()
79 return &table->hashtable[(__force u32)index & in index_bucket()
80 (HASH_SIZE(table->hashtable) - 1)]; in index_bucket()
90 hash_init(table->hashtable); in wg_index_hashtable_alloc()
Dpeerlookup.h19 DECLARE_HASHTABLE(hashtable, 11);
35 DECLARE_HASHTABLE(hashtable, 13);
/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_internal.h274 #define vnic_hash_init(hashtable) __hash_init(hashtable, OPA_VNIC_MAC_TBL_SIZE) argument
276 #define vnic_hash_add(hashtable, node, key) \ argument
278 &hashtable[hash_min(key, ilog2(OPA_VNIC_MAC_TBL_SIZE))])