Lines Matching refs:sk
110 struct sock *sk = sock->sk; in rng_recvmsg() local
111 struct alg_sock *ask = alg_sk(sk); in rng_recvmsg()
120 struct sock *sk = sock->sk; in rng_test_recvmsg() local
121 struct alg_sock *ask = alg_sk(sk); in rng_test_recvmsg()
125 lock_sock(sock->sk); in rng_test_recvmsg()
128 release_sock(sock->sk); in rng_test_recvmsg()
136 struct alg_sock *ask = alg_sk(sock->sk); in rng_test_sendmsg()
139 lock_sock(sock->sk); in rng_test_sendmsg()
160 release_sock(sock->sk); in rng_test_sendmsg()
232 static void rng_sock_destruct(struct sock *sk) in rng_sock_destruct() argument
234 struct alg_sock *ask = alg_sk(sk); in rng_sock_destruct()
238 sock_kfree_s(sk, ctx, ctx->len); in rng_sock_destruct()
239 af_alg_release_parent(sk); in rng_sock_destruct()
242 static int rng_accept_parent(void *private, struct sock *sk) in rng_accept_parent() argument
246 struct alg_sock *ask = alg_sk(sk); in rng_accept_parent()
249 ctx = sock_kmalloc(sk, len, GFP_KERNEL); in rng_accept_parent()
265 sk->sk_destruct = rng_sock_destruct; in rng_accept_parent()
272 sk->sk_socket->ops = &algif_rng_test_ops; in rng_accept_parent()