Lines Matching defs:objagg

10 #include <linux/objagg.h>
47 struct objagg *objagg,
55 objagg_obj = objagg_obj_get(objagg, &key);
72 objagg_obj_put(objagg, objagg_obj);
76 static void world_obj_put(struct world *world, struct objagg *objagg,
84 objagg_obj_put(objagg, objagg_obj);
151 static int test_nodelta_obj_get(struct world *world, struct objagg *objagg,
163 objagg_obj = world_obj_get(world, objagg, key_id);
200 objagg_obj_put(objagg, objagg_obj);
204 static int test_nodelta_obj_put(struct world *world, struct objagg *objagg,
209 world_obj_put(world, objagg, key_id);
226 static int check_stats_zero(struct objagg *objagg)
231 stats = objagg_stats_get(objagg);
244 static int check_stats_nodelta(struct objagg *objagg)
250 stats = objagg_stats_get(objagg);
307 struct objagg *objagg;
311 objagg = objagg_create(&nodelta_ops, NULL, &world);
312 if (IS_ERR(objagg))
313 return PTR_ERR(objagg);
315 err = check_stats_zero(objagg);
321 err = test_nodelta_obj_get(&world, objagg, i, true);
330 err = test_nodelta_obj_get(&world, objagg, i, false);
335 err = check_stats_nodelta(objagg);
340 err = test_nodelta_obj_put(&world, objagg, i, false);
345 err = test_nodelta_obj_put(&world, objagg, i, true);
350 err = check_stats_zero(objagg);
354 objagg_destroy(objagg);
361 world_obj_put(&world, objagg, i);
367 world_obj_put(&world, objagg, i);
370 objagg_destroy(objagg);
740 static int check_expect_stats(struct objagg *objagg,
747 stats = objagg_stats_get(objagg);
758 struct objagg *objagg,
775 objagg_obj = world_obj_get(world, objagg, key_id);
780 world_obj_put(world, objagg, key_id);
791 err = check_expect_stats(objagg, &action_item->expect_stats, &errmsg);
803 test_delta_action_item(world, objagg, action_item, true);
810 struct objagg *objagg;
814 objagg = objagg_create(&delta_ops, NULL, &world);
815 if (IS_ERR(objagg))
816 return PTR_ERR(objagg);
819 err = test_delta_action_item(&world, objagg,
825 objagg_destroy(objagg);
830 test_delta_action_item(&world, objagg, &action_items[i], true);
832 objagg_destroy(objagg);
872 static void pr_debug_stats(struct objagg *objagg)
876 stats = objagg_stats_get(objagg);
915 struct objagg *objagg2;
916 struct objagg *objagg;
921 objagg = objagg_create(&delta_ops, NULL, &world);
922 if (IS_ERR(objagg))
923 return PTR_ERR(objagg);
926 objagg_obj = world_obj_get(&world, objagg,
934 pr_debug_stats(objagg);
935 err = check_expect_stats(objagg, &hints_case->expect_stats, &errmsg);
941 hints = objagg_hints_get(objagg, OBJAGG_OPT_ALGO_SIMPLE_GREEDY);
981 world_obj_put(&world2, objagg, hints_case->key_ids[i]);
990 world_obj_put(&world, objagg, hints_case->key_ids[i]);
992 objagg_destroy(objagg);
1021 MODULE_DESCRIPTION("Test module for objagg");