Lines Matching refs:obj
81 const struct test_obj_rhl *obj = data; in my_hashfn() local
83 return (obj->value.id % 10); in my_hashfn()
86 static int my_cmpfn(struct rhashtable_compare_arg *arg, const void *obj) in my_cmpfn() argument
88 const struct test_obj_rhl *test_obj = obj; in my_cmpfn()
115 static int insert_retry(struct rhashtable *ht, struct test_obj *obj, in insert_retry() argument
123 err = rhashtable_insert_fast(ht, &obj->node, params); in insert_retry()
143 struct test_obj *obj; in test_rht_lookup() local
152 obj = rhashtable_lookup_fast(ht, &key, test_rht_params); in test_rht_lookup()
154 if (expected && !obj) { in test_rht_lookup()
157 } else if (!expected && obj) { in test_rht_lookup()
161 } else if (expected && obj) { in test_rht_lookup()
162 if (obj->value.id != i) { in test_rht_lookup()
164 obj->value.id, i); in test_rht_lookup()
211 struct test_obj *obj; in test_rhashtable() local
223 struct test_obj *obj = &array[i]; in test_rhashtable() local
225 obj->value.id = i * 2; in test_rhashtable()
226 err = insert_retry(ht, obj, test_rht_params); in test_rhashtable()
251 obj = rhashtable_lookup_fast(ht, &key, test_rht_params); in test_rhashtable()
252 BUG_ON(!obj); in test_rhashtable()
254 rhashtable_remove_fast(ht, &obj->node, test_rht_params); in test_rhashtable()
312 struct test_obj_rhl *obj; in test_rhltable() local
327 rhl_for_each_entry_rcu(obj, pos, h, list_node) { in test_rhltable()
337 rhl_for_each_entry_rcu(obj, pos, h, list_node) { in test_rhltable()
460 struct test_obj *obj = &array[i]; in test_rhashtable_max() local
462 obj->value.id = i * 2; in test_rhashtable_max()
463 err = insert_retry(&ht, obj, test_rht_params); in test_rhashtable_max()
607 struct test_obj *obj; in thread_lookup_test() local
613 obj = rhashtable_lookup_fast(&ht, &key, test_rht_params); in thread_lookup_test()
614 if (obj && (tdata->objs[i].value.id == TEST_INSERT_FAIL)) { in thread_lookup_test()
617 } else if (!obj && (tdata->objs[i].value.id != TEST_INSERT_FAIL)) { in thread_lookup_test()
620 } else if (obj && memcmp(&obj->value, &key, sizeof(key))) { in thread_lookup_test()
622 obj->value.tid, obj->value.id, key.tid, key.id); in thread_lookup_test()