Lines Matching refs:sock
148 struct socket *sock; in handshake_req_submit_test1() local
153 &sock, 1); in handshake_req_submit_test1()
157 result = handshake_req_submit(sock, NULL, GFP_KERNEL); in handshake_req_submit_test1()
162 sock_release(sock); in handshake_req_submit_test1()
186 struct socket *sock; in handshake_req_submit_test3() local
194 &sock, 1); in handshake_req_submit_test3()
196 sock->file = NULL; in handshake_req_submit_test3()
199 result = handshake_req_submit(sock, req, GFP_KERNEL); in handshake_req_submit_test3()
205 sock_release(sock); in handshake_req_submit_test3()
211 struct socket *sock; in handshake_req_submit_test4() local
220 &sock, 1); in handshake_req_submit_test4()
222 filp = sock_alloc_file(sock, O_NONBLOCK, NULL); in handshake_req_submit_test4()
224 KUNIT_ASSERT_NOT_NULL(test, sock->sk); in handshake_req_submit_test4()
225 sock->file = filp; in handshake_req_submit_test4()
227 err = handshake_req_submit(sock, req, GFP_KERNEL); in handshake_req_submit_test4()
231 result = handshake_req_hash_lookup(sock->sk); in handshake_req_submit_test4()
237 handshake_req_cancel(sock->sk); in handshake_req_submit_test4()
245 struct socket *sock; in handshake_req_submit_test5() local
255 &sock, 1); in handshake_req_submit_test5()
257 filp = sock_alloc_file(sock, O_NONBLOCK, NULL); in handshake_req_submit_test5()
259 KUNIT_ASSERT_NOT_NULL(test, sock->sk); in handshake_req_submit_test5()
260 sock->file = filp; in handshake_req_submit_test5()
262 net = sock_net(sock->sk); in handshake_req_submit_test5()
270 err = handshake_req_submit(sock, req, GFP_KERNEL); in handshake_req_submit_test5()
282 struct socket *sock; in handshake_req_submit_test6() local
293 &sock, 1); in handshake_req_submit_test6()
295 filp = sock_alloc_file(sock, O_NONBLOCK, NULL); in handshake_req_submit_test6()
297 KUNIT_ASSERT_NOT_NULL(test, sock->sk); in handshake_req_submit_test6()
298 sock->file = filp; in handshake_req_submit_test6()
301 err = handshake_req_submit(sock, req1, GFP_KERNEL); in handshake_req_submit_test6()
303 err = handshake_req_submit(sock, req2, GFP_KERNEL); in handshake_req_submit_test6()
308 handshake_req_cancel(sock->sk); in handshake_req_submit_test6()
315 struct socket *sock; in handshake_req_cancel_test1() local
325 &sock, 1); in handshake_req_cancel_test1()
328 filp = sock_alloc_file(sock, O_NONBLOCK, NULL); in handshake_req_cancel_test1()
330 sock->file = filp; in handshake_req_cancel_test1()
332 err = handshake_req_submit(sock, req, GFP_KERNEL); in handshake_req_cancel_test1()
338 result = handshake_req_cancel(sock->sk); in handshake_req_cancel_test1()
350 struct socket *sock; in handshake_req_cancel_test2() local
361 &sock, 1); in handshake_req_cancel_test2()
364 filp = sock_alloc_file(sock, O_NONBLOCK, NULL); in handshake_req_cancel_test2()
366 sock->file = filp; in handshake_req_cancel_test2()
368 err = handshake_req_submit(sock, req, GFP_KERNEL); in handshake_req_cancel_test2()
371 net = sock_net(sock->sk); in handshake_req_cancel_test2()
380 result = handshake_req_cancel(sock->sk); in handshake_req_cancel_test2()
392 struct socket *sock; in handshake_req_cancel_test3() local
403 &sock, 1); in handshake_req_cancel_test3()
406 filp = sock_alloc_file(sock, O_NONBLOCK, NULL); in handshake_req_cancel_test3()
408 sock->file = filp; in handshake_req_cancel_test3()
410 err = handshake_req_submit(sock, req, GFP_KERNEL); in handshake_req_cancel_test3()
413 net = sock_net(sock->sk); in handshake_req_cancel_test3()
425 result = handshake_req_cancel(sock->sk); in handshake_req_cancel_test3()
450 struct socket *sock; in handshake_req_destroy_test1() local
461 &sock, 1); in handshake_req_destroy_test1()
464 filp = sock_alloc_file(sock, O_NONBLOCK, NULL); in handshake_req_destroy_test1()
466 sock->file = filp; in handshake_req_destroy_test1()
468 err = handshake_req_submit(sock, req, GFP_KERNEL); in handshake_req_destroy_test1()
471 handshake_req_cancel(sock->sk); in handshake_req_destroy_test1()