Lines Matching refs:key_len
132 if (!__builtin_constant_p(params.key_len)) in rht_key_get_hash()
133 hash = ht->p.hashfn(key, ht->key_len, hash_rnd); in rht_key_get_hash()
134 else if (params.key_len) { in rht_key_get_hash()
135 unsigned int key_len = params.key_len; in rht_key_get_hash() local
138 hash = params.hashfn(key, key_len, hash_rnd); in rht_key_get_hash()
139 else if (key_len & (sizeof(u32) - 1)) in rht_key_get_hash()
140 hash = jhash(key, key_len, hash_rnd); in rht_key_get_hash()
142 hash = jhash2(key, key_len / sizeof(u32), hash_rnd); in rht_key_get_hash()
144 unsigned int key_len = ht->p.key_len; in rht_key_get_hash() local
147 hash = params.hashfn(key, key_len, hash_rnd); in rht_key_get_hash()
149 hash = jhash(key, key_len, hash_rnd); in rht_key_get_hash()
171 rht_bucket_index(tbl, params.obj_hashfn(ptr, params.key_len ?: in rht_head_hashfn()
172 ht->p.key_len, in rht_head_hashfn()
577 return memcmp(ptr + ht->p.key_offset, arg->key, ht->p.key_len); in rhashtable_compare()