Lines Matching refs:objs
76 struct test_obj *objs; member
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()
644 tdata->objs[i].value.id = i; in threadfunc()
645 tdata->objs[i].value.tid = tdata->id; in threadfunc()
646 err = insert_retry(&ht, &tdata->objs[i], test_rht_params); in threadfunc()
668 if (tdata->objs[i].value.id == TEST_INSERT_FAIL) in threadfunc()
670 err = rhashtable_remove_fast(&ht, &tdata->objs[i].node, in threadfunc()
677 tdata->objs[i].value.id = TEST_INSERT_FAIL; in threadfunc()
702 struct test_obj *objs; in test_rht_init() local
713 objs = vzalloc(array_size(sizeof(struct test_obj), in test_rht_init()
715 if (!objs) in test_rht_init()
725 memset(objs, 0, test_rht_params.max_size * sizeof(struct test_obj)); in test_rht_init()
734 time = test_rhashtable(&ht, objs, entries); in test_rht_init()
737 vfree(objs); in test_rht_init()
746 test_rht_params.max_size, test_rhashtable_max(objs, entries) == 0 ? in test_rht_init()
748 vfree(objs); in test_rht_init()
764 objs = vzalloc(array3_size(sizeof(struct test_obj), tcount, entries)); in test_rht_init()
765 if (!objs) { in test_rht_init()
777 vfree(objs); in test_rht_init()
783 tdata[i].objs = objs + i * entries; in test_rht_init()
809 vfree(objs); in test_rht_init()