Home
last modified time | relevance | path

Searched refs:kunit_get_current_test (Results 1 – 23 of 23) sorted by relevance

/linux-6.12.1/include/kunit/
Dtest-bug.h41 static inline struct kunit *kunit_get_current_test(void) in kunit_get_current_test() function
65 static inline struct kunit *kunit_get_current_test(void) { return NULL; } in kunit_get_current_test() function
Dstatic_stub.h62 struct kunit *current_test = kunit_get_current_test(); \
/linux-6.12.1/drivers/gpu/drm/xe/tests/
Dxe_mocs.c26 struct kunit *test = kunit_get_current_test(); in live_mocs_init()
44 struct kunit *test = kunit_get_current_test(); in read_l3cc_table()
81 struct kunit *test = kunit_get_current_test(); in read_mocs_table()
155 struct kunit *test = kunit_get_current_test(); in mocs_reset_test_run_device()
Dxe_test.h49 if (!kunit_get_current_test()) in xe_cur_kunit_priv()
52 priv = kunit_get_current_test()->priv; in xe_cur_kunit_priv()
Dxe_pci_test.c19 struct kunit *test = kunit_get_current_test(); in check_graphics_ip()
33 struct kunit *test = kunit_get_current_test(); in check_media_ip()
Dxe_pci.c62 struct kunit *test = kunit_get_current_test(); in fake_read_gmdid()
76 struct kunit *test = kunit_get_current_test(); in xe_pci_fake_device_init()
Dxe_dma_buf.c110 struct kunit *test = kunit_get_current_test(); in xe_test_dmabuf_import_same_driver()
261 struct kunit *test = kunit_get_current_test(); in dma_buf_run_device()
Dxe_kunit_helpers.c48 struct kunit *test = kunit_get_current_test(); in kunit_action_restore_priv()
Dxe_bo.c158 struct kunit *test = kunit_get_current_test(); in ccs_test_run_device()
335 struct kunit *test = kunit_get_current_test(); in evict_test_run_device()
Dxe_guc_relay_test.c65 struct kunit *test = kunit_get_current_test(); in replacement_xe_guc_ct_send_recv_always_fails()
78 struct kunit *test = kunit_get_current_test(); in replacement_xe_guc_ct_send_recv_expects_pf2guc_relay()
226 struct kunit *test = kunit_get_current_test(); in replacement_xe_guc_ct_send_recv_loopback_relay()
Dxe_migrate.c340 struct kunit *test = kunit_get_current_test(); in migrate_test_run_device()
738 struct kunit *test = kunit_get_current_test(); in validate_ccs_test_run_device()
/linux-6.12.1/rust/helpers/
Dkunit.c8 return kunit_get_current_test(); in rust_helper_kunit_get_current_test()
/linux-6.12.1/net/wireless/tests/
Dutil.c15 struct kunit *test = kunit_get_current_test(); in t_wiphy_init()
/linux-6.12.1/rust/kernel/
Dkunit.rs64 let kunit_test = unsafe { $crate::bindings::kunit_get_current_test() };
/linux-6.12.1/Documentation/dev-tools/kunit/api/
Dfunctionredirection.rst69 kunit_get_current_test() to get a struct kunit pointer. This can then
79 struct kunit *test = kunit_get_current_test();
/linux-6.12.1/lib/kunit/
Dkunit-test.c709 KUNIT_EXPECT_PTR_EQ(test, test, kunit_get_current_test()); in kunit_current_test()
786 struct kunit *test = kunit_get_current_test(); in driver_probe_hook()
795 struct kunit *test = kunit_get_current_test(); in driver_remove_hook()
Dkunit-example-test.c269 KUNIT_ASSERT_PTR_EQ(test, test->priv, kunit_get_current_test()->priv); in example_priv_test()
Dstring-stream-test.c75 struct kunit *fake_test = kunit_get_current_test(); in string_stream_destroy_stub()
/linux-6.12.1/sound/soc/codecs/
Dcs-amp-lib-test.c114 struct kunit *test = kunit_get_current_test(); in cs_amp_lib_test_get_efi_variable_bad_count()
187 struct kunit *test = kunit_get_current_test(); in cs_amp_lib_test_get_efi_variable()
574 struct kunit *test = kunit_get_current_test(); in cs_amp_lib_test_write_cal_coeff()
/linux-6.12.1/drivers/gpu/drm/xe/
Dxe_guc_relay.c875 if (unlikely(!IS_SRIOV_VF(relay_to_xe(relay)) && !kunit_get_current_test())) in xe_guc_relay_process_guc2vf()
921 if (unlikely(!IS_SRIOV_PF(relay_to_xe(relay)) && !kunit_get_current_test())) in xe_guc_relay_process_guc2pf()
/linux-6.12.1/Documentation/dev-tools/kunit/
Dusage.rst728 access using the ``kunit_get_current_test()`` function in ``kunit/test-bug.h``.
730 ``kunit_get_current_test()`` is safe to call even if KUnit is not enabled. If
739 #include <kunit/test-bug.h> /* for kunit_get_current_test */
748 struct kunit *test = kunit_get_current_test();
/linux-6.12.1/lib/
Dfortify_kunit.c70 current_test = kunit_get_current_test(); in fortify_add_kunit_error()
/linux-6.12.1/mm/
Dslub.c818 if (!kunit_get_current_test()) in slab_add_kunit_errors()
834 if (!kunit_get_current_test()) in slab_in_kunit_test()