Lines Matching refs:req

22 static int test_accept_func(struct handshake_req *req, struct genl_info *info,  in test_accept_func()  argument
28 static void test_done_func(struct handshake_req *req, unsigned int status, in test_done_func() argument
167 struct handshake_req *req; in handshake_req_submit_test2() local
171 req = handshake_req_alloc(&handshake_req_alloc_proto_good, GFP_KERNEL); in handshake_req_submit_test2()
172 KUNIT_ASSERT_NOT_NULL(test, req); in handshake_req_submit_test2()
175 result = handshake_req_submit(NULL, req, GFP_KERNEL); in handshake_req_submit_test2()
185 struct handshake_req *req; in handshake_req_submit_test3() local
190 req = handshake_req_alloc(&handshake_req_alloc_proto_good, GFP_KERNEL); in handshake_req_submit_test3()
191 KUNIT_ASSERT_NOT_NULL(test, req); in handshake_req_submit_test3()
199 result = handshake_req_submit(sock, req, GFP_KERNEL); in handshake_req_submit_test3()
210 struct handshake_req *req, *result; in handshake_req_submit_test4() local
216 req = handshake_req_alloc(&handshake_req_alloc_proto_good, GFP_KERNEL); in handshake_req_submit_test4()
217 KUNIT_ASSERT_NOT_NULL(test, req); in handshake_req_submit_test4()
227 err = handshake_req_submit(sock, req, GFP_KERNEL); in handshake_req_submit_test4()
235 KUNIT_EXPECT_PTR_EQ(test, req, result); in handshake_req_submit_test4()
243 struct handshake_req *req; in handshake_req_submit_test5() local
251 req = handshake_req_alloc(&handshake_req_alloc_proto_good, GFP_KERNEL); in handshake_req_submit_test5()
252 KUNIT_ASSERT_NOT_NULL(test, req); in handshake_req_submit_test5()
270 err = handshake_req_submit(sock, req, GFP_KERNEL); in handshake_req_submit_test5()
314 struct handshake_req *req; in handshake_req_cancel_test1() local
321 req = handshake_req_alloc(&handshake_req_alloc_proto_good, GFP_KERNEL); in handshake_req_cancel_test1()
322 KUNIT_ASSERT_NOT_NULL(test, req); in handshake_req_cancel_test1()
332 err = handshake_req_submit(sock, req, GFP_KERNEL); in handshake_req_cancel_test1()
348 struct handshake_req *req, *next; in handshake_req_cancel_test2() local
357 req = handshake_req_alloc(&handshake_req_alloc_proto_good, GFP_KERNEL); in handshake_req_cancel_test2()
358 KUNIT_ASSERT_NOT_NULL(test, req); in handshake_req_cancel_test2()
368 err = handshake_req_submit(sock, req, GFP_KERNEL); in handshake_req_cancel_test2()
377 KUNIT_ASSERT_PTR_EQ(test, req, next); in handshake_req_cancel_test2()
390 struct handshake_req *req, *next; in handshake_req_cancel_test3() local
399 req = handshake_req_alloc(&handshake_req_alloc_proto_good, GFP_KERNEL); in handshake_req_cancel_test3()
400 KUNIT_ASSERT_NOT_NULL(test, req); in handshake_req_cancel_test3()
410 err = handshake_req_submit(sock, req, GFP_KERNEL); in handshake_req_cancel_test3()
419 KUNIT_ASSERT_PTR_EQ(test, req, next); in handshake_req_cancel_test3()
435 static void test_destroy_func(struct handshake_req *req) in test_destroy_func() argument
437 handshake_req_destroy_test = req; in test_destroy_func()
449 struct handshake_req *req; in handshake_req_destroy_test1() local
457 req = handshake_req_alloc(&handshake_req_alloc_proto_destroy, GFP_KERNEL); in handshake_req_destroy_test1()
458 KUNIT_ASSERT_NOT_NULL(test, req); in handshake_req_destroy_test1()
468 err = handshake_req_submit(sock, req, GFP_KERNEL); in handshake_req_destroy_test1()
480 KUNIT_EXPECT_PTR_EQ(test, handshake_req_destroy_test, req); in handshake_req_destroy_test1()