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