Lines Matching defs:sock
54 mISDN_sock_link(struct mISDN_sock_list *l, struct sock *sk)
61 static void mISDN_sock_unlink(struct mISDN_sock_list *l, struct sock *sk)
103 mISDN_sock_cmsg(struct sock *sk, struct msghdr *msg, struct sk_buff *skb)
114 mISDN_sock_recvmsg(struct kiocb *iocb, struct socket *sock,
118 struct sock *sk = sock->sk;
180 mISDN_sock_sendmsg(struct kiocb *iocb, struct socket *sock,
183 struct sock *sk = sock->sk;
252 data_sock_release(struct socket *sock)
254 struct sock *sk = sock->sk;
257 printk(KERN_DEBUG "%s(%p) sk=%p\n", __func__, sock, sk);
295 data_sock_ioctl_bound(struct sock *sk, unsigned int cmd, void __user *p)
366 data_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
369 struct sock *sk = sock->sk;
418 static int data_sock_setsockopt(struct socket *sock, int level, int optname,
421 struct sock *sk = sock->sk;
425 printk(KERN_DEBUG "%s(%p, %d, %x, %p, %d)\n", __func__, sock,
450 static int data_sock_getsockopt(struct socket *sock, int level, int optname,
453 struct sock *sk = sock->sk;
477 data_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len)
480 struct sock *sk = sock->sk;
482 struct sock *csk;
486 printk(KERN_DEBUG "%s(%p) sk=%p\n", __func__, sock, sk);
565 data_sock_getname(struct socket *sock, struct sockaddr *addr,
569 struct sock *sk = sock->sk;
606 data_sock_create(struct net *net, struct socket *sock, int protocol)
608 struct sock *sk;
610 if (sock->type != SOCK_DGRAM)
617 sock_init_data(sock, sk);
619 sock->ops = &data_sock_ops;
620 sock->state = SS_UNCONNECTED;
631 base_sock_release(struct socket *sock)
633 struct sock *sk = sock->sk;
635 printk(KERN_DEBUG "%s(%p) sk=%p\n", __func__, sock, sk);
647 base_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
710 base_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len)
713 struct sock *sk = sock->sk;
760 base_sock_create(struct net *net, struct socket *sock, int protocol)
762 struct sock *sk;
764 if (sock->type != SOCK_RAW)
771 sock_init_data(sock, sk);
772 sock->ops = &base_sock_ops;
773 sock->state = SS_UNCONNECTED;
783 mISDN_sock_create(struct net *net, struct socket *sock, int proto, int kern)
789 err = base_sock_create(net, sock, proto);
803 err = data_sock_create(net, sock, proto);