Lines Matching refs:key
45 static u32 __hashfn(const struct rhashtable *ht, const void *key, in __hashfn() argument
50 h = ht->p.hashfn(key, len, ht->p.hash_rnd); in __hashfn()
67 u32 rhashtable_hashfn(const struct rhashtable *ht, const void *key, u32 len) in rhashtable_hashfn() argument
71 return __hashfn(ht, key, len, tbl->size); in rhashtable_hashfn()
458 void *rhashtable_lookup(const struct rhashtable *ht, const void *key) in rhashtable_lookup() argument
466 h = __hashfn(ht, key, ht->p.key_len, tbl->size); in rhashtable_lookup()
468 if (memcmp(rht_obj(ht, he) + ht->p.key_offset, key, in rhashtable_lookup()
493 void *rhashtable_lookup_compare(const struct rhashtable *ht, void *key, in rhashtable_lookup_compare() argument
500 hash = __hashfn(ht, key, ht->p.key_len, tbl->size); in rhashtable_lookup_compare()
638 u32 key = i; in test_rht_lookup() local
640 obj = rhashtable_lookup(ht, &key); in test_rht_lookup()
643 pr_warn("Test failed: Could not find key %u\n", key); in test_rht_lookup()
647 key); in test_rht_lookup()
745 u32 key = i * 2; in test_rhashtable() local
747 obj = rhashtable_lookup(ht, &key); in test_rhashtable()