• Home
  • Raw
  • Download

Lines Matching refs:sock

47     struct sock *sk;
57 static void sco_sock_close(struct sock *sk);
58 static void sco_sock_kill(struct sock *sk);
80 struct sock *sk; in sco_sock_timeout()
103 static void sco_sock_set_timer(struct sock *sk, long timeout) in sco_sock_set_timer()
114 static void sco_sock_clear_timer(struct sock *sk) in sco_sock_clear_timer()
158 static void sco_chan_del(struct sock *sk, int err) in sco_chan_del()
187 struct sock *sk; in sco_conn_del()
216 static void __sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent) in __sco_chan_add()
228 static int sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent) in sco_chan_add()
243 static int sco_connect(struct hci_dev *hdev, struct sock *sk) in sco_connect()
291 static int sco_send_frame(struct sock *sk, struct sk_buff *skb) in sco_send_frame()
310 struct sock *sk; in sco_recv_frame()
335 static struct sock *_sco_get_sock_listen_by_addr(bdaddr_t *ba) in _sco_get_sock_listen_by_addr()
337 struct sock *sk; in _sco_get_sock_listen_by_addr()
356 static struct sock *sco_get_sock_listen(bdaddr_t *src) in sco_get_sock_listen()
358 struct sock *sk = NULL, *sk1 = NULL; in sco_get_sock_listen()
384 static void sco_sock_destruct(struct sock *sk) in sco_sock_destruct()
392 static void sco_sock_cleanup_listen(struct sock *parent) in sco_sock_cleanup_listen()
394 struct sock *sk; in sco_sock_cleanup_listen()
411 static void sco_sock_kill(struct sock *sk) in sco_sock_kill()
425 static void _sco_sock_close(struct sock *sk) in _sco_sock_close()
461 static void sco_sock_close(struct sock *sk) in sco_sock_close()
469 static void sco_skb_put_cmsg(struct sk_buff *skb, struct msghdr *msg, struct sock *sk) in sco_skb_put_cmsg()
477 static void sco_sock_init(struct sock *sk, struct sock *parent) in sco_sock_init()
492 static struct sock *sco_sock_alloc(struct net *net, struct socket *sock, int proto, gfp_t prio, int… in sco_sock_alloc() argument
494 struct sock *sk; in sco_sock_alloc()
501 sock_init_data(sock, sk); in sco_sock_alloc()
518 static int sco_sock_create(struct net *net, struct socket *sock, int protocol, int kern) in sco_sock_create() argument
520 struct sock *sk; in sco_sock_create()
522 BT_DBG("sock %p", sock); in sco_sock_create()
524 sock->state = SS_UNCONNECTED; in sco_sock_create()
526 if (sock->type != SOCK_SEQPACKET) { in sco_sock_create()
530 sock->ops = &sco_sock_ops; in sco_sock_create()
532 sk = sco_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern); in sco_sock_create()
541 static int sco_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len) in sco_sock_bind() argument
544 struct sock *sk = sock->sk; in sco_sock_bind()
574 static int sco_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags) in sco_sock_connect() argument
577 struct sock *sk = sock->sk; in sco_sock_connect()
621 static int sco_sock_listen(struct socket *sock, int backlog) in sco_sock_listen() argument
623 struct sock *sk = sock->sk; in sco_sock_listen()
661 static int sco_sock_accept(struct socket *sock, struct socket *newsock, int flags, bool kern) in sco_sock_accept() argument
664 struct sock *sk = sock->sk, *ch; in sco_sock_accept()
717 static int sco_sock_getname(struct socket *sock, struct sockaddr *addr, int peer) in sco_sock_getname() argument
720 struct sock *sk = sock->sk; in sco_sock_getname()
722 BT_DBG("sock %p, sk %p", sock, sk); in sco_sock_getname()
735 static int sco_sock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) in sco_sock_sendmsg() argument
737 struct sock *sk = sock->sk; in sco_sock_sendmsg()
741 BT_DBG("sock %p, sk %p", sock, sk); in sco_sock_sendmsg()
821 static int sco_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, int flags) in sco_sock_recvmsg() argument
823 struct sock *sk = sock->sk; in sco_sock_recvmsg()
838 return bt_sock_recvmsg(sock, msg, len, flags); in sco_sock_recvmsg()
841 static int sco_sock_setsockopt(struct socket *sock, int level, int optname, sockptr_t optval, unsig… in sco_sock_setsockopt() argument
843 struct sock *sk = sock->sk; in sco_sock_setsockopt()
916 static int sco_sock_getsockopt_old(struct socket *sock, int optname, char __user *optval, int __use… in sco_sock_getsockopt_old() argument
918 struct sock *sk = sock->sk; in sco_sock_getsockopt_old()
977 static int sco_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval, in… in sco_sock_getsockopt() argument
979 struct sock *sk = sock->sk; in sco_sock_getsockopt()
988 return sco_sock_getsockopt_old(sock, optname, optval, optlen); in sco_sock_getsockopt()
1063 static int sco_sock_shutdown(struct socket *sock, int how) in sco_sock_shutdown() argument
1065 struct sock *sk = sock->sk; in sco_sock_shutdown()
1068 BT_DBG("sock %p, sk %p", sock, sk); in sco_sock_shutdown()
1093 static int sco_sock_release(struct socket *sock) in sco_sock_release() argument
1095 struct sock *sk = sock->sk; in sco_sock_release()
1098 BT_DBG("sock %p, sk %p", sock, sk); in sco_sock_release()
1119 struct sock *parent; in sco_conn_ready()
1120 struct sock *sk = conn->sk; in sco_conn_ready()
1179 struct sock *sk; in sco_connect_ind()
1264 struct sock *sk; in sco_debugfs_show()