Lines Matching full:sock

23 static void nfc_sock_link(struct nfc_sock_list *l, struct sock *sk)  in nfc_sock_link()
30 static void nfc_sock_unlink(struct nfc_sock_list *l, struct sock *sk) in nfc_sock_unlink()
37 static void rawsock_write_queue_purge(struct sock *sk) in rawsock_write_queue_purge()
47 static void rawsock_report_error(struct sock *sk, int err) in rawsock_report_error()
58 static int rawsock_release(struct socket *sock) in rawsock_release() argument
60 struct sock *sk = sock->sk; in rawsock_release()
62 pr_debug("sock=%p sk=%p\n", sock, sk); in rawsock_release()
67 if (sock->type == SOCK_RAW) in rawsock_release()
87 static int rawsock_connect(struct socket *sock, struct sockaddr_unsized *_addr, in rawsock_connect() argument
90 struct sock *sk = sock->sk; in rawsock_connect()
95 pr_debug("sock=%p sk=%p flags=%d\n", sock, sk, flags); in rawsock_connect()
106 if (sock->state == SS_CONNECTED) { in rawsock_connect()
129 sock->state = SS_CONNECTED; in rawsock_connect()
153 struct sock *sk = (struct sock *) context; in rawsock_data_exchange_complete()
190 struct sock *sk = to_rawsock_sk(work); in rawsock_tx_work()
216 static int rawsock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) in rawsock_sendmsg() argument
218 struct sock *sk = sock->sk; in rawsock_sendmsg()
223 pr_debug("sock=%p sk=%p len=%zu\n", sock, sk, len); in rawsock_sendmsg()
228 if (sock->state != SS_CONNECTED) in rawsock_sendmsg()
252 static int rawsock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, in rawsock_recvmsg() argument
255 struct sock *sk = sock->sk; in rawsock_recvmsg()
260 pr_debug("sock=%p sk=%p len=%zu flags=%d\n", sock, sk, len, flags); in rawsock_recvmsg()
315 static void rawsock_destruct(struct sock *sk) in rawsock_destruct()
334 static int rawsock_create(struct net *net, struct socket *sock, in rawsock_create() argument
337 struct sock *sk; in rawsock_create()
339 pr_debug("sock=%p\n", sock); in rawsock_create()
341 if ((sock->type != SOCK_SEQPACKET) && (sock->type != SOCK_RAW)) in rawsock_create()
344 if (sock->type == SOCK_RAW) { in rawsock_create()
347 sock->ops = &rawsock_raw_ops; in rawsock_create()
349 sock->ops = &rawsock_ops; in rawsock_create()
356 sock_init_data(sock, sk); in rawsock_create()
359 sock->state = SS_UNCONNECTED; in rawsock_create()
360 if (sock->type == SOCK_RAW) in rawsock_create()
374 struct sock *sk; in nfc_send_to_raw_sock()