Lines Matching refs:tun_file
118 /* A tun_file connects an open character device to a tuntap netdevice. It
126 * The tun_file and tun_struct are loosely coupled, the pointer from one to the
129 struct tun_file {
174 /* Since the socket were moved to tun_file, to preserve the behavior of persist
179 struct tun_file __rcu *tfiles[MAX_TAP_QUEUES];
227 struct tun_file *tfile = container_of(napi, struct tun_file, napi);
265 static void tun_napi_init(struct tun_struct *tun, struct tun_file *tfile,
276 static void tun_napi_enable(struct tun_file *tfile)
282 static void tun_napi_disable(struct tun_file *tfile)
288 static void tun_napi_del(struct tun_file *tfile)
294 static bool tun_napi_frags_enabled(const struct tun_file *tfile)
474 struct tun_file *tfile)
593 static void tun_disable_queue(struct tun_struct *tun, struct tun_file *tfile)
600 static struct tun_struct *tun_enable_queue(struct tun_file *tfile)
624 static void tun_queue_purge(struct tun_file *tfile)
635 static void __tun_detach(struct tun_file *tfile, bool clean)
637 struct tun_file *ntfile;
693 static void tun_detach(struct tun_file *tfile, bool clean)
713 struct tun_file *tfile, *tmp;
758 struct tun_file *tfile = file->private_data;
849 static struct tun_struct *tun_get(struct tun_file *tfile)
1077 struct tun_file *tfile;
1200 struct tun_file *tfile;
1264 static void __tun_xdp_flush_tfile(struct tun_file *tfile)
1276 struct tun_file *tfile;
1417 static bool tun_sock_writeable(struct tun_struct *tun, struct tun_file *tfile)
1429 struct tun_file *tfile = file->private_data;
1461 static struct sk_buff *tun_napi_alloc_frags(struct tun_file *tfile,
1518 static struct sk_buff *tun_alloc_skb(struct tun_file *tfile,
1545 static void tun_rx_batched(struct tun_struct *tun, struct tun_file *tfile,
1585 static bool tun_can_build_skb(struct tun_struct *tun, struct tun_file *tfile,
1607 static struct sk_buff *__tun_build_skb(struct tun_file *tfile,
1665 struct tun_file *tfile,
1750 static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile,
2044 struct tun_file *tfile = file->private_data;
2062 struct tun_file *tfile,
2093 struct tun_file *tfile,
2182 static void *tun_ring_recv(struct tun_file *tfile, int noblock, int *err)
2223 static ssize_t tun_do_read(struct tun_struct *tun, struct tun_file *tfile,
2263 struct tun_file *tfile = file->private_data;
2419 struct tun_file *tfile;
2433 tfile = container_of(sk, struct tun_file, sk);
2444 struct tun_file *tfile,
2565 struct tun_file *tfile = container_of(sock, struct tun_file, socket);
2617 struct tun_file *tfile = container_of(sock, struct tun_file, socket);
2668 struct tun_file *tfile = container_of(sock, struct tun_file, socket);
2692 .obj_size = sizeof(struct tun_file),
2745 struct tun_file *tfile = file->private_data;
2938 struct tun_file *tfile;
2953 struct tun_file *tfile;
2972 struct tun_file *tfile;
2983 struct tun_file *tfile = file->private_data;
3079 struct tun_file *tfile = file->private_data;
3447 struct tun_file *tfile = file->private_data;
3466 struct tun_file *tfile;
3468 tfile = (struct tun_file *)sk_alloc(net, AF_UNSPEC, GFP_KERNEL,
3504 struct tun_file *tfile = file->private_data;
3514 struct tun_file *tfile = file->private_data;
3664 struct tun_file *tfile;
3705 struct tun_file *tfile;
3769 struct tun_file *tfile;
3781 struct tun_file *tfile;