Lines Matching refs:tun_file
130 struct tun_file { struct
180 struct tun_file __rcu *tfiles[MAX_TAP_QUEUES];
229 struct tun_file *tfile = container_of(napi, struct tun_file, napi); in tun_napi_receive()
267 static void tun_napi_init(struct tun_struct *tun, struct tun_file *tfile, in tun_napi_init()
278 static void tun_napi_enable(struct tun_file *tfile) in tun_napi_enable()
284 static void tun_napi_disable(struct tun_file *tfile) in tun_napi_disable()
290 static void tun_napi_del(struct tun_file *tfile) in tun_napi_del()
296 static bool tun_napi_frags_enabled(const struct tun_file *tfile) in tun_napi_frags_enabled()
412 struct tun_file *tfile) in tun_flow_update()
529 static void tun_disable_queue(struct tun_struct *tun, struct tun_file *tfile) in tun_disable_queue()
536 static struct tun_struct *tun_enable_queue(struct tun_file *tfile) in tun_enable_queue()
560 static void tun_queue_purge(struct tun_file *tfile) in tun_queue_purge()
571 static void __tun_detach(struct tun_file *tfile, bool clean) in __tun_detach()
573 struct tun_file *ntfile; in __tun_detach()
629 static void tun_detach(struct tun_file *tfile, bool clean) in tun_detach()
649 struct tun_file *tfile, *tmp; in tun_detach_all()
694 struct tun_file *tfile = file->private_data; in tun_attach()
785 static struct tun_struct *tun_get(struct tun_file *tfile) in tun_get()
1009 struct tun_file *tfile; in tun_net_xmit()
1130 struct tun_file *tfile; in tun_xdp_set()
1194 static void __tun_xdp_flush_tfile(struct tun_file *tfile) in __tun_xdp_flush_tfile()
1206 struct tun_file *tfile; in tun_xdp_xmit()
1346 static bool tun_sock_writeable(struct tun_struct *tun, struct tun_file *tfile) in tun_sock_writeable()
1358 struct tun_file *tfile = file->private_data; in tun_chr_poll()
1390 static struct sk_buff *tun_napi_alloc_frags(struct tun_file *tfile, in tun_napi_alloc_frags()
1447 static struct sk_buff *tun_alloc_skb(struct tun_file *tfile, in tun_alloc_skb()
1474 static void tun_rx_batched(struct tun_struct *tun, struct tun_file *tfile, in tun_rx_batched()
1514 static bool tun_can_build_skb(struct tun_struct *tun, struct tun_file *tfile, in tun_can_build_skb()
1536 static struct sk_buff *__tun_build_skb(struct tun_file *tfile, in __tun_build_skb()
1597 struct tun_file *tfile, in tun_build_skb()
1693 static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile, in tun_get_user()
1988 struct tun_file *tfile = file->private_data; in tun_chr_write_iter()
2006 struct tun_file *tfile, in tun_put_user_xdp()
2034 struct tun_file *tfile, in tun_put_user()
2116 static void *tun_ring_recv(struct tun_file *tfile, int noblock, int *err) in tun_ring_recv()
2157 static ssize_t tun_do_read(struct tun_struct *tun, struct tun_file *tfile, in tun_do_read()
2197 struct tun_file *tfile = file->private_data; in tun_chr_read_iter()
2352 struct tun_file *tfile; in tun_sock_write_space()
2366 tfile = container_of(sk, struct tun_file, sk); in tun_sock_write_space()
2377 struct tun_file *tfile, in tun_xdp_one()
2512 struct tun_file *tfile = container_of(sock, struct tun_file, socket); in tun_sendmsg()
2567 struct tun_file *tfile = container_of(sock, struct tun_file, socket); in tun_recvmsg()
2618 struct tun_file *tfile = container_of(sock, struct tun_file, socket); in tun_peek_len()
2642 .obj_size = sizeof(struct tun_file),
2695 struct tun_file *tfile = file->private_data; in tun_set_iff()
2902 struct tun_file *tfile; in tun_detach_filter()
2917 struct tun_file *tfile; in tun_attach_filter()
2936 struct tun_file *tfile; in tun_set_sndbuf()
2947 struct tun_file *tfile = file->private_data; in tun_set_queue()
3043 struct tun_file *tfile = file->private_data; in __tun_chr_ioctl()
3371 struct tun_file *tfile = file->private_data; in tun_chr_fasync()
3396 struct tun_file *tfile; in tun_chr_open()
3398 tfile = (struct tun_file *)sk_alloc(net, AF_UNSPEC, GFP_KERNEL, in tun_chr_open()
3434 struct tun_file *tfile = file->private_data; in tun_chr_close()
3444 struct tun_file *tfile = file->private_data; in tun_chr_show_fdinfo()
3603 struct tun_file *tfile; in tun_queue_resize()
3644 struct tun_file *tfile; in tun_device_event()
3708 struct tun_file *tfile; in tun_get_socket()
3720 struct tun_file *tfile; in tun_get_tx_ring()