Lines Matching refs:tun_struct

133 	struct tun_struct __rcu *tun;
146 struct tun_struct *detached;
159 struct tun_struct *tun;
179 struct tun_struct { struct
223 static void tun_flow_init(struct tun_struct *tun); argument
224 static void tun_flow_uninit(struct tun_struct *tun);
266 static void tun_napi_init(struct tun_struct *tun, struct tun_file *tfile, in tun_napi_init()
316 static struct tun_flow_entry *tun_flow_create(struct tun_struct *tun, in tun_flow_create()
337 static void tun_flow_delete(struct tun_struct *tun, struct tun_flow_entry *e) in tun_flow_delete()
346 static void tun_flow_flush(struct tun_struct *tun) in tun_flow_flush()
361 static void tun_flow_delete_by_queue(struct tun_struct *tun, u16 queue_index) in tun_flow_delete_by_queue()
380 struct tun_struct *tun = from_timer(tun, t, flow_gc_timer); in tun_flow_cleanup()
410 static void tun_flow_update(struct tun_struct *tun, u32 rxhash, in tun_flow_update()
460 static u16 tun_automq_select_queue(struct tun_struct *tun, struct sk_buff *skb) in tun_automq_select_queue()
479 static u16 tun_ebpf_select_queue(struct tun_struct *tun, struct sk_buff *skb) in tun_ebpf_select_queue()
499 struct tun_struct *tun = netdev_priv(dev); in tun_select_queue()
512 static inline bool tun_not_capable(struct tun_struct *tun) in tun_not_capable()
522 static void tun_set_real_num_queues(struct tun_struct *tun) in tun_set_real_num_queues()
528 static void tun_disable_queue(struct tun_struct *tun, struct tun_file *tfile) in tun_disable_queue()
535 static struct tun_struct *tun_enable_queue(struct tun_file *tfile) in tun_enable_queue()
537 struct tun_struct *tun = tfile->detached; in tun_enable_queue()
573 struct tun_struct *tun; in __tun_detach()
630 struct tun_struct *tun; in tun_detach()
647 struct tun_struct *tun = netdev_priv(dev); in tun_detach_all()
689 static int tun_attach(struct tun_struct *tun, struct file *file, in tun_attach()
784 static struct tun_struct *tun_get(struct tun_file *tfile) in tun_get()
786 struct tun_struct *tun; in tun_get()
797 static void tun_put(struct tun_struct *tun) in tun_put()
912 struct tun_struct *tun = netdev_priv(dev); in tun_net_init()
970 static void tun_automq_xmit(struct tun_struct *tun, struct sk_buff *skb) in tun_automq_xmit()
988 static unsigned int run_ebpf_filter(struct tun_struct *tun, in run_ebpf_filter()
1003 struct tun_struct *tun = netdev_priv(dev); in tun_net_xmit()
1100 struct tun_struct *tun = netdev_priv(dev); in tun_net_fix_features()
1107 struct tun_struct *tun = netdev_priv(dev); in tun_set_headroom()
1118 struct tun_struct *tun = netdev_priv(dev); in tun_net_get_stats64()
1129 struct tun_struct *tun = netdev_priv(dev); in tun_xdp_set()
1169 struct tun_struct *tun = netdev_priv(dev); in tun_net_change_carrier()
1205 struct tun_struct *tun = netdev_priv(dev); in tun_xdp_xmit()
1283 static void tun_flow_init(struct tun_struct *tun) in tun_flow_init()
1296 static void tun_flow_uninit(struct tun_struct *tun) in tun_flow_uninit()
1308 struct tun_struct *tun = netdev_priv(dev); in tun_net_initialize()
1346 static bool tun_sock_writeable(struct tun_struct *tun, struct tun_file *tfile) in tun_sock_writeable()
1359 struct tun_struct *tun = tun_get(tfile); in tun_chr_poll()
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()
1558 static int tun_xdp_act(struct tun_struct *tun, struct bpf_prog *xdp_prog, in tun_xdp_act()
1596 static struct sk_buff *tun_build_skb(struct tun_struct *tun, in tun_build_skb()
1693 static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile, in tun_get_user()
1974 struct tun_struct *tun = tun_get(tfile); in tun_chr_write_iter()
1990 static ssize_t tun_put_user_xdp(struct tun_struct *tun, in tun_put_user_xdp()
2018 static ssize_t tun_put_user(struct tun_struct *tun, in tun_put_user()
2134 static ssize_t tun_do_read(struct tun_struct *tun, struct tun_file *tfile, in tun_do_read()
2175 struct tun_struct *tun = tun_get(tfile); in tun_chr_read_iter()
2201 static int __tun_set_ebpf(struct tun_struct *tun, in __tun_set_ebpf()
2228 struct tun_struct *tun = netdev_priv(dev); in tun_free_netdev()
2240 struct tun_struct *tun = netdev_priv(dev); in tun_setup()
2283 struct tun_struct *tun = netdev_priv(dev); in tun_fill_info()
2320 .priv_size = sizeof(struct tun_struct),
2353 static int tun_xdp_one(struct tun_struct *tun, in tun_xdp_one()
2487 struct tun_struct *tun = tun_get(tfile); in tun_sendmsg()
2542 struct tun_struct *tun = tun_get(tfile); in tun_recvmsg()
2593 struct tun_struct *tun; in tun_peek_len()
2619 static int tun_flags(struct tun_struct *tun) in tun_flags()
2627 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in tun_flags_show()
2634 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in owner_show()
2644 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in group_show()
2668 struct tun_struct *tun; in tun_set_iff()
2752 dev = alloc_netdev_mqs(sizeof(struct tun_struct), name, in tun_set_iff()
2807 static void tun_get_iff(struct tun_struct *tun, struct ifreq *ifr) in tun_get_iff()
2817 static int set_offload(struct tun_struct *tun, unsigned long arg) in set_offload()
2859 static void tun_detach_filter(struct tun_struct *tun, int n) in tun_detach_filter()
2874 static int tun_attach_filter(struct tun_struct *tun) in tun_attach_filter()
2894 static void tun_set_sndbuf(struct tun_struct *tun) in tun_set_sndbuf()
2908 struct tun_struct *tun; in tun_set_queue()
2941 static int tun_set_ebpf(struct tun_struct *tun, struct tun_prog __rcu **prog_p, in tun_set_ebpf()
3005 struct tun_struct *tun; in __tun_chr_ioctl()
3399 struct tun_struct *tun; in tun_chr_show_fdinfo()
3458 struct tun_struct *tun = netdev_priv(dev); in tun_get_link_ksettings()
3467 struct tun_struct *tun = netdev_priv(dev); in tun_set_link_ksettings()
3475 struct tun_struct *tun = netdev_priv(dev); in tun_get_drvinfo()
3492 struct tun_struct *tun = netdev_priv(dev); in tun_get_msglevel()
3499 struct tun_struct *tun = netdev_priv(dev); in tun_set_msglevel()
3509 struct tun_struct *tun = netdev_priv(dev); in tun_get_coalesce()
3521 struct tun_struct *tun = netdev_priv(dev); in tun_set_coalesce()
3534 struct tun_struct *tun = netdev_priv(dev); in tun_get_channels()
3554 static int tun_queue_resize(struct tun_struct *tun) in tun_queue_resize()
3585 struct tun_struct *tun = netdev_priv(dev); in tun_device_event()