Lines Matching refs:hash
754 _dnsPacket_hashBytes( DnsPacket* packet, int numBytes, unsigned hash ) in _dnsPacket_hashBytes() argument
760 hash = hash*FNV_MULT ^ *p++; in _dnsPacket_hashBytes()
763 return hash; in _dnsPacket_hashBytes()
768 _dnsPacket_hashQName( DnsPacket* packet, unsigned hash ) in _dnsPacket_hashQName() argument
796 hash = hash*FNV_MULT ^ *p++; in _dnsPacket_hashQName()
801 return hash; in _dnsPacket_hashQName()
805 _dnsPacket_hashQR( DnsPacket* packet, unsigned hash ) in _dnsPacket_hashQR() argument
809 hash = _dnsPacket_hashQName(packet, hash); in _dnsPacket_hashQR()
810 hash = _dnsPacket_hashBytes(packet, 4, hash); /* TYPE and CLASS */ in _dnsPacket_hashQR()
811 return hash; in _dnsPacket_hashQR()
817 unsigned hash = FNV_BASIS; in _dnsPacket_hashQuery() local
828 hash = hash*FNV_MULT ^ (packet->base[2] & 1); in _dnsPacket_hashQuery()
841 hash = _dnsPacket_hashQR(packet, hash); in _dnsPacket_hashQuery()
843 return hash; in _dnsPacket_hashQuery()
981 unsigned int hash; /* hash value */ member
1045 e->hash = entry_hash(e); in entry_init_key()
1064 e->hash = init->hash; in entry_alloc()
1212 int index = key->hash % MAX_HASH_ENTRIES; in _cache_lookup_p()
1213 Entry** pnode = &cache->entries[ key->hash % MAX_HASH_ENTRIES ]; in _cache_lookup_p()
1221 if (node->hash == key->hash && entry_equals(node, key)) in _cache_lookup_p()