Home
last modified time | relevance | path

Searched refs:kunit_add_action_or_reset (Results 1 – 20 of 20) sorted by relevance

/linux/drivers/gpu/drm/tests/
H A Ddrm_gem_shmem_test.c81 ret = kunit_add_action_or_reset(test, kfree_wrapper, sgt); in drm_gem_shmem_test_obj_create_private()
87 ret = kunit_add_action_or_reset(test, sg_free_table_wrapper, sgt); in drm_gem_shmem_test_obj_create_private()
139 ret = kunit_add_action_or_reset(test, drm_gem_shmem_free_wrapper, shmem); in drm_gem_shmem_test_pin_pages()
173 ret = kunit_add_action_or_reset(test, drm_gem_shmem_free_wrapper, shmem); in drm_gem_shmem_test_vmap()
209 ret = kunit_add_action_or_reset(test, drm_gem_shmem_free_wrapper, shmem); in drm_gem_shmem_test_get_pages_sgt()
219 ret = kunit_add_action_or_reset(test, sg_free_table_wrapper, sgt); in drm_gem_shmem_test_get_pages_sgt()
247 ret = kunit_add_action_or_reset(test, drm_gem_shmem_free_wrapper, shmem); in drm_gem_shmem_test_get_sg_table()
281 ret = kunit_add_action_or_reset(test, drm_gem_shmem_free_wrapper, shmem); in drm_gem_shmem_test_madvise()
316 ret = kunit_add_action_or_reset(test, drm_gem_shmem_free_wrapper, shmem); in drm_gem_shmem_test_purge()
H A Ddrm_kunit_helpers.c114 ret = kunit_add_action_or_reset(test, in drm_kunit_helper_acquire_ctx_alloc()
157 ret = kunit_add_action_or_reset(test, in drm_kunit_helper_atomic_state_alloc()
346 ret = kunit_add_action_or_reset(test, in drm_kunit_display_mode_from_cea_vic()
H A Ddrm_connector_test.c81 ret = kunit_add_action_or_reset(test, i2c_del_adapter_wrapper, &priv->ddc); in drm_test_connector_init()
/linux/drivers/clk/
H A Dclk_kunit_helpers.c31 return kunit_add_action_or_reset(test, clk_disable_unprepare_wrapper, in clk_prepare_enable_kunit()
45 ret = kunit_add_action_or_reset(test, clk_put_wrapper, clk); in __clk_get_kunit()
178 return kunit_add_action_or_reset(test, clk_hw_unregister_wrapper, hw); in clk_hw_register_kunit()
202 return kunit_add_action_or_reset(test, clk_hw_unregister_wrapper, hw); in of_clk_hw_register_kunit()
/linux/lib/kunit/
H A Dplatform.c124 ret = kunit_add_action_or_reset(test, platform_device_unregister_wrapper, pdev); in kunit_platform_device_add()
231 return kunit_add_action_or_reset(test, kunit_platform_device_probe_nb_remove, &knb->nb); in kunit_platform_device_prepare_wait_for_probe()
300 return kunit_add_action_or_reset(test, platform_driver_unregister_wrapper, drv); in kunit_platform_driver_register()
H A Dresource.c116 int kunit_add_action_or_reset(struct kunit *test, void (*action)(void *), in kunit_add_action_or_reset() function
125 EXPORT_SYMBOL_GPL(kunit_add_action_or_reset);
H A Dstring-stream.c198 if (kunit_add_action_or_reset(test, resource_free_string_stream, stream) != 0) in kunit_alloc_string_stream()
H A Dtest.c861 if (kunit_add_action_or_reset(test, kfree_action_wrapper, data) != 0) in KUNIT_DEFINE_ACTION_WRAPPER()
/linux/drivers/gpu/drm/xe/tests/
H A Dxe_kunit_helpers.c86 err = kunit_add_action_or_reset(test, kunit_action_restore_priv, test->priv); in xe_kunit_helper_xe_device_test_init()
124 KUNIT_ASSERT_EQ(test, 0, kunit_add_action_or_reset(test, put_xe_pm_runtime, xe)); in xe_kunit_helper_xe_device_live_test_init()
/linux/drivers/fpga/tests/
H A Dfpga-region-test.c127 ret = kunit_add_action_or_reset(test, fpga_image_info_free_wrapper, img_info); in fpga_region_test_program_fpga()
182 ret = kunit_add_action_or_reset(test, fpga_bridge_unregister_wrapper, ctx->bridge); in fpga_region_test_init()
195 ret = kunit_add_action_or_reset(test, fpga_region_unregister_wrapper, ctx->region); in fpga_region_test_init()
H A Dfpga-mgr-test.c270 ret = kunit_add_action_or_reset(test, sg_free_table_wrapper, sgt); in fpga_mgr_test_img_load_sgt()
309 ret = kunit_add_action_or_reset(test, fpga_image_info_free_wrapper, ctx->img_info); in fpga_mgr_test_init()
H A Dfpga-bridge-test.c72 ret = kunit_add_action_or_reset(test, fpga_bridge_unregister_wrapper, ctx->bridge); in register_test_bridge()
/linux/include/kunit/
H A Dskbuff.h37 if (kunit_add_action_or_reset(test, kunit_action_kfree_skb, res)) in kunit_zalloc_skb()
H A Dresource.h459 int kunit_add_action_or_reset(struct kunit *test, kunit_action_t *action,
/linux/drivers/of/
H A Dof_kunit_helpers.c65 return kunit_add_action_or_reset(test, of_overlay_fdt_apply_kunit_exit, in of_overlay_fdt_apply_kunit()
/linux/drivers/gpu/drm/vc4/tests/
H A Dvc4_mock.c191 ret = kunit_add_action_or_reset(test, in __mock_device()
/linux/lib/
H A Dkunit_iov_iter.c72 kunit_add_action_or_reset(test, iov_kunit_unmap, buffer); in iov_kunit_create_buffer()
411 kunit_add_action_or_reset(test, iov_kunit_destroy_folioq, folioq); in iov_kunit_create_folioq()
574 kunit_add_action_or_reset(test, iov_kunit_destroy_xarray, xarray); in iov_kunit_create_xarray()
/linux/kernel/
H A Dresource_kunit.c186 kunit_add_action_or_reset(test, action, ctx), in resource_test_add_action_or_abort()
/linux/drivers/base/regmap/
H A Dregmap-kunit.c212 error = kunit_add_action_or_reset(test, regmap_exit_action, ret); in gen_regmap()
1650 error = kunit_add_action_or_reset(test, regmap_exit_action, ret); in gen_raw_regmap()
/linux/Documentation/dev-tools/kunit/
H A Dusage.rst662 You can use ``kunit_add_action_or_reset`` instead which runs the action