Lines Matching refs:sock
37 #include <net/sock.h>
74 static inline void bt_sock_reclassify_lock(struct socket *sock, int proto)
76 struct sock *sk = sock->sk;
128 static int bt_sock_create(struct net *net, struct socket *sock, int proto,
147 err = bt_proto[proto]->create(net, sock, proto, kern);
148 bt_sock_reclassify_lock(sock, proto);
157 void bt_sock_link(struct bt_sock_list *l, struct sock *sk)
165 void bt_sock_unlink(struct bt_sock_list *l, struct sock *sk)
173 void bt_accept_enqueue(struct sock *parent, struct sock *sk)
184 void bt_accept_unlink(struct sock *sk)
195 struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock)
198 struct sock *sk;
203 sk = (struct sock *) list_entry(p, struct bt_sock, accept_q);
228 int bt_sock_recvmsg(struct kiocb *iocb, struct socket *sock,
232 struct sock *sk = sock->sk;
237 BT_DBG("sock %p sk %p len %zu", sock, sk, len);
267 static inline unsigned int bt_accept_poll(struct sock *parent)
270 struct sock *sk;
273 sk = (struct sock *) list_entry(p, struct bt_sock, accept_q);
283 unsigned int bt_sock_poll(struct file * file, struct socket *sock, poll_table *wait)
285 struct sock *sk = sock->sk;
288 BT_DBG("sock %p, sk %p", sock, sk);
325 int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
327 struct sock *sk = sock->sk;
373 int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo)