Lines Matching refs:sock
50 static int do_vcc_ioctl(struct socket *sock, unsigned int cmd,
53 struct sock *sk = sock->sk;
59 vcc = ATM_SD(sock);
62 if (sock->state != SS_CONNECTED ||
74 if (sock->state != SS_CONNECTED) {
134 sock->state = SS_CONNECTED;
171 error = ic->ioctl(sock, cmd, arg);
188 int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
190 return do_vcc_ioctl(sock, cmd, arg, 0);
237 static int do_atm_iobuf(struct socket *sock, unsigned int cmd,
257 err = do_vcc_ioctl(sock, cmd, (unsigned long) iobuf, 0);
268 static int do_atmif_sioc(struct socket *sock, unsigned int cmd,
287 err = do_vcc_ioctl(sock, cmd, (unsigned long) sioc, 0);
297 static int do_atm_ioctl(struct socket *sock, unsigned int cmd32,
312 return do_atmif_sioc(sock, cmd32, arg);
326 return do_atm_iobuf(sock, cmd, arg);
344 return do_atmif_sioc(sock, cmd, arg);
350 int vcc_compat_ioctl(struct socket *sock, unsigned int cmd,
355 ret = do_vcc_ioctl(sock, cmd, arg, 1);
359 return do_atm_ioctl(sock, cmd, arg);