Lines Matching refs:hash

68 	uint32_t hash = 0;  in batadv_choose_tt()  local
71 hash = batadv_hash_bytes(hash, &tt->addr, ETH_ALEN); in batadv_choose_tt()
72 hash = batadv_hash_bytes(hash, &tt->vid, sizeof(tt->vid)); in batadv_choose_tt()
74 hash += (hash << 3); in batadv_choose_tt()
75 hash ^= (hash >> 11); in batadv_choose_tt()
76 hash += (hash << 15); in batadv_choose_tt()
78 return hash % size; in batadv_choose_tt()
91 batadv_tt_hash_find(struct batadv_hashtable *hash, const uint8_t *addr, in batadv_tt_hash_find() argument
98 if (!hash) in batadv_tt_hash_find()
104 index = batadv_choose_tt(&to_search, hash->size); in batadv_tt_hash_find()
105 head = &hash->table[index]; in batadv_tt_hash_find()
907 struct batadv_hashtable *hash = bat_priv->tt.local_hash; in batadv_tt_local_seq_print_text() local
931 for (i = 0; i < hash->size; i++) { in batadv_tt_local_seq_print_text()
932 head = &hash->table[i]; in batadv_tt_local_seq_print_text()
1118 struct batadv_hashtable *hash = bat_priv->tt.local_hash; in batadv_tt_local_purge() local
1123 for (i = 0; i < hash->size; i++) { in batadv_tt_local_purge()
1124 head = &hash->table[i]; in batadv_tt_local_purge()
1125 list_lock = &hash->list_locks[i]; in batadv_tt_local_purge()
1135 struct batadv_hashtable *hash; in batadv_tt_local_table_free() local
1147 hash = bat_priv->tt.local_hash; in batadv_tt_local_table_free()
1149 for (i = 0; i < hash->size; i++) { in batadv_tt_local_table_free()
1150 head = &hash->table[i]; in batadv_tt_local_table_free()
1151 list_lock = &hash->list_locks[i]; in batadv_tt_local_table_free()
1174 batadv_hash_destroy(hash); in batadv_tt_local_table_free()
1592 struct batadv_hashtable *hash = bat_priv->tt.global_hash; in batadv_tt_global_seq_print_text() local
1610 for (i = 0; i < hash->size; i++) { in batadv_tt_global_seq_print_text()
1611 head = &hash->table[i]; in batadv_tt_global_seq_print_text()
1823 struct batadv_hashtable *hash = bat_priv->tt.global_hash; in batadv_tt_global_del_orig() local
1829 if (!hash) in batadv_tt_global_del_orig()
1832 for (i = 0; i < hash->size; i++) { in batadv_tt_global_del_orig()
1833 head = &hash->table[i]; in batadv_tt_global_del_orig()
1834 list_lock = &hash->list_locks[i]; in batadv_tt_global_del_orig()
1889 struct batadv_hashtable *hash = bat_priv->tt.global_hash; in batadv_tt_global_purge() local
1898 for (i = 0; i < hash->size; i++) { in batadv_tt_global_purge()
1899 head = &hash->table[i]; in batadv_tt_global_purge()
1900 list_lock = &hash->list_locks[i]; in batadv_tt_global_purge()
1928 struct batadv_hashtable *hash; in batadv_tt_global_table_free() local
1939 hash = bat_priv->tt.global_hash; in batadv_tt_global_table_free()
1941 for (i = 0; i < hash->size; i++) { in batadv_tt_global_table_free()
1942 head = &hash->table[i]; in batadv_tt_global_table_free()
1943 list_lock = &hash->list_locks[i]; in batadv_tt_global_table_free()
1957 batadv_hash_destroy(hash); in batadv_tt_global_table_free()
2068 struct batadv_hashtable *hash = bat_priv->tt.global_hash; in batadv_tt_global_crc() local
2076 for (i = 0; i < hash->size; i++) { in batadv_tt_global_crc()
2077 head = &hash->table[i]; in batadv_tt_global_crc()
2144 struct batadv_hashtable *hash = bat_priv->tt.local_hash; in batadv_tt_local_crc() local
2151 for (i = 0; i < hash->size; i++) { in batadv_tt_local_crc()
2152 head = &hash->table[i]; in batadv_tt_local_crc()
2313 struct batadv_hashtable *hash, in batadv_tt_tvlv_generate() argument
2328 for (i = 0; i < hash->size; i++) { in batadv_tt_tvlv_generate()
2329 head = &hash->table[i]; in batadv_tt_tvlv_generate()
3133 struct batadv_hashtable *hash = bat_priv->tt.local_hash; in batadv_tt_local_set_flags() local
3139 if (!hash) in batadv_tt_local_set_flags()
3142 for (i = 0; i < hash->size; i++) { in batadv_tt_local_set_flags()
3143 head = &hash->table[i]; in batadv_tt_local_set_flags()
3172 struct batadv_hashtable *hash = bat_priv->tt.local_hash; in batadv_tt_local_purge_pending_clients() local
3181 if (!hash) in batadv_tt_local_purge_pending_clients()
3184 for (i = 0; i < hash->size; i++) { in batadv_tt_local_purge_pending_clients()
3185 head = &hash->table[i]; in batadv_tt_local_purge_pending_clients()
3186 list_lock = &hash->list_locks[i]; in batadv_tt_local_purge_pending_clients()