Lines Matching refs:tun_file

129 /* A tun_file connects an open character device to a tuntap netdevice. It
137 * The tun_file and tun_struct are loosely coupled, the pointer from one to the
140 struct tun_file {
185 /* Since the socket were moved to tun_file, to preserve the behavior of persist
190 struct tun_file __rcu *tfiles[MAX_TAP_QUEUES];
238 struct tun_file *tfile = container_of(napi, struct tun_file, napi);
276 static void tun_napi_init(struct tun_struct *tun, struct tun_file *tfile,
288 static void tun_napi_enable(struct tun_file *tfile)
294 static void tun_napi_disable(struct tun_file *tfile)
300 static void tun_napi_del(struct tun_file *tfile)
306 static bool tun_napi_frags_enabled(const struct tun_file *tfile)
486 struct tun_file *tfile)
605 static void tun_disable_queue(struct tun_struct *tun, struct tun_file *tfile)
612 static struct tun_struct *tun_enable_queue(struct tun_file *tfile)
636 static void tun_queue_purge(struct tun_file *tfile)
647 static void __tun_detach(struct tun_file *tfile, bool clean)
649 struct tun_file *ntfile;
704 static void tun_detach(struct tun_file *tfile, bool clean)
724 struct tun_file *tfile, *tmp;
769 struct tun_file *tfile = file->private_data;
860 static struct tun_struct *tun_get(struct tun_file *tfile)
1087 struct tun_file *tfile;
1218 struct tun_file *tfile;
1282 static void __tun_xdp_flush_tfile(struct tun_file *tfile)
1294 struct tun_file *tfile;
1427 static bool tun_sock_writeable(struct tun_struct *tun, struct tun_file *tfile)
1439 struct tun_file *tfile = file->private_data;
1471 static struct sk_buff *tun_napi_alloc_frags(struct tun_file *tfile,
1527 static struct sk_buff *tun_alloc_skb(struct tun_file *tfile,
1552 static void tun_rx_batched(struct tun_struct *tun, struct tun_file *tfile,
1592 static bool tun_can_build_skb(struct tun_struct *tun, struct tun_file *tfile,
1614 static struct sk_buff *__tun_build_skb(struct tun_file *tfile,
1666 struct tun_file *tfile,
1755 static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile,
2047 struct tun_file *tfile = file->private_data;
2065 struct tun_file *tfile,
2100 struct tun_file *tfile,
2195 static void *tun_ring_recv(struct tun_file *tfile, int noblock, int *err)
2236 static ssize_t tun_do_read(struct tun_struct *tun, struct tun_file *tfile,
2276 struct tun_file *tfile = file->private_data;
2433 struct tun_file *tfile;
2447 tfile = container_of(sk, struct tun_file, sk);
2458 struct tun_file *tfile,
2568 struct tun_file *tfile = container_of(sock, struct tun_file, socket);
2615 struct tun_file *tfile = container_of(sock, struct tun_file, socket);
2666 struct tun_file *tfile = container_of(sock, struct tun_file, socket);
2690 .obj_size = sizeof(struct tun_file),
2743 struct tun_file *tfile = file->private_data;
2927 struct tun_file *tfile;
2942 struct tun_file *tfile;
2961 struct tun_file *tfile;
2972 struct tun_file *tfile = file->private_data;
3068 struct tun_file *tfile = file->private_data;
3428 struct tun_file *tfile = file->private_data;
3447 struct tun_file *tfile;
3449 tfile = (struct tun_file *)sk_alloc(net, AF_UNSPEC, GFP_KERNEL,
3483 struct tun_file *tfile = file->private_data;
3493 struct tun_file *tfile = file->private_data;
3639 struct tun_file *tfile;
3680 struct tun_file *tfile;
3744 struct tun_file *tfile;
3756 struct tun_file *tfile;