Lines Matching refs:sock

30 #include <net/sock.h>
89 static struct sock *iucv_accept_dequeue(struct sock *parent,
91 static void iucv_sock_kill(struct sock *sk);
92 static void iucv_sock_close(struct sock *sk);
94 static void afiucv_hs_callback_txnotify(struct sock *sk, enum iucv_tx_notify);
144 * @sk: sock structure
150 static int iucv_sock_in_state(struct sock *sk, int state, int state2)
157 * @sk: sock structure
163 static inline int iucv_below_msglim(struct sock *sk)
179 static void iucv_sock_wake_msglim(struct sock *sk)
194 static int afiucv_hs_send(struct iucv_message *imsg, struct sock *sock,
197 struct iucv_sock *iucv = iucv_sk(sock);
240 if (sock->sk_type == SOCK_SEQPACKET) {
265 static struct sock *__iucv_get_sock_by_name(char *nm)
267 struct sock *sk;
276 static void iucv_sock_destruct(struct sock *sk)
293 static void iucv_sock_cleanup_listen(struct sock *parent)
295 struct sock *sk;
306 static void iucv_sock_link(struct iucv_sock_list *l, struct sock *sk)
313 static void iucv_sock_unlink(struct iucv_sock_list *l, struct sock *sk)
321 static void iucv_sock_kill(struct sock *sk)
332 static void iucv_sever_path(struct sock *sk, int with_user_data)
352 static int iucv_send_ctrl(struct sock *sk, u8 flags)
378 static void iucv_sock_close(struct sock *sk)
441 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, int kern)
451 struct sock *sk;
459 sock_init_data(sock, sk);
493 static void iucv_accept_enqueue(struct sock *parent, struct sock *sk)
506 static void iucv_accept_unlink(struct sock *sk)
519 static struct sock *iucv_accept_dequeue(struct sock *parent,
523 struct sock *sk;
526 sk = (struct sock *) isk;
564 static int iucv_sock_bind(struct socket *sock, struct sockaddr *addr,
569 struct sock *sk = sock->sk;
647 static int iucv_sock_autobind(struct sock *sk)
669 static int afiucv_path_connect(struct socket *sock, struct sockaddr *addr)
672 struct sock *sk = sock->sk;
715 static int iucv_sock_connect(struct socket *sock, struct sockaddr *addr,
719 struct sock *sk = sock->sk;
749 err = iucv_send_ctrl(sock->sk, AF_IUCV_FLAG_SYN);
751 err = afiucv_path_connect(sock, addr);
772 static int iucv_sock_listen(struct socket *sock, int backlog)
774 struct sock *sk = sock->sk;
783 if (sock->type != SOCK_STREAM && sock->type != SOCK_SEQPACKET)
797 static int iucv_sock_accept(struct socket *sock, struct socket *newsock,
801 struct sock *sk = sock->sk, *nsk;
851 static int iucv_sock_getname(struct socket *sock, struct sockaddr *addr,
855 struct sock *sk = sock->sk;
898 static int iucv_sock_sendmsg(struct socket *sock, struct msghdr *msg,
901 struct sock *sk = sock->sk;
1141 static void iucv_process_message(struct sock *sk, struct sk_buff *skb,
1203 static void iucv_process_message_q(struct sock *sk)
1221 static int iucv_sock_recvmsg(struct socket *sock, struct msghdr *msg,
1224 struct sock *sk = sock->sk;
1340 static inline __poll_t iucv_accept_poll(struct sock *parent)
1343 struct sock *sk;
1346 sk = (struct sock *) isk;
1355 static __poll_t iucv_sock_poll(struct file *file, struct socket *sock,
1358 struct sock *sk = sock->sk;
1361 sock_poll_wait(file, sock, wait);
1394 static int iucv_sock_shutdown(struct socket *sock, int how)
1396 struct sock *sk = sock->sk;
1462 static int iucv_sock_release(struct socket *sock)
1464 struct sock *sk = sock->sk;
1478 static int iucv_sock_setsockopt(struct socket *sock, int level, int optname,
1481 struct sock *sk = sock->sk;
1528 static int iucv_sock_getsockopt(struct socket *sock, int level, int optname,
1531 struct sock *sk = sock->sk;
1584 struct sock *sk, *nsk;
1677 struct sock *sk = path->private;
1685 struct sock *sk = path->private;
1730 struct sock *sk = path->private;
1774 struct sock *sk = path->private;
1792 struct sock *sk = path->private;
1835 static int afiucv_hs_callback_syn(struct sock *sk, struct sk_buff *skb)
1838 struct sock *nsk;
1844 /* no sock - connection refused */
1900 static int afiucv_hs_callback_synack(struct sock *sk, struct sk_buff *skb)
1921 static int afiucv_hs_callback_synfin(struct sock *sk, struct sk_buff *skb)
1941 static int afiucv_hs_callback_fin(struct sock *sk, struct sk_buff *skb)
1964 static int afiucv_hs_callback_win(struct sock *sk, struct sk_buff *skb)
1982 static int afiucv_hs_callback_rx(struct sock *sk, struct sk_buff *skb)
2031 struct sock *sk;
2081 /* no sock
2082 how should we send with no sock
2083 1) send without sock no send rc checking?
2084 2) introduce default sock to handle this cases
2133 static void afiucv_hs_callback_txnotify(struct sock *sk, enum iucv_tx_notify n)
2176 struct sock *sk;
2225 static int iucv_sock_create(struct net *net, struct socket *sock, int protocol,
2228 struct sock *sk;
2233 sock->state = SS_UNCONNECTED;
2235 switch (sock->type) {
2239 sock->ops = &iucv_sock_ops;
2245 sk = iucv_sock_alloc(sock, protocol, GFP_KERNEL, kern);