Searched refs:add_one (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/lib/kunit/ |
D | kunit-example-test.c | 155 static int add_one(int i) in add_one() function 158 KUNIT_STATIC_STUB_REDIRECT(add_one, i); in add_one() 179 static int (* const add_one_fn_ptr)(int i) = add_one; 187 KUNIT_EXPECT_EQ(test, add_one(1), 2); in example_static_stub_test() 190 kunit_activate_static_stub(test, add_one, subtract_one); in example_static_stub_test() 193 KUNIT_EXPECT_EQ(test, add_one(1), 0); in example_static_stub_test() 196 kunit_deactivate_static_stub(test, add_one); in example_static_stub_test() 197 KUNIT_EXPECT_EQ(test, add_one(1), 2); in example_static_stub_test() 211 KUNIT_EXPECT_EQ(test, add_one(1), 2); in example_static_stub_using_fn_ptr_test() 217 KUNIT_EXPECT_EQ(test, add_one(1), 0); in example_static_stub_using_fn_ptr_test() [all …]
|
/linux-6.12.1/drivers/infiniband/core/ |
D | cma_trace.h | 352 DEFINE_CMA_CLIENT_EVENT(add_one);
|