Lines Matching defs: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;
1140 static void iucv_process_message(struct sock *sk, struct sk_buff *skb,
1201 static void iucv_process_message_q(struct sock *sk)
1219 static int iucv_sock_recvmsg(struct socket *sock, struct msghdr *msg,
1222 struct sock *sk = sock->sk;
1338 static inline __poll_t iucv_accept_poll(struct sock *parent)
1341 struct sock *sk;
1344 sk = (struct sock *) isk;
1353 static __poll_t iucv_sock_poll(struct file *file, struct socket *sock,
1356 struct sock *sk = sock->sk;
1359 sock_poll_wait(file, sock, wait);
1392 static int iucv_sock_shutdown(struct socket *sock, int how)
1394 struct sock *sk = sock->sk;
1460 static int iucv_sock_release(struct socket *sock)
1462 struct sock *sk = sock->sk;
1476 static int iucv_sock_setsockopt(struct socket *sock, int level, int optname,
1479 struct sock *sk = sock->sk;
1526 static int iucv_sock_getsockopt(struct socket *sock, int level, int optname,
1529 struct sock *sk = sock->sk;
1582 struct sock *sk, *nsk;
1675 struct sock *sk = path->private;
1683 struct sock *sk = path->private;
1728 struct sock *sk = path->private;
1772 struct sock *sk = path->private;
1790 struct sock *sk = path->private;
1833 static int afiucv_hs_callback_syn(struct sock *sk, struct sk_buff *skb)
1836 struct sock *nsk;
1842 /* no sock - connection refused */
1898 static int afiucv_hs_callback_synack(struct sock *sk, struct sk_buff *skb)
1919 static int afiucv_hs_callback_synfin(struct sock *sk, struct sk_buff *skb)
1939 static int afiucv_hs_callback_fin(struct sock *sk, struct sk_buff *skb)
1962 static int afiucv_hs_callback_win(struct sock *sk, struct sk_buff *skb)
1980 static int afiucv_hs_callback_rx(struct sock *sk, struct sk_buff *skb)
2029 struct sock *sk;
2079 /* no sock
2080 how should we send with no sock
2081 1) send without sock no send rc checking?
2082 2) introduce default sock to handle this cases
2131 static void afiucv_hs_callback_txnotify(struct sock *sk, enum iucv_tx_notify n)
2174 struct sock *sk;
2223 static int iucv_sock_create(struct net *net, struct socket *sock, int protocol,
2226 struct sock *sk;
2231 sock->state = SS_UNCONNECTED;
2233 switch (sock->type) {
2237 sock->ops = &iucv_sock_ops;
2243 sk = iucv_sock_alloc(sock, protocol, GFP_KERNEL, kern);