Lines Matching defs:sock
25 #include <net/sock.h>
90 static void iucv_sock_kill(struct sock *sk);
91 static void iucv_sock_close(struct sock *sk);
150 struct sock *sk;
194 struct sock *sk;
274 * @sk: sock structure
280 static int iucv_sock_in_state(struct sock *sk, int state, int state2)
287 * @sk: sock structure
293 static inline int iucv_below_msglim(struct sock *sk)
305 static void iucv_sock_wake_msglim(struct sock *sk)
320 struct sock *sk = (struct sock *)arg;
331 static void iucv_sock_clear_timer(struct sock *sk)
336 static struct sock *__iucv_get_sock_by_name(char *nm)
338 struct sock *sk;
348 static void iucv_sock_destruct(struct sock *sk)
355 static void iucv_sock_cleanup_listen(struct sock *parent)
357 struct sock *sk;
369 static void iucv_sock_kill(struct sock *sk)
380 static void iucv_sock_close(struct sock *sk)
443 static void iucv_sock_init(struct sock *sk, struct sock *parent)
449 static struct sock *iucv_sock_alloc(struct socket *sock, int proto, gfp_t prio)
451 struct sock *sk;
457 sock_init_data(sock, sk);
486 static int iucv_sock_create(struct net *net, struct socket *sock, int protocol,
489 struct sock *sk;
494 sock->state = SS_UNCONNECTED;
496 switch (sock->type) {
498 sock->ops = &iucv_sock_ops;
502 sock->ops = &iucv_sock_ops;
508 sk = iucv_sock_alloc(sock, protocol, GFP_KERNEL);
517 void iucv_sock_link(struct iucv_sock_list *l, struct sock *sk)
524 void iucv_sock_unlink(struct iucv_sock_list *l, struct sock *sk)
531 void iucv_accept_enqueue(struct sock *parent, struct sock *sk)
544 void iucv_accept_unlink(struct sock *sk)
557 struct sock *iucv_accept_dequeue(struct sock *parent, struct socket *newsock)
560 struct sock *sk;
563 sk = (struct sock *) isk;
593 static int iucv_sock_bind(struct socket *sock, struct sockaddr *addr,
597 struct sock *sk = sock->sk;
640 static int iucv_sock_autobind(struct sock *sk)
670 static int iucv_sock_connect(struct socket *sock, struct sockaddr *addr,
674 struct sock *sk = sock->sk;
757 static int iucv_sock_listen(struct socket *sock, int backlog)
759 struct sock *sk = sock->sk;
768 if (sock->type != SOCK_STREAM && sock->type != SOCK_SEQPACKET)
782 static int iucv_sock_accept(struct socket *sock, struct socket *newsock,
786 struct sock *sk = sock->sk, *nsk;
836 static int iucv_sock_getname(struct socket *sock, struct sockaddr *addr,
840 struct sock *sk = sock->sk;
883 static int iucv_sock_sendmsg(struct kiocb *iocb, struct socket *sock,
886 struct sock *sk = sock->sk;
1045 static int iucv_fragment_skb(struct sock *sk, struct sk_buff *skb, int len)
1083 static void iucv_process_message(struct sock *sk, struct sk_buff *skb,
1137 static void iucv_process_message_q(struct sock *sk)
1155 static int iucv_sock_recvmsg(struct kiocb *iocb, struct socket *sock,
1159 struct sock *sk = sock->sk;
1253 static inline unsigned int iucv_accept_poll(struct sock *parent)
1256 struct sock *sk;
1259 sk = (struct sock *) isk;
1268 unsigned int iucv_sock_poll(struct file *file, struct socket *sock,
1271 struct sock *sk = sock->sk;
1306 static int iucv_sock_shutdown(struct socket *sock, int how)
1308 struct sock *sk = sock->sk;
1368 static int iucv_sock_release(struct socket *sock)
1370 struct sock *sk = sock->sk;
1391 static int iucv_sock_setsockopt(struct socket *sock, int level, int optname,
1394 struct sock *sk = sock->sk;
1441 static int iucv_sock_getsockopt(struct socket *sock, int level, int optname,
1444 struct sock *sk = sock->sk;
1490 struct sock *sk, *nsk;
1582 struct sock *sk = path->private;
1590 struct sock *sk = path->private;
1635 struct sock *sk = path->private;
1675 struct sock *sk = path->private;
1690 struct sock *sk = path->private;