Lines Matching refs:sock

48 	struct sock	*sk;
56 static void sco_sock_close(struct sock *sk);
57 static void sco_sock_kill(struct sock *sk);
77 struct sock *sk = (struct sock *)arg; in sco_sock_timeout()
90 static void sco_sock_set_timer(struct sock *sk, long timeout) in sco_sock_set_timer()
96 static void sco_sock_clear_timer(struct sock *sk) in sco_sock_clear_timer()
132 static void sco_chan_del(struct sock *sk, int err) in sco_chan_del()
160 struct sock *sk; in sco_conn_del()
186 static void __sco_chan_add(struct sco_conn *conn, struct sock *sk, in __sco_chan_add()
187 struct sock *parent) in __sco_chan_add()
198 static int sco_chan_add(struct sco_conn *conn, struct sock *sk, in sco_chan_add()
199 struct sock *parent) in sco_chan_add()
213 static int sco_connect(struct sock *sk) in sco_connect()
274 static int sco_send_frame(struct sock *sk, struct msghdr *msg, int len) in sco_send_frame()
302 struct sock *sk; in sco_recv_frame()
324 static struct sock *__sco_get_sock_listen_by_addr(bdaddr_t *ba) in __sco_get_sock_listen_by_addr()
326 struct sock *sk; in __sco_get_sock_listen_by_addr()
342 static struct sock *sco_get_sock_listen(bdaddr_t *src) in sco_get_sock_listen()
344 struct sock *sk = NULL, *sk1 = NULL; in sco_get_sock_listen()
366 static void sco_sock_destruct(struct sock *sk) in sco_sock_destruct()
374 static void sco_sock_cleanup_listen(struct sock *parent) in sco_sock_cleanup_listen()
376 struct sock *sk; in sco_sock_cleanup_listen()
393 static void sco_sock_kill(struct sock *sk) in sco_sock_kill()
406 static void __sco_sock_close(struct sock *sk) in __sco_sock_close()
441 static void sco_sock_close(struct sock *sk) in sco_sock_close()
450 static void sco_sock_init(struct sock *sk, struct sock *parent) in sco_sock_init()
467 static struct sock *sco_sock_alloc(struct net *net, struct socket *sock, in sco_sock_alloc() argument
470 struct sock *sk; in sco_sock_alloc()
476 sock_init_data(sock, sk); in sco_sock_alloc()
495 static int sco_sock_create(struct net *net, struct socket *sock, int protocol, in sco_sock_create() argument
498 struct sock *sk; in sco_sock_create()
500 BT_DBG("sock %p", sock); in sco_sock_create()
502 sock->state = SS_UNCONNECTED; in sco_sock_create()
504 if (sock->type != SOCK_SEQPACKET) in sco_sock_create()
507 sock->ops = &sco_sock_ops; in sco_sock_create()
509 sk = sco_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern); in sco_sock_create()
517 static int sco_sock_bind(struct socket *sock, struct sockaddr *addr, in sco_sock_bind() argument
521 struct sock *sk = sock->sk; in sco_sock_bind()
553 static int sco_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags) in sco_sock_connect() argument
556 struct sock *sk = sock->sk; in sco_sock_connect()
588 static int sco_sock_listen(struct socket *sock, int backlog) in sco_sock_listen() argument
590 struct sock *sk = sock->sk; in sco_sock_listen()
628 static int sco_sock_accept(struct socket *sock, struct socket *newsock, in sco_sock_accept() argument
632 struct sock *sk = sock->sk, *ch; in sco_sock_accept()
683 static int sco_sock_getname(struct socket *sock, struct sockaddr *addr, in sco_sock_getname() argument
687 struct sock *sk = sock->sk; in sco_sock_getname()
689 BT_DBG("sock %p, sk %p", sock, sk); in sco_sock_getname()
702 static int sco_sock_sendmsg(struct socket *sock, struct msghdr *msg, in sco_sock_sendmsg() argument
705 struct sock *sk = sock->sk; in sco_sock_sendmsg()
708 BT_DBG("sock %p, sk %p", sock, sk); in sco_sock_sendmsg()
772 static int sco_sock_recvmsg(struct socket *sock, struct msghdr *msg, in sco_sock_recvmsg() argument
775 struct sock *sk = sock->sk; in sco_sock_recvmsg()
791 return bt_sock_recvmsg(sock, msg, len, flags); in sco_sock_recvmsg()
794 static int sco_sock_setsockopt(struct socket *sock, int level, int optname, in sco_sock_setsockopt() argument
797 struct sock *sk = sock->sk; in sco_sock_setsockopt()
859 static int sco_sock_getsockopt_old(struct socket *sock, int optname, in sco_sock_getsockopt_old() argument
862 struct sock *sk = sock->sk; in sco_sock_getsockopt_old()
920 static int sco_sock_getsockopt(struct socket *sock, int level, int optname, in sco_sock_getsockopt() argument
923 struct sock *sk = sock->sk; in sco_sock_getsockopt()
930 return sco_sock_getsockopt_old(sock, optname, optval, optlen); in sco_sock_getsockopt()
969 static int sco_sock_shutdown(struct socket *sock, int how) in sco_sock_shutdown() argument
971 struct sock *sk = sock->sk; in sco_sock_shutdown()
974 BT_DBG("sock %p, sk %p", sock, sk); in sco_sock_shutdown()
999 static int sco_sock_release(struct socket *sock) in sco_sock_release() argument
1001 struct sock *sk = sock->sk; in sco_sock_release()
1004 BT_DBG("sock %p, sk %p", sock, sk); in sco_sock_release()
1025 struct sock *parent; in sco_conn_ready()
1026 struct sock *sk = conn->sk; in sco_conn_ready()
1085 struct sock *sk; in sco_connect_ind()
1163 struct sock *sk; in sco_debugfs_show()