Lines Matching refs:sock

49 	struct sock	*sk;
60 static void sco_sock_close(struct sock *sk);
61 static void sco_sock_kill(struct sock *sk);
131 static struct sock *sco_sock_hold(struct sco_conn *conn) in sco_sock_hold()
145 struct sock *sk; in sco_sock_timeout()
173 static void sco_sock_set_timer(struct sock *sk, long timeout) in sco_sock_set_timer()
183 static void sco_sock_clear_timer(struct sock *sk) in sco_sock_clear_timer()
231 static void sco_chan_del(struct sock *sk, int err) in sco_chan_del()
257 struct sock *sk; in sco_conn_del()
283 static void __sco_chan_add(struct sco_conn *conn, struct sock *sk, in __sco_chan_add()
284 struct sock *parent) in __sco_chan_add()
295 static int sco_chan_add(struct sco_conn *conn, struct sock *sk, in sco_chan_add()
296 struct sock *parent) in sco_chan_add()
310 static int sco_connect(struct sock *sk) in sco_connect()
381 static int sco_send_frame(struct sock *sk, struct sk_buff *skb, in sco_send_frame()
401 struct sock *sk; in sco_recv_frame()
423 static struct sock *__sco_get_sock_listen_by_addr(bdaddr_t *ba) in __sco_get_sock_listen_by_addr()
425 struct sock *sk; in __sco_get_sock_listen_by_addr()
441 static struct sock *sco_get_sock_listen(bdaddr_t *src) in sco_get_sock_listen()
443 struct sock *sk = NULL, *sk1 = NULL; in sco_get_sock_listen()
465 static void sco_sock_destruct(struct sock *sk) in sco_sock_destruct()
475 static void sco_sock_cleanup_listen(struct sock *parent) in sco_sock_cleanup_listen()
477 struct sock *sk; in sco_sock_cleanup_listen()
494 static void sco_sock_kill(struct sock *sk) in sco_sock_kill()
507 static void __sco_sock_close(struct sock *sk) in __sco_sock_close()
532 static void sco_sock_close(struct sock *sk) in sco_sock_close()
540 static void sco_sock_init(struct sock *sk, struct sock *parent) in sco_sock_init()
557 static struct sock *sco_sock_alloc(struct net *net, struct socket *sock, in sco_sock_alloc() argument
560 struct sock *sk; in sco_sock_alloc()
562 sk = bt_sock_alloc(net, sock, &sco_proto, proto, prio, kern); in sco_sock_alloc()
579 static int sco_sock_create(struct net *net, struct socket *sock, int protocol, in sco_sock_create() argument
582 struct sock *sk; in sco_sock_create()
584 BT_DBG("sock %p", sock); in sco_sock_create()
586 sock->state = SS_UNCONNECTED; in sco_sock_create()
588 if (sock->type != SOCK_SEQPACKET) in sco_sock_create()
591 sock->ops = &sco_sock_ops; in sco_sock_create()
593 sk = sco_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern); in sco_sock_create()
601 static int sco_sock_bind(struct socket *sock, struct sockaddr *addr, in sco_sock_bind() argument
605 struct sock *sk = sock->sk; in sco_sock_bind()
635 static int sco_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags) in sco_sock_connect() argument
638 struct sock *sk = sock->sk; in sco_sock_connect()
671 static int sco_sock_listen(struct socket *sock, int backlog) in sco_sock_listen() argument
673 struct sock *sk = sock->sk; in sco_sock_listen()
711 static int sco_sock_accept(struct socket *sock, struct socket *newsock, in sco_sock_accept() argument
715 struct sock *sk = sock->sk, *ch; in sco_sock_accept()
766 static int sco_sock_getname(struct socket *sock, struct sockaddr *addr, in sco_sock_getname() argument
770 struct sock *sk = sock->sk; in sco_sock_getname()
772 BT_DBG("sock %p, sk %p", sock, sk); in sco_sock_getname()
784 static int sco_sock_sendmsg(struct socket *sock, struct msghdr *msg, in sco_sock_sendmsg() argument
787 struct sock *sk = sock->sk; in sco_sock_sendmsg()
792 BT_DBG("sock %p, sk %p", sock, sk); in sco_sock_sendmsg()
876 static int sco_sock_recvmsg(struct socket *sock, struct msghdr *msg, in sco_sock_recvmsg() argument
879 struct sock *sk = sock->sk; in sco_sock_recvmsg()
899 return bt_sock_recvmsg(sock, msg, len, flags); in sco_sock_recvmsg()
902 static int sco_sock_setsockopt(struct socket *sock, int level, int optname, in sco_sock_setsockopt() argument
905 struct sock *sk = sock->sk; in sco_sock_setsockopt()
1039 static int sco_sock_getsockopt_old(struct socket *sock, int optname, in sco_sock_getsockopt_old() argument
1042 struct sock *sk = sock->sk; in sco_sock_getsockopt_old()
1101 static int sco_sock_getsockopt(struct socket *sock, int level, int optname, in sco_sock_getsockopt() argument
1104 struct sock *sk = sock->sk; in sco_sock_getsockopt()
1118 return sco_sock_getsockopt_old(sock, optname, optval, optlen); in sco_sock_getsockopt()
1283 static int sco_sock_shutdown(struct socket *sock, int how) in sco_sock_shutdown() argument
1285 struct sock *sk = sock->sk; in sco_sock_shutdown()
1288 BT_DBG("sock %p, sk %p", sock, sk); in sco_sock_shutdown()
1313 static int sco_sock_release(struct socket *sock) in sco_sock_release() argument
1315 struct sock *sk = sock->sk; in sco_sock_release()
1318 BT_DBG("sock %p, sk %p", sock, sk); in sco_sock_release()
1339 struct sock *parent; in sco_conn_ready()
1340 struct sock *sk = conn->sk; in sco_conn_ready()
1400 struct sock *sk; in sco_connect_ind()
1480 struct sock *sk; in sco_debugfs_show()