Lines Matching refs:index
74 const __le32 index) in index_bucket() argument
79 return &table->hashtable[(__force u32)index & in index_bucket()
132 entry->index = (__force __le32)get_random_u32(); in wg_index_hashtable_insert()
134 index_bucket(table, entry->index), in wg_index_hashtable_insert()
136 if (existing_entry->index == entry->index) in wg_index_hashtable_insert()
146 index_bucket(table, entry->index), in wg_index_hashtable_insert()
148 if (existing_entry->index == entry->index) { in wg_index_hashtable_insert()
158 index_bucket(table, entry->index)); in wg_index_hashtable_insert()
163 return entry->index; in wg_index_hashtable_insert()
177 new->index = old->index; in wg_index_hashtable_replace()
204 const __le32 index, struct wg_peer **peer) in wg_index_hashtable_lookup() argument
209 hlist_for_each_entry_rcu_bh(iter_entry, index_bucket(table, index), in wg_index_hashtable_lookup()
211 if (iter_entry->index == index) { in wg_index_hashtable_lookup()