Lines Matching refs:hash_key

33 	unsigned long hash_key;  in rxrpc_peer_hash_key()  local
37 hash_key = (unsigned long)local / __alignof__(*local); in rxrpc_peer_hash_key()
38 hash_key += srx->transport_type; in rxrpc_peer_hash_key()
39 hash_key += srx->transport_len; in rxrpc_peer_hash_key()
40 hash_key += srx->transport.family; in rxrpc_peer_hash_key()
44 hash_key += (u16 __force)srx->transport.sin.sin_port; in rxrpc_peer_hash_key()
50 hash_key += (u16 __force)srx->transport.sin.sin_port; in rxrpc_peer_hash_key()
62 hash_key += *p; in rxrpc_peer_hash_key()
64 _leave(" 0x%lx", hash_key); in rxrpc_peer_hash_key()
65 return hash_key; in rxrpc_peer_hash_key()
79 unsigned long hash_key) in rxrpc_peer_cmp_key() argument
83 diff = ((peer->hash_key - hash_key) ?: in rxrpc_peer_cmp_key()
117 unsigned long hash_key) in __rxrpc_lookup_peer_rcu() argument
122 hash_for_each_possible_rcu(rxnet->peer_hash, peer, hash_link, hash_key) { in __rxrpc_lookup_peer_rcu()
123 if (rxrpc_peer_cmp_key(peer, local, srx, hash_key) == 0 && in __rxrpc_lookup_peer_rcu()
138 unsigned long hash_key = rxrpc_peer_hash_key(local, srx); in rxrpc_lookup_peer_rcu() local
140 peer = __rxrpc_lookup_peer_rcu(local, srx, hash_key); in rxrpc_lookup_peer_rcu()
240 unsigned long hash_key) in rxrpc_init_peer() argument
242 peer->hash_key = hash_key; in rxrpc_init_peer()
277 unsigned long hash_key, in rxrpc_create_peer() argument
287 rxrpc_init_peer(local, peer, hash_key); in rxrpc_create_peer()
309 unsigned long hash_key; in rxrpc_new_incoming_peer() local
311 hash_key = rxrpc_peer_hash_key(local, &peer->srx); in rxrpc_new_incoming_peer()
312 rxrpc_init_peer(local, peer, hash_key); in rxrpc_new_incoming_peer()
315 hash_add_rcu(rxnet->peer_hash, &peer->hash_link, hash_key); in rxrpc_new_incoming_peer()
328 unsigned long hash_key = rxrpc_peer_hash_key(local, srx); in rxrpc_lookup_peer() local
334 peer = __rxrpc_lookup_peer_rcu(local, srx, hash_key); in rxrpc_lookup_peer()
343 candidate = rxrpc_create_peer(local, srx, hash_key, gfp); in rxrpc_lookup_peer()
352 peer = __rxrpc_lookup_peer_rcu(local, srx, hash_key); in rxrpc_lookup_peer()
357 &candidate->hash_link, hash_key); in rxrpc_lookup_peer()