Lines Matching refs:sock
34 #include <net/sock.h>
96 static int ieee802154_sock_release(struct socket *sock)
98 struct sock *sk = sock->sk;
101 sock->sk = NULL;
106 static int ieee802154_sock_sendmsg(struct kiocb *iocb, struct socket *sock,
109 struct sock *sk = sock->sk;
114 static int ieee802154_sock_bind(struct socket *sock, struct sockaddr *uaddr,
117 struct sock *sk = sock->sk;
122 return sock_no_bind(sock, uaddr, addr_len);
125 static int ieee802154_sock_connect(struct socket *sock, struct sockaddr *uaddr,
128 struct sock *sk = sock->sk;
139 static int ieee802154_dev_ioctl(struct sock *sk, struct ifreq __user *arg,
167 static int ieee802154_sock_ioctl(struct socket *sock, unsigned int cmd,
170 struct sock *sk = sock->sk;
243 static int ieee802154_create(struct net *net, struct socket *sock,
246 struct sock *sk;
254 switch (sock->type) {
274 sock->ops = ops;
276 sock_init_data(sock, sk);