Lines Matching refs:sock
50 static int do_vcc_ioctl(struct socket *sock, unsigned int cmd, in do_vcc_ioctl() argument
53 struct sock *sk = sock->sk; in do_vcc_ioctl()
59 vcc = ATM_SD(sock); in do_vcc_ioctl()
62 if (sock->state != SS_CONNECTED || in do_vcc_ioctl()
74 if (sock->state != SS_CONNECTED) { in do_vcc_ioctl()
132 sock->state = SS_CONNECTED; in do_vcc_ioctl()
169 error = ic->ioctl(sock, cmd, arg); in do_vcc_ioctl()
186 int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in vcc_ioctl() argument
188 return do_vcc_ioctl(sock, cmd, arg, 0); in vcc_ioctl()
245 static int do_atm_iobuf(struct socket *sock, unsigned int cmd, in do_atm_iobuf() argument
265 err = do_vcc_ioctl(sock, cmd, (unsigned long) iobuf, 0); in do_atm_iobuf()
276 static int do_atmif_sioc(struct socket *sock, unsigned int cmd, in do_atmif_sioc() argument
295 err = do_vcc_ioctl(sock, cmd, (unsigned long) sioc, 0); in do_atmif_sioc()
305 static int do_atm_ioctl(struct socket *sock, unsigned int cmd32, in do_atm_ioctl() argument
320 return do_atmif_sioc(sock, cmd32, arg); in do_atm_ioctl()
334 return do_atm_iobuf(sock, cmd, arg); in do_atm_ioctl()
352 return do_atmif_sioc(sock, cmd, arg); in do_atm_ioctl()
358 int vcc_compat_ioctl(struct socket *sock, unsigned int cmd, in vcc_compat_ioctl() argument
363 ret = do_vcc_ioctl(sock, cmd, arg, 1); in vcc_compat_ioctl()
367 return do_atm_ioctl(sock, cmd, arg); in vcc_compat_ioctl()