Lines Matching refs:tun_file

129 struct tun_file {  struct
179 struct tun_file __rcu *tfiles[MAX_TAP_QUEUES];
227 struct tun_file *tfile = container_of(napi, struct tun_file, napi); in tun_napi_receive()
265 static void tun_napi_init(struct tun_struct *tun, struct tun_file *tfile, in tun_napi_init()
276 static void tun_napi_enable(struct tun_file *tfile) in tun_napi_enable()
282 static void tun_napi_disable(struct tun_file *tfile) in tun_napi_disable()
288 static void tun_napi_del(struct tun_file *tfile) in tun_napi_del()
294 static bool tun_napi_frags_enabled(const struct tun_file *tfile) in tun_napi_frags_enabled()
474 struct tun_file *tfile) in tun_flow_update()
593 static void tun_disable_queue(struct tun_struct *tun, struct tun_file *tfile) in tun_disable_queue()
600 static struct tun_struct *tun_enable_queue(struct tun_file *tfile) in tun_enable_queue()
624 static void tun_queue_purge(struct tun_file *tfile) in tun_queue_purge()
635 static void __tun_detach(struct tun_file *tfile, bool clean) in __tun_detach()
637 struct tun_file *ntfile; in __tun_detach()
692 static void tun_detach(struct tun_file *tfile, bool clean) in tun_detach()
712 struct tun_file *tfile, *tmp; in tun_detach_all()
757 struct tun_file *tfile = file->private_data; in tun_attach()
848 static struct tun_struct *tun_get(struct tun_file *tfile) in tun_get()
1076 struct tun_file *tfile; in tun_net_xmit()
1199 struct tun_file *tfile; in tun_xdp_set()
1263 static void __tun_xdp_flush_tfile(struct tun_file *tfile) in __tun_xdp_flush_tfile()
1275 struct tun_file *tfile; in tun_xdp_xmit()
1416 static bool tun_sock_writeable(struct tun_struct *tun, struct tun_file *tfile) in tun_sock_writeable()
1428 struct tun_file *tfile = file->private_data; in tun_chr_poll()
1460 static struct sk_buff *tun_napi_alloc_frags(struct tun_file *tfile, in tun_napi_alloc_frags()
1517 static struct sk_buff *tun_alloc_skb(struct tun_file *tfile, in tun_alloc_skb()
1544 static void tun_rx_batched(struct tun_struct *tun, struct tun_file *tfile, in tun_rx_batched()
1584 static bool tun_can_build_skb(struct tun_struct *tun, struct tun_file *tfile, in tun_can_build_skb()
1606 static struct sk_buff *__tun_build_skb(struct tun_file *tfile, in __tun_build_skb()
1658 struct tun_file *tfile, in tun_build_skb()
1743 static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile, in tun_get_user()
2037 struct tun_file *tfile = file->private_data; in tun_chr_write_iter()
2055 struct tun_file *tfile, in tun_put_user_xdp()
2086 struct tun_file *tfile, in tun_put_user()
2175 static void *tun_ring_recv(struct tun_file *tfile, int noblock, int *err) in tun_ring_recv()
2216 static ssize_t tun_do_read(struct tun_struct *tun, struct tun_file *tfile, in tun_do_read()
2256 struct tun_file *tfile = file->private_data; in tun_chr_read_iter()
2412 struct tun_file *tfile; in tun_sock_write_space()
2426 tfile = container_of(sk, struct tun_file, sk); in tun_sock_write_space()
2437 struct tun_file *tfile, in tun_xdp_one()
2558 struct tun_file *tfile = container_of(sock, struct tun_file, socket); in tun_sendmsg()
2610 struct tun_file *tfile = container_of(sock, struct tun_file, socket); in tun_recvmsg()
2661 struct tun_file *tfile = container_of(sock, struct tun_file, socket); in tun_peek_len()
2685 .obj_size = sizeof(struct tun_file),
2738 struct tun_file *tfile = file->private_data; in tun_set_iff()
2931 struct tun_file *tfile; in tun_detach_filter()
2946 struct tun_file *tfile; in tun_attach_filter()
2965 struct tun_file *tfile; in tun_set_sndbuf()
2976 struct tun_file *tfile = file->private_data; in tun_set_queue()
3072 struct tun_file *tfile = file->private_data; in __tun_chr_ioctl()
3440 struct tun_file *tfile = file->private_data; in tun_chr_fasync()
3459 struct tun_file *tfile; in tun_chr_open()
3461 tfile = (struct tun_file *)sk_alloc(net, AF_UNSPEC, GFP_KERNEL, in tun_chr_open()
3497 struct tun_file *tfile = file->private_data; in tun_chr_close()
3507 struct tun_file *tfile = file->private_data; in tun_chr_show_fdinfo()
3657 struct tun_file *tfile; in tun_queue_resize()
3698 struct tun_file *tfile; in tun_device_event()
3762 struct tun_file *tfile; in tun_get_socket()
3774 struct tun_file *tfile; in tun_get_tx_ring()