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()
185 static void __sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent) in __sco_chan_add()
196 static int sco_chan_add(struct sco_conn *conn, struct sock *sk, in sco_chan_add()
197 struct sock *parent) in sco_chan_add()
211 static int sco_connect(struct sock *sk) in sco_connect()
272 static int sco_send_frame(struct sock *sk, struct msghdr *msg, int len) in sco_send_frame()
300 struct sock *sk; in sco_recv_frame()
322 static struct sock *__sco_get_sock_listen_by_addr(bdaddr_t *ba) in __sco_get_sock_listen_by_addr()
324 struct sock *sk; in __sco_get_sock_listen_by_addr()
340 static struct sock *sco_get_sock_listen(bdaddr_t *src) in sco_get_sock_listen()
342 struct sock *sk = NULL, *sk1 = NULL; in sco_get_sock_listen()
364 static void sco_sock_destruct(struct sock *sk) in sco_sock_destruct()
372 static void sco_sock_cleanup_listen(struct sock *parent) in sco_sock_cleanup_listen()
374 struct sock *sk; in sco_sock_cleanup_listen()
391 static void sco_sock_kill(struct sock *sk) in sco_sock_kill()
404 static void __sco_sock_close(struct sock *sk) in __sco_sock_close()
437 static void sco_sock_close(struct sock *sk) in sco_sock_close()
446 static void sco_sock_init(struct sock *sk, struct sock *parent) in sco_sock_init()
463 static struct sock *sco_sock_alloc(struct net *net, struct socket *sock, int proto, gfp_t prio) in sco_sock_alloc() argument
465 struct sock *sk; in sco_sock_alloc()
471 sock_init_data(sock, sk); in sco_sock_alloc()
490 static int sco_sock_create(struct net *net, struct socket *sock, int protocol, in sco_sock_create() argument
493 struct sock *sk; in sco_sock_create()
495 BT_DBG("sock %p", sock); in sco_sock_create()
497 sock->state = SS_UNCONNECTED; in sco_sock_create()
499 if (sock->type != SOCK_SEQPACKET) in sco_sock_create()
502 sock->ops = &sco_sock_ops; in sco_sock_create()
504 sk = sco_sock_alloc(net, sock, protocol, GFP_ATOMIC); in sco_sock_create()
512 static int sco_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len) in sco_sock_bind() argument
515 struct sock *sk = sock->sk; in sco_sock_bind()
547 static int sco_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags) in sco_sock_connect() argument
550 struct sock *sk = sock->sk; in sco_sock_connect()
582 static int sco_sock_listen(struct socket *sock, int backlog) in sco_sock_listen() argument
584 struct sock *sk = sock->sk; in sco_sock_listen()
622 static int sco_sock_accept(struct socket *sock, struct socket *newsock, int flags) in sco_sock_accept() argument
625 struct sock *sk = sock->sk, *ch; in sco_sock_accept()
676 static int sco_sock_getname(struct socket *sock, struct sockaddr *addr, int *len, int peer) in sco_sock_getname() argument
679 struct sock *sk = sock->sk; in sco_sock_getname()
681 BT_DBG("sock %p, sk %p", sock, sk); in sco_sock_getname()
694 static int sco_sock_sendmsg(struct socket *sock, struct msghdr *msg, in sco_sock_sendmsg() argument
697 struct sock *sk = sock->sk; in sco_sock_sendmsg()
700 BT_DBG("sock %p, sk %p", sock, sk); in sco_sock_sendmsg()
764 static int sco_sock_recvmsg(struct socket *sock, struct msghdr *msg, in sco_sock_recvmsg() argument
767 struct sock *sk = sock->sk; in sco_sock_recvmsg()
783 return bt_sock_recvmsg(sock, msg, len, flags); in sco_sock_recvmsg()
786 static int sco_sock_setsockopt(struct socket *sock, int level, int optname, char __user *optval, un… in sco_sock_setsockopt() argument
788 struct sock *sk = sock->sk; in sco_sock_setsockopt()
850 static int sco_sock_getsockopt_old(struct socket *sock, int optname, char __user *optval, int __use… in sco_sock_getsockopt_old() argument
852 struct sock *sk = sock->sk; in sco_sock_getsockopt_old()
910 static int sco_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval, in… in sco_sock_getsockopt() argument
912 struct sock *sk = sock->sk; in sco_sock_getsockopt()
919 return sco_sock_getsockopt_old(sock, optname, optval, optlen); in sco_sock_getsockopt()
958 static int sco_sock_shutdown(struct socket *sock, int how) in sco_sock_shutdown() argument
960 struct sock *sk = sock->sk; in sco_sock_shutdown()
963 BT_DBG("sock %p, sk %p", sock, sk); in sco_sock_shutdown()
983 static int sco_sock_release(struct socket *sock) in sco_sock_release() argument
985 struct sock *sk = sock->sk; in sco_sock_release()
988 BT_DBG("sock %p, sk %p", sock, sk); in sco_sock_release()
1009 struct sock *parent; in sco_conn_ready()
1010 struct sock *sk = conn->sk; in sco_conn_ready()
1064 struct sock *sk; in sco_connect_ind()
1143 struct sock *sk; in sco_debugfs_show()