Lines Matching refs:sock
30 struct sock *sk;
42 static void iso_sock_close(struct sock *sk);
43 static void iso_sock_kill(struct sock *sk);
80 static bool iso_match_sid(struct sock *sk, void *data);
81 static bool iso_match_sync_handle(struct sock *sk, void *data);
82 static void iso_sock_disconn(struct sock *sk);
84 typedef bool (*iso_sock_match_t)(struct sock *sk, void *data);
86 static struct sock *iso_get_sock_listen(bdaddr_t *src, bdaddr_t *dst,
97 struct sock *sk;
108 BT_DBG("sock %p state %d", sk, sk->sk_state);
117 static void iso_sock_set_timer(struct sock *sk, long timeout)
122 BT_DBG("sock %p state %d timeout %ld", sk, sk->sk_state, timeout);
127 static void iso_sock_clear_timer(struct sock *sk)
132 BT_DBG("sock %p state %d", sk, sk->sk_state);
164 static void iso_chan_del(struct sock *sk, int err)
167 struct sock *parent;
197 static bool iso_match_conn_sync_handle(struct sock *sk, void *data)
210 struct sock *sk;
211 struct sock *parent;
259 static int __iso_chan_add(struct iso_conn *conn, struct sock *sk,
260 struct sock *parent)
281 static int iso_chan_add(struct iso_conn *conn, struct sock *sk,
282 struct sock *parent)
301 static int iso_connect_bis(struct sock *sk)
392 static int iso_connect_cis(struct sock *sk)
482 static struct bt_iso_qos *iso_sock_get_qos(struct sock *sk)
490 static int iso_send_frame(struct sock *sk, struct sk_buff *skb)
520 struct sock *sk;
542 static struct sock *__iso_get_sock_listen_by_addr(bdaddr_t *src, bdaddr_t *dst)
544 struct sock *sk;
560 static struct sock *__iso_get_sock_listen_by_sid(bdaddr_t *ba, bdaddr_t *bc,
563 struct sock *sk;
589 static struct sock *iso_get_sock_listen(bdaddr_t *src, bdaddr_t *dst,
592 struct sock *sk = NULL, *sk1 = NULL;
622 static void iso_sock_destruct(struct sock *sk)
630 static void iso_sock_cleanup_listen(struct sock *parent)
632 struct sock *sk;
658 static void iso_sock_kill(struct sock *sk)
672 static void iso_sock_disconn(struct sock *sk)
682 static void __iso_sock_close(struct sock *sk)
719 static void iso_sock_close(struct sock *sk)
728 static void iso_sock_init(struct sock *sk, struct sock *parent)
774 static struct sock *iso_sock_alloc(struct net *net, struct socket *sock,
777 struct sock *sk;
779 sk = bt_sock_alloc(net, sock, &iso_proto, proto, prio, kern);
795 static int iso_sock_create(struct net *net, struct socket *sock, int protocol,
798 struct sock *sk;
800 BT_DBG("sock %p", sock);
802 sock->state = SS_UNCONNECTED;
804 if (sock->type != SOCK_SEQPACKET)
807 sock->ops = &iso_sock_ops;
809 sk = iso_sock_alloc(net, sock, protocol, GFP_ATOMIC, kern);
817 static int iso_sock_bind_bc(struct socket *sock, struct sockaddr *addr,
821 struct sock *sk = sock->sk;
849 static int iso_sock_bind(struct socket *sock, struct sockaddr *addr,
853 struct sock *sk = sock->sk;
885 err = iso_sock_bind_bc(sock, addr, addr_len);
897 static int iso_sock_connect(struct socket *sock, struct sockaddr *addr,
901 struct sock *sk = sock->sk;
946 static int iso_listen_bis(struct sock *sk)
985 static int iso_listen_cis(struct sock *sk)
1001 static int iso_sock_listen(struct socket *sock, int backlog)
1003 struct sock *sk = sock->sk;
1038 static int iso_sock_accept(struct socket *sock, struct socket *newsock,
1042 struct sock *sk = sock->sk, *ch;
1093 static int iso_sock_getname(struct socket *sock, struct sockaddr *addr,
1097 struct sock *sk = sock->sk;
1099 BT_DBG("sock %p, sk %p", sock, sk);
1114 static int iso_sock_sendmsg(struct socket *sock, struct msghdr *msg,
1117 struct sock *sk = sock->sk;
1122 BT_DBG("sock %p, sk %p", sock, sk);
1201 static void iso_conn_big_sync(struct sock *sk)
1224 static int iso_sock_recvmsg(struct socket *sock, struct msghdr *msg,
1227 struct sock *sk = sock->sk;
1255 return bt_sock_recvmsg(sock, msg, len, flags);
1343 static int iso_sock_setsockopt(struct socket *sock, int level, int optname,
1346 struct sock *sk = sock->sk;
1441 static int iso_sock_getsockopt(struct socket *sock, int level, int optname,
1444 struct sock *sk = sock->sk;
1510 static int iso_sock_shutdown(struct socket *sock, int how)
1512 struct sock *sk = sock->sk;
1515 BT_DBG("sock %p, sk %p, how %d", sock, sk, how);
1555 static int iso_sock_release(struct socket *sock)
1557 struct sock *sk = sock->sk;
1560 BT_DBG("sock %p, sk %p", sock, sk);
1579 static void iso_sock_ready(struct sock *sk)
1598 static bool iso_match_big(struct sock *sk, void *data)
1605 static bool iso_match_pa_sync_flag(struct sock *sk, void *data)
1612 struct sock *parent = NULL;
1613 struct sock *sk = conn->sk;
1731 static bool iso_match_sid(struct sock *sk, void *data)
1738 static bool iso_match_sync_handle(struct sock *sk, void *data)
1745 static bool iso_match_sync_handle_pa_report(struct sock *sk, void *data)
1759 struct sock *sk;
2041 struct sock *sk;