Lines Matching defs:tun

133 	struct tun_struct __rcu *tun;  member
159 struct tun_struct *tun; member
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() local
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() local
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()
537 struct tun_struct *tun = tfile->detached; in tun_enable_queue() local
573 struct tun_struct *tun; in __tun_detach() local
630 struct tun_struct *tun; in tun_detach() local
647 struct tun_struct *tun = netdev_priv(dev); in tun_detach_all() local
689 static int tun_attach(struct tun_struct *tun, struct file *file, in tun_attach()
786 struct tun_struct *tun; in tun_get() local
797 static void tun_put(struct tun_struct *tun) in tun_put()
912 struct tun_struct *tun = netdev_priv(dev); in tun_net_init() local
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() local
1100 struct tun_struct *tun = netdev_priv(dev); in tun_net_fix_features() local
1107 struct tun_struct *tun = netdev_priv(dev); in tun_set_headroom() local
1118 struct tun_struct *tun = netdev_priv(dev); in tun_net_get_stats64() local
1129 struct tun_struct *tun = netdev_priv(dev); in tun_xdp_set() local
1169 struct tun_struct *tun = netdev_priv(dev); in tun_net_change_carrier() local
1205 struct tun_struct *tun = netdev_priv(dev); in tun_xdp_xmit() local
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() local
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() local
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() local
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() local
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() local
2240 struct tun_struct *tun = netdev_priv(dev); in tun_setup() local
2283 struct tun_struct *tun = netdev_priv(dev); in tun_fill_info() local
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() local
2542 struct tun_struct *tun = tun_get(tfile); in tun_recvmsg() local
2593 struct tun_struct *tun; in tun_peek_len() local
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() local
2634 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in owner_show() local
2644 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in group_show() local
2668 struct tun_struct *tun; in tun_set_iff() local
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() local
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() local
3399 struct tun_struct *tun; in tun_chr_show_fdinfo() local
3458 struct tun_struct *tun = netdev_priv(dev); in tun_get_link_ksettings() local
3467 struct tun_struct *tun = netdev_priv(dev); in tun_set_link_ksettings() local
3475 struct tun_struct *tun = netdev_priv(dev); in tun_get_drvinfo() local
3492 struct tun_struct *tun = netdev_priv(dev); in tun_get_msglevel() local
3499 struct tun_struct *tun = netdev_priv(dev); in tun_set_msglevel() local
3509 struct tun_struct *tun = netdev_priv(dev); in tun_get_coalesce() local
3521 struct tun_struct *tun = netdev_priv(dev); in tun_set_coalesce() local
3534 struct tun_struct *tun = netdev_priv(dev); in tun_get_channels() local
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() local