Lines Matching defs:sock

23 static void nfc_sock_link(struct nfc_sock_list *l, struct sock *sk)
30 static void nfc_sock_unlink(struct nfc_sock_list *l, struct sock *sk)
37 static void rawsock_write_queue_purge(struct sock *sk)
47 static void rawsock_report_error(struct sock *sk, int err)
58 static int rawsock_release(struct socket *sock)
60 struct sock *sk = sock->sk;
62 pr_debug("sock=%p sk=%p\n", sock, sk);
67 if (sock->type == SOCK_RAW)
76 static int rawsock_connect(struct socket *sock, struct sockaddr *_addr,
79 struct sock *sk = sock->sk;
84 pr_debug("sock=%p sk=%p flags=%d\n", sock, sk, flags);
95 if (sock->state == SS_CONNECTED) {
118 sock->state = SS_CONNECTED;
142 struct sock *sk = (struct sock *) context;
179 struct sock *sk = to_rawsock_sk(work);
205 static int rawsock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
207 struct sock *sk = sock->sk;
212 pr_debug("sock=%p sk=%p len=%zu\n", sock, sk, len);
217 if (sock->state != SS_CONNECTED)
241 static int rawsock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
244 struct sock *sk = sock->sk;
249 pr_debug("sock=%p sk=%p len=%zu flags=%d\n", sock, sk, len, flags);
304 static void rawsock_destruct(struct sock *sk)
323 static int rawsock_create(struct net *net, struct socket *sock,
326 struct sock *sk;
328 pr_debug("sock=%p\n", sock);
330 if ((sock->type != SOCK_SEQPACKET) && (sock->type != SOCK_RAW))
333 if (sock->type == SOCK_RAW) {
336 sock->ops = &rawsock_raw_ops;
338 sock->ops = &rawsock_ops;
345 sock_init_data(sock, sk);
348 sock->state = SS_UNCONNECTED;
349 if (sock->type == SOCK_RAW)
363 struct sock *sk;