Lines Matching refs:tun_file

145 struct tun_file {  struct
179 struct tun_file __rcu *tfiles[MAX_TAP_QUEUES];
382 struct tun_file *tfile) in tun_flow_update()
486 static void tun_disable_queue(struct tun_struct *tun, struct tun_file *tfile) in tun_disable_queue()
493 static struct tun_struct *tun_enable_queue(struct tun_file *tfile) in tun_enable_queue()
503 static void tun_queue_purge(struct tun_file *tfile) in tun_queue_purge()
509 static void __tun_detach(struct tun_file *tfile, bool clean) in __tun_detach()
511 struct tun_file *ntfile; in __tun_detach()
554 static void tun_detach(struct tun_file *tfile, bool clean) in tun_detach()
564 struct tun_file *tfile, *tmp; in tun_detach_all()
602 struct tun_file *tfile = file->private_data; in tun_attach()
652 static struct tun_struct *__tun_get(struct tun_file *tfile) in __tun_get()
814 struct tun_file *tfile; in tun_net_xmit()
1027 struct tun_file *tfile = file->private_data; in tun_chr_poll()
1058 static struct sk_buff *tun_alloc_skb(struct tun_file *tfile, in tun_alloc_skb()
1084 static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile, in tun_get_user()
1276 struct tun_file *tfile = file->private_data; in tun_chr_write_iter()
1290 struct tun_file *tfile, in tun_put_user()
1401 static ssize_t tun_do_read(struct tun_struct *tun, struct tun_file *tfile, in tun_do_read()
1432 struct tun_file *tfile = file->private_data; in tun_chr_read_iter()
1486 struct tun_file *tfile; in tun_sock_write_space()
1500 tfile = container_of(sk, struct tun_file, sk); in tun_sock_write_space()
1507 struct tun_file *tfile = container_of(sock, struct tun_file, socket); in tun_sendmsg()
1522 struct tun_file *tfile = container_of(sock, struct tun_file, socket); in tun_recvmsg()
1557 .obj_size = sizeof(struct tun_file),
1610 struct tun_file *tfile = file->private_data; in tun_set_iff()
1804 struct tun_file *tfile; in tun_detach_filter()
1817 struct tun_file *tfile; in tun_attach_filter()
1835 struct tun_file *tfile; in tun_set_sndbuf()
1846 struct tun_file *tfile = file->private_data; in tun_set_queue()
1879 struct tun_file *tfile = file->private_data; in __tun_chr_ioctl()
2193 struct tun_file *tfile = file->private_data; in tun_chr_fasync()
2212 struct tun_file *tfile; in tun_chr_open()
2216 tfile = (struct tun_file *)sk_alloc(net, AF_UNSPEC, GFP_KERNEL, in tun_chr_open()
2245 struct tun_file *tfile = file->private_data; in tun_chr_close()
2397 struct tun_file *tfile; in tun_get_socket()