Lines Matching defs:sock
14 #include <net/sock.h> /* for sock_no_* */
20 static int pvc_shutdown(struct socket *sock, int how)
25 static int pvc_bind(struct socket *sock, struct sockaddr *sockaddr,
28 struct sock *sk = sock->sk;
39 vcc = ATM_SD(sock);
50 error = vcc_connect(sock, addr->sap_addr.itf, addr->sap_addr.vpi,
57 static int pvc_connect(struct socket *sock, struct sockaddr *sockaddr,
60 return pvc_bind(sock, sockaddr, sockaddr_len);
63 static int pvc_setsockopt(struct socket *sock, int level, int optname,
66 struct sock *sk = sock->sk;
70 error = vcc_setsockopt(sock, level, optname, optval, optlen);
75 static int pvc_getsockopt(struct socket *sock, int level, int optname,
78 struct sock *sk = sock->sk;
82 error = vcc_getsockopt(sock, level, optname, optval, optlen);
87 static int pvc_getname(struct socket *sock, struct sockaddr *sockaddr,
91 struct atm_vcc *vcc = ATM_SD(sock);
130 static int pvc_create(struct net *net, struct socket *sock, int protocol,
136 sock->ops = &pvc_proto_ops;
137 return vcc_create(net, sock, protocol, PF_ATMPVC);