Lines Matching refs:hash
761 _dnsPacket_hashBytes( DnsPacket* packet, int numBytes, unsigned hash ) in _dnsPacket_hashBytes() argument
767 hash = hash*FNV_MULT ^ *p++; in _dnsPacket_hashBytes()
770 return hash; in _dnsPacket_hashBytes()
775 _dnsPacket_hashQName( DnsPacket* packet, unsigned hash ) in _dnsPacket_hashQName() argument
803 hash = hash*FNV_MULT ^ *p++; in _dnsPacket_hashQName()
808 return hash; in _dnsPacket_hashQName()
812 _dnsPacket_hashQR( DnsPacket* packet, unsigned hash ) in _dnsPacket_hashQR() argument
814 hash = _dnsPacket_hashQName(packet, hash); in _dnsPacket_hashQR()
815 hash = _dnsPacket_hashBytes(packet, 4, hash); /* TYPE and CLASS */ in _dnsPacket_hashQR()
816 return hash; in _dnsPacket_hashQR()
820 _dnsPacket_hashRR( DnsPacket* packet, unsigned hash ) in _dnsPacket_hashRR() argument
823 hash = _dnsPacket_hashQR(packet, hash); in _dnsPacket_hashRR()
824 hash = _dnsPacket_hashBytes(packet, 4, hash); /* TTL */ in _dnsPacket_hashRR()
826 hash = _dnsPacket_hashBytes(packet, rdlength, hash); /* RDATA */ in _dnsPacket_hashRR()
827 return hash; in _dnsPacket_hashRR()
833 unsigned hash = FNV_BASIS; in _dnsPacket_hashQuery() local
847 hash = hash*FNV_MULT ^ (packet->base[2] & 1); in _dnsPacket_hashQuery()
853 hash = _dnsPacket_hashBytes(packet, 1, hash); in _dnsPacket_hashQuery()
866 hash = _dnsPacket_hashQR(packet, hash); in _dnsPacket_hashQuery()
870 hash = _dnsPacket_hashRR(packet, hash); in _dnsPacket_hashQuery()
872 return hash; in _dnsPacket_hashQuery()
1050 unsigned int hash; /* hash value */ member
1210 e->hash = entry_hash(e); in entry_init_key()
1229 e->hash = init->hash; in entry_alloc()
1274 unsigned int hash; member
1346 if (ri->hash == key->hash) { in _cache_check_pending_request_locked()
1357 ri->hash = key->hash; in _cache_check_pending_request_locked()
1385 if (ri->hash == key->hash) { in _cache_notify_waiting_tid_locked()
1577 int index = key->hash % cache->max_entries; in _cache_lookup_p()
1586 if (node->hash == key->hash && entry_equals(node, key)) in _cache_lookup_p()