Lines Matching refs:tun_file

170 struct tun_file {  struct
216 struct tun_file __rcu *tfiles[MAX_TAP_QUEUES];
278 struct tun_file *tfile = container_of(napi, struct tun_file, napi); in tun_napi_receive()
316 static void tun_napi_init(struct tun_struct *tun, struct tun_file *tfile, in tun_napi_init()
328 static void tun_napi_disable(struct tun_file *tfile) in tun_napi_disable()
334 static void tun_napi_del(struct tun_file *tfile) in tun_napi_del()
340 static bool tun_napi_frags_enabled(const struct tun_file *tfile) in tun_napi_frags_enabled()
521 struct tun_file *tfile) in tun_flow_update()
644 static void tun_disable_queue(struct tun_struct *tun, struct tun_file *tfile) in tun_disable_queue()
651 static struct tun_struct *tun_enable_queue(struct tun_file *tfile) in tun_enable_queue()
675 static void tun_queue_purge(struct tun_file *tfile) in tun_queue_purge()
686 static void __tun_detach(struct tun_file *tfile, bool clean) in __tun_detach()
688 struct tun_file *ntfile; in __tun_detach()
739 static void tun_detach(struct tun_file *tfile, bool clean) in tun_detach()
756 struct tun_file *tfile, *tmp; in tun_detach_all()
799 struct tun_file *tfile = file->private_data; in tun_attach()
883 static struct tun_struct *tun_get(struct tun_file *tfile) in tun_get()
1024 struct tun_file *tfile; in tun_net_open()
1079 struct tun_file *tfile; in tun_net_xmit()
1254 static void __tun_xdp_flush_tfile(struct tun_file *tfile) in __tun_xdp_flush_tfile()
1266 struct tun_file *tfile; in tun_xdp_xmit()
1393 static bool tun_sock_writeable(struct tun_struct *tun, struct tun_file *tfile) in tun_sock_writeable()
1405 struct tun_file *tfile = file->private_data; in tun_chr_poll()
1439 static struct sk_buff *tun_napi_alloc_frags(struct tun_file *tfile, in tun_napi_alloc_frags()
1495 static struct sk_buff *tun_alloc_skb(struct tun_file *tfile, in tun_alloc_skb()
1520 static void tun_rx_batched(struct tun_struct *tun, struct tun_file *tfile, in tun_rx_batched()
1556 static bool tun_can_build_skb(struct tun_struct *tun, struct tun_file *tfile, in tun_can_build_skb()
1579 struct tun_file *tfile, in tun_build_skb()
1697 static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile, in tun_get_user()
1961 struct tun_file *tfile = file->private_data; in tun_chr_write_iter()
1976 struct tun_file *tfile, in tun_put_user_xdp()
2011 struct tun_file *tfile, in tun_put_user()
2104 static void *tun_ring_recv(struct tun_file *tfile, int noblock, int *err) in tun_ring_recv()
2145 static ssize_t tun_do_read(struct tun_struct *tun, struct tun_file *tfile, in tun_do_read()
2187 struct tun_file *tfile = file->private_data; in tun_chr_read_iter()
2335 struct tun_file *tfile; in tun_sock_write_space()
2349 tfile = container_of(sk, struct tun_file, sk); in tun_sock_write_space()
2356 struct tun_file *tfile = container_of(sock, struct tun_file, socket); in tun_sendmsg()
2372 struct tun_file *tfile = container_of(sock, struct tun_file, socket); in tun_recvmsg()
2423 struct tun_file *tfile = container_of(sock, struct tun_file, socket); in tun_peek_len()
2447 .obj_size = sizeof(struct tun_file),
2500 struct tun_file *tfile = file->private_data; in tun_set_iff()
2727 struct tun_file *tfile; in tun_detach_filter()
2742 struct tun_file *tfile; in tun_attach_filter()
2761 struct tun_file *tfile; in tun_set_sndbuf()
2772 struct tun_file *tfile = file->private_data; in tun_set_queue()
2829 struct tun_file *tfile = file->private_data; in __tun_chr_ioctl()
3174 struct tun_file *tfile = file->private_data; in tun_chr_fasync()
3193 struct tun_file *tfile; in tun_chr_open()
3197 tfile = (struct tun_file *)sk_alloc(net, AF_UNSPEC, GFP_KERNEL, in tun_chr_open()
3232 struct tun_file *tfile = file->private_data; in tun_chr_close()
3242 struct tun_file *tfile = file->private_data; in tun_chr_show_fdinfo()
3391 struct tun_file *tfile; in tun_queue_resize()
3487 struct tun_file *tfile; in tun_get_socket()
3499 struct tun_file *tfile; in tun_get_tx_ring()