Lines Matching refs:sock

29 #include <net/sock.h>
87 static struct sock *iucv_accept_dequeue(struct sock *parent,
89 static void iucv_sock_kill(struct sock *sk);
90 static void iucv_sock_close(struct sock *sk);
159 * @sk: sock structure
165 static int iucv_sock_in_state(struct sock *sk, int state, int state2)
172 * @sk: sock structure
178 static inline int iucv_below_msglim(struct sock *sk)
194 static void iucv_sock_wake_msglim(struct sock *sk)
209 static int afiucv_hs_send(struct iucv_message *imsg, struct sock *sock,
212 struct iucv_sock *iucv = iucv_sk(sock);
256 if (sock->sk_type == SOCK_SEQPACKET) {
287 static struct sock *__iucv_get_sock_by_name(char *nm)
289 struct sock *sk;
298 static void iucv_sock_destruct(struct sock *sk)
317 static void iucv_sock_cleanup_listen(struct sock *parent)
319 struct sock *sk;
330 static void iucv_sock_link(struct iucv_sock_list *l, struct sock *sk)
337 static void iucv_sock_unlink(struct iucv_sock_list *l, struct sock *sk)
345 static void iucv_sock_kill(struct sock *sk)
356 static void iucv_sever_path(struct sock *sk, int with_user_data)
376 static int iucv_send_ctrl(struct sock *sk, u8 flags)
402 static void iucv_sock_close(struct sock *sk)
465 static void iucv_sock_init(struct sock *sk, struct sock *parent)
473 static struct sock *iucv_sock_alloc(struct socket *sock, int proto, gfp_t prio, int kern)
475 struct sock *sk;
483 sock_init_data(sock, sk);
516 static void iucv_accept_enqueue(struct sock *parent, struct sock *sk)
529 static void iucv_accept_unlink(struct sock *sk)
542 static struct sock *iucv_accept_dequeue(struct sock *parent,
546 struct sock *sk;
549 sk = (struct sock *) isk;
587 static int iucv_sock_bind(struct socket *sock, struct sockaddr *addr,
592 struct sock *sk = sock->sk;
670 static int iucv_sock_autobind(struct sock *sk)
692 static int afiucv_path_connect(struct socket *sock, struct sockaddr *addr)
695 struct sock *sk = sock->sk;
738 static int iucv_sock_connect(struct socket *sock, struct sockaddr *addr,
742 struct sock *sk = sock->sk;
772 err = iucv_send_ctrl(sock->sk, AF_IUCV_FLAG_SYN);
774 err = afiucv_path_connect(sock, addr);
795 static int iucv_sock_listen(struct socket *sock, int backlog)
797 struct sock *sk = sock->sk;
806 if (sock->type != SOCK_STREAM && sock->type != SOCK_SEQPACKET)
820 static int iucv_sock_accept(struct socket *sock, struct socket *newsock,
824 struct sock *sk = sock->sk, *nsk;
874 static int iucv_sock_getname(struct socket *sock, struct sockaddr *addr,
878 struct sock *sk = sock->sk;
921 static int iucv_sock_sendmsg(struct socket *sock, struct msghdr *msg,
924 struct sock *sk = sock->sk;
1159 static void iucv_process_message(struct sock *sk, struct sk_buff *skb,
1221 static void iucv_process_message_q(struct sock *sk)
1239 static int iucv_sock_recvmsg(struct socket *sock, struct msghdr *msg,
1243 struct sock *sk = sock->sk;
1359 static inline __poll_t iucv_accept_poll(struct sock *parent)
1362 struct sock *sk;
1365 sk = (struct sock *) isk;
1374 static __poll_t iucv_sock_poll(struct file *file, struct socket *sock,
1377 struct sock *sk = sock->sk;
1380 sock_poll_wait(file, sock, wait);
1413 static int iucv_sock_shutdown(struct socket *sock, int how)
1415 struct sock *sk = sock->sk;
1481 static int iucv_sock_release(struct socket *sock)
1483 struct sock *sk = sock->sk;
1497 static int iucv_sock_setsockopt(struct socket *sock, int level, int optname,
1500 struct sock *sk = sock->sk;
1547 static int iucv_sock_getsockopt(struct socket *sock, int level, int optname,
1550 struct sock *sk = sock->sk;
1603 struct sock *sk, *nsk;
1696 struct sock *sk = path->private;
1704 struct sock *sk = path->private;
1749 struct sock *sk = path->private;
1786 struct sock *sk = path->private;
1804 struct sock *sk = path->private;
1838 static int afiucv_hs_callback_syn(struct sock *sk, struct sk_buff *skb)
1841 struct sock *nsk;
1847 /* no sock - connection refused */
1903 static int afiucv_hs_callback_synack(struct sock *sk, struct sk_buff *skb)
1924 static int afiucv_hs_callback_synfin(struct sock *sk, struct sk_buff *skb)
1944 static int afiucv_hs_callback_fin(struct sock *sk, struct sk_buff *skb)
1965 static int afiucv_hs_callback_win(struct sock *sk, struct sk_buff *skb)
1983 static int afiucv_hs_callback_rx(struct sock *sk, struct sk_buff *skb)
2032 struct sock *sk;
2082 /* no sock
2083 how should we send with no sock
2084 1) send without sock no send rc checking?
2085 2) introduce default sock to handle this cases
2137 struct sock *isk = skb->sk;
2138 struct sock *sk = NULL;
2210 struct sock *sk;
2259 static int iucv_sock_create(struct net *net, struct socket *sock, int protocol,
2262 struct sock *sk;
2267 sock->state = SS_UNCONNECTED;
2269 switch (sock->type) {
2273 sock->ops = &iucv_sock_ops;
2279 sk = iucv_sock_alloc(sock, protocol, GFP_KERNEL, kern);