Lines Matching refs:sock
23 #include <net/sock.h>
81 static int ieee802154_sock_release(struct socket *sock)
83 struct sock *sk = sock->sk;
86 sock->sk = NULL;
92 static int ieee802154_sock_sendmsg(struct socket *sock, struct msghdr *msg,
95 struct sock *sk = sock->sk;
100 static int ieee802154_sock_bind(struct socket *sock, struct sockaddr *uaddr,
103 struct sock *sk = sock->sk;
108 return sock_no_bind(sock, uaddr, addr_len);
111 static int ieee802154_sock_connect(struct socket *sock, struct sockaddr *uaddr,
114 struct sock *sk = sock->sk;
125 static int ieee802154_dev_ioctl(struct sock *sk, struct ifreq __user *arg,
153 static int ieee802154_sock_ioctl(struct socket *sock, unsigned int cmd,
156 struct sock *sk = sock->sk;
174 static int raw_hash(struct sock *sk)
184 static void raw_unhash(struct sock *sk)
192 static void raw_close(struct sock *sk, long timeout)
197 static int raw_bind(struct sock *sk, struct sockaddr *_uaddr, int len)
231 static int raw_connect(struct sock *sk, struct sockaddr *uaddr,
237 static int raw_disconnect(struct sock *sk, int flags)
242 static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
316 static int raw_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
349 static int raw_rcv_skb(struct sock *sk, struct sk_buff *skb)
365 struct sock *sk;
383 static int raw_getsockopt(struct sock *sk, int level, int optname,
389 static int raw_setsockopt(struct sock *sk, int level, int optname,
398 .obj_size = sizeof(struct sock),
438 struct sock sk;
453 static inline struct dgram_sock *dgram_sk(const struct sock *sk)
458 static int dgram_hash(struct sock *sk)
468 static void dgram_unhash(struct sock *sk)
476 static int dgram_init(struct sock *sk)
485 static void dgram_close(struct sock *sk, long timeout)
490 static int dgram_bind(struct sock *sk, struct sockaddr *uaddr, int len)
535 static int dgram_ioctl(struct sock *sk, int cmd, unsigned long arg)
569 static int dgram_connect(struct sock *sk, struct sockaddr *uaddr,
598 static int dgram_disconnect(struct sock *sk, int flags)
609 static int dgram_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
708 static int dgram_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
763 static int dgram_rcv_skb(struct sock *sk, struct sk_buff *skb)
798 struct sock *sk, *prev = NULL;
837 static int dgram_getsockopt(struct sock *sk, int level, int optname,
884 static int dgram_setsockopt(struct sock *sk, int level, int optname,
997 static void ieee802154_sock_destruct(struct sock *sk)
1005 static int ieee802154_create(struct net *net, struct socket *sock,
1008 struct sock *sk;
1016 switch (sock->type) {
1039 sock->ops = ops;
1041 sock_init_data(sock, sk);