Lines Matching defs:tun
81 #define tun_debug(level, tun, fmt, args...) \ argument
92 #define tun_debug(level, tun, fmt, args...) \ argument
113 struct tun_struct *tun; member
144 struct tun_struct *tun; member
152 static int tun_attach(struct tun_struct *tun, struct file *file) in tun_attach()
183 static void __tun_detach(struct tun_struct *tun) in __tun_detach()
199 static void tun_detach(struct tun_struct *tun) in tun_detach()
208 struct tun_struct *tun = NULL; in __tun_get() local
221 static void tun_put(struct tun_struct *tun) in tun_put()
346 struct tun_struct *tun = netdev_priv(dev); in tun_net_uninit() local
360 struct tun_struct *tun = netdev_priv(dev); in tun_free_netdev() local
382 struct tun_struct *tun = netdev_priv(dev); in tun_net_xmit() local
460 struct tun_struct *tun = netdev_priv(dev); in tun_net_fix_features() local
511 struct tun_struct *tun = netdev_priv(dev); in tun_net_init() local
547 struct tun_struct *tun = __tun_get(tfile); in tun_chr_poll() local
577 static struct sk_buff *tun_alloc_skb(struct tun_struct *tun, in tun_alloc_skb()
605 static ssize_t tun_get_user(struct tun_struct *tun, in tun_get_user()
740 struct tun_struct *tun = tun_get(file); in tun_chr_aio_write() local
756 static ssize_t tun_put_user(struct tun_struct *tun, in tun_put_user()
836 static ssize_t tun_do_read(struct tun_struct *tun, in tun_do_read()
889 struct tun_struct *tun = __tun_get(tfile); in tun_chr_aio_read() local
909 struct tun_struct *tun = netdev_priv(dev); in tun_setup() local
935 struct tun_struct *tun; in tun_sock_write_space() local
961 struct tun_struct *tun = container_of(sock, struct tun_struct, socket); in tun_sendmsg() local
970 struct tun_struct *tun = container_of(sock, struct tun_struct, socket); in tun_recvmsg() local
1003 static int tun_flags(struct tun_struct *tun) in tun_flags()
1027 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in tun_show_flags() local
1034 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in tun_show_owner() local
1041 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in tun_show_group() local
1052 struct tun_struct *tun; in tun_set_iff() local
1193 static int tun_get_iff(struct net *net, struct tun_struct *tun, in tun_get_iff()
1207 static int set_offload(struct tun_struct *tun, unsigned long arg) in set_offload()
1248 struct tun_struct *tun; in __tun_chr_ioctl() local
1485 struct tun_struct *tun = tun_get(file); in tun_chr_fasync() local
1528 struct tun_struct *tun; in tun_chr_close() local
1600 struct tun_struct *tun = netdev_priv(dev); in tun_get_drvinfo() local
1618 struct tun_struct *tun = netdev_priv(dev); in tun_get_msglevel() local
1628 struct tun_struct *tun = netdev_priv(dev); in tun_set_msglevel() local
1679 struct tun_struct *tun; in tun_get_socket() local