Lines Matching refs:params
126 const void *key, const struct rhashtable_params params, in rht_key_get_hash() argument
132 if (!__builtin_constant_p(params.key_len)) 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()
137 if (params.hashfn) in rht_key_get_hash()
138 hash = params.hashfn(key, key_len, hash_rnd); in rht_key_get_hash()
146 if (params.hashfn) in rht_key_get_hash()
147 hash = params.hashfn(key, key_len, hash_rnd); in rht_key_get_hash()
157 const void *key, const struct rhashtable_params params) in rht_key_hashfn() argument
159 unsigned int hash = rht_key_get_hash(ht, key, params, tbl->hash_rnd); in rht_key_hashfn()
166 const struct rhash_head *he, const struct rhashtable_params params) in rht_head_hashfn() argument
170 return likely(params.obj_hashfn) ? in rht_head_hashfn()
171 rht_bucket_index(tbl, params.obj_hashfn(ptr, params.key_len ?: in rht_head_hashfn()
174 rht_key_hashfn(ht, tbl, ptr + params.key_offset, params); in rht_head_hashfn()
591 const struct rhashtable_params params) in __rhashtable_lookup() argument
604 hash = rht_key_hashfn(ht, tbl, key, params); in __rhashtable_lookup()
608 if (params.obj_cmpfn ? in __rhashtable_lookup()
609 params.obj_cmpfn(&arg, rht_obj(ht, he)) : in __rhashtable_lookup()
644 const struct rhashtable_params params) in rhashtable_lookup() argument
646 struct rhash_head *he = __rhashtable_lookup(ht, key, params); in rhashtable_lookup()
667 const struct rhashtable_params params) in rhashtable_lookup_fast() argument
672 obj = rhashtable_lookup(ht, key, params); in rhashtable_lookup_fast()
694 const struct rhashtable_params params) in rhltable_lookup() argument
696 struct rhash_head *he = __rhashtable_lookup(&hlt->ht, key, params); in rhltable_lookup()
707 const struct rhashtable_params params, bool rhlist) in __rhashtable_insert_fast() argument
724 hash = rht_head_hashfn(ht, tbl, obj, params); in __rhashtable_insert_fast()
746 (params.obj_cmpfn ? in __rhashtable_insert_fast()
747 params.obj_cmpfn(&arg, rht_obj(ht, head)) : in __rhashtable_insert_fast()
829 const struct rhashtable_params params) in rhashtable_insert_fast() argument
833 ret = __rhashtable_insert_fast(ht, NULL, obj, params, false); in rhashtable_insert_fast()
858 const struct rhashtable_params params) in rhltable_insert_key() argument
861 params, true)); in rhltable_insert_key()
881 const struct rhashtable_params params) in rhltable_insert() argument
885 key += params.key_offset; in rhltable_insert()
887 return rhltable_insert_key(hlt, key, list, params); in rhltable_insert()
906 const struct rhashtable_params params) in rhashtable_lookup_insert_fast() argument
913 ret = __rhashtable_insert_fast(ht, key + ht->p.key_offset, obj, params, in rhashtable_lookup_insert_fast()
933 const struct rhashtable_params params) in rhashtable_lookup_get_insert_fast() argument
939 return __rhashtable_insert_fast(ht, key + ht->p.key_offset, obj, params, in rhashtable_lookup_get_insert_fast()
960 const struct rhashtable_params params) in rhashtable_lookup_insert_key() argument
966 ret = __rhashtable_insert_fast(ht, key, obj, params, false); in rhashtable_lookup_insert_key()
986 const struct rhashtable_params params) in rhashtable_lookup_get_insert_key() argument
990 return __rhashtable_insert_fast(ht, key, obj, params, false); in rhashtable_lookup_get_insert_key()
996 struct rhash_head *obj, const struct rhashtable_params params, in __rhashtable_remove_fast_one() argument
1005 hash = rht_head_hashfn(ht, tbl, obj, params); in __rhashtable_remove_fast_one()
1077 const struct rhashtable_params params, bool rhlist) in __rhashtable_remove_fast() argument
1091 while ((err = __rhashtable_remove_fast_one(ht, tbl, obj, params, in __rhashtable_remove_fast()
1118 const struct rhashtable_params params) in rhashtable_remove_fast() argument
1120 return __rhashtable_remove_fast(ht, obj, params, false); in rhashtable_remove_fast()
1140 const struct rhashtable_params params) in rhltable_remove() argument
1142 return __rhashtable_remove_fast(&hlt->ht, &list->rhead, params, true); in rhltable_remove()
1149 const struct rhashtable_params params) in __rhashtable_replace_fast() argument
1160 hash = rht_head_hashfn(ht, tbl, obj_old, params); in __rhashtable_replace_fast()
1161 if (hash != rht_head_hashfn(ht, tbl, obj_new, params)) in __rhashtable_replace_fast()
1211 const struct rhashtable_params params) in rhashtable_replace_fast() argument
1226 obj_new, params)) && in rhashtable_replace_fast()