Lines Matching refs:tun_struct
74 struct tun_struct *tun = (struct tun_struct *)dev->priv; in tun_net_xmit()
117 struct tun_struct *tun = (struct tun_struct *)dev->priv; in tun_net_stats()
124 struct tun_struct *tun = (struct tun_struct *)dev->priv; in tun_net_init()
167 struct tun_struct *tun = (struct tun_struct *)file->private_data; in tun_chr_poll()
184 static __inline__ ssize_t tun_get_user(struct tun_struct *tun, struct iovec *iv, size_t count) in tun_get_user()
231 struct tun_struct *tun = (struct tun_struct *)file->private_data; in tun_chr_writev()
258 static __inline__ ssize_t tun_put_user(struct tun_struct *tun, in tun_put_user()
293 struct tun_struct *tun = (struct tun_struct *)file->private_data; in tun_chr_readv()
353 struct tun_struct *tun; in tun_set_iff()
373 if (!(tun = kmalloc(sizeof(struct tun_struct), GFP_KERNEL)) ) in tun_set_iff()
375 memset(tun, 0, sizeof(struct tun_struct)); in tun_set_iff()
433 struct tun_struct *tun = (struct tun_struct *)file->private_data; in tun_chr_ioctl()
504 struct tun_struct *tun = (struct tun_struct *)file->private_data; in tun_chr_fasync()
537 struct tun_struct *tun = (struct tun_struct *)file->private_data; in tun_chr_close()