Lines Matching defs:sock
22 #include <net/sock.h> /* struct sock */
42 static void __vcc_insert_socket(struct sock *sk)
50 void vcc_insert_socket(struct sock *sk)
58 static void vcc_remove_socket(struct sock *sk)
68 struct sock *sk = sk_atm(vcc);
82 static void vcc_sock_destruct(struct sock *sk)
93 static void vcc_def_wakeup(struct sock *sk)
104 static inline int vcc_writable(struct sock *sk)
112 static void vcc_write_space(struct sock *sk)
135 int vcc_create(struct net *net, struct socket *sock, int protocol, int family)
137 struct sock *sk;
140 sock->sk = NULL;
141 if (sock->type == SOCK_STREAM)
146 sock_init_data(sock, sk);
166 static void vcc_destroy_socket(struct sock *sk)
191 int vcc_release(struct socket *sock)
193 struct sock *sk = sock->sk;
197 vcc_destroy_socket(sock->sk);
207 struct sock *sk = sk_atm(vcc);
242 struct sock *s;
288 struct sock *s;
357 struct sock *sk = sk_atm(vcc);
434 int vcc_connect(struct socket *sock, int itf, short vpi, int vci)
437 struct atm_vcc *vcc = ATM_SD(sock);
441 if (sock->state == SS_CONNECTED)
443 if (sock->state != SS_UNCONNECTED)
489 if (test_bit(ATM_VF_READY, &ATM_SD(sock)->flags))
490 sock->state = SS_CONNECTED;
494 int vcc_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg,
497 struct sock *sk = sock->sk;
502 if (sock->state != SS_CONNECTED)
506 vcc = ATM_SD(sock);
532 int vcc_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *m,
535 struct sock *sk = sock->sk;
544 if (sock->state != SS_CONNECTED) {
558 vcc = ATM_SD(sock);
616 unsigned int vcc_poll(struct file *file, struct socket *sock, poll_table *wait)
618 struct sock *sk = sock->sk;
625 vcc = ATM_SD(sock);
640 if (sock->state == SS_CONNECTING &&
712 int vcc_setsockopt(struct socket *sock, int level, int optname,
722 vcc = ATM_SD(sock);
733 if (sock->state == SS_CONNECTED)
735 if (sock->state != SS_UNCONNECTED)
759 int vcc_getsockopt(struct socket *sock, int level, int optname,
770 vcc = ATM_SD(sock);