Lines Matching defs:sock
35 #include <net/sock.h>
100 static void econet_remove_socket(struct hlist_head *list, struct sock *sk)
107 static void econet_insert_socket(struct hlist_head *list, struct sock *sk)
119 static int econet_recvmsg(struct kiocb *iocb, struct socket *sock,
122 struct sock *sk = sock->sk;
189 static int econet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
192 struct sock *sk;
205 sk = sock->sk;
223 static void tx_result(struct sock *sk, unsigned long cookie, int result)
265 static int econet_sendmsg(struct kiocb *iocb, struct socket *sock,
268 struct sock *sk = sock->sk;
361 if (sock->type != SOCK_DGRAM) {
504 static int econet_getname(struct socket *sock, struct sockaddr *uaddr,
507 struct sock *sk;
517 sk = sock->sk;
533 struct sock *sk=(struct sock *)data;
549 static int econet_release(struct socket *sock)
551 struct sock *sk;
555 sk = sock->sk;
599 static int econet_create(struct net *net, struct socket *sock, int protocol,
602 struct sock *sk;
610 if (sock->type != SOCK_DGRAM)
613 sock->state = SS_UNCONNECTED;
621 sock->ops = &econet_ops;
622 sock_init_data(sock, sk);
639 static int ec_dev_ioctl(struct socket *sock, unsigned int cmd, void __user *arg)
718 static int econet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
720 struct sock *sk = sock->sk;
732 return ec_dev_ioctl(sock, cmd, argp);
774 static struct sock *ec_listening_socket(unsigned char port, unsigned char
777 struct sock *sk;
800 static int ec_queue_packet(struct sock *sk, struct sk_buff *skb,
856 struct sock *sk = NULL;
932 static void aun_data_available(struct sock *sk, int slen)
1053 struct sock *sk = NULL;