Lines Matching refs:tun_struct

134 	struct tun_struct __rcu *tun;
147 struct tun_struct *detached;
160 struct tun_struct *tun;
180 struct tun_struct { struct
224 static void tun_flow_init(struct tun_struct *tun); argument
225 static void tun_flow_uninit(struct tun_struct *tun);
267 static void tun_napi_init(struct tun_struct *tun, struct tun_file *tfile, in tun_napi_init()
302 static inline bool tun_legacy_is_little_endian(struct tun_struct *tun) in tun_legacy_is_little_endian()
308 static long tun_get_vnet_be(struct tun_struct *tun, int __user *argp) in tun_get_vnet_be()
318 static long tun_set_vnet_be(struct tun_struct *tun, int __user *argp) in tun_set_vnet_be()
333 static inline bool tun_legacy_is_little_endian(struct tun_struct *tun) in tun_legacy_is_little_endian()
338 static long tun_get_vnet_be(struct tun_struct *tun, int __user *argp) in tun_get_vnet_be()
343 static long tun_set_vnet_be(struct tun_struct *tun, int __user *argp) in tun_set_vnet_be()
349 static inline bool tun_is_little_endian(struct tun_struct *tun) in tun_is_little_endian()
355 static inline u16 tun16_to_cpu(struct tun_struct *tun, __virtio16 val) in tun16_to_cpu()
360 static inline __virtio16 cpu_to_tun16(struct tun_struct *tun, u16 val) in cpu_to_tun16()
381 static struct tun_flow_entry *tun_flow_create(struct tun_struct *tun, in tun_flow_create()
402 static void tun_flow_delete(struct tun_struct *tun, struct tun_flow_entry *e) in tun_flow_delete()
411 static void tun_flow_flush(struct tun_struct *tun) in tun_flow_flush()
426 static void tun_flow_delete_by_queue(struct tun_struct *tun, u16 queue_index) in tun_flow_delete_by_queue()
445 struct tun_struct *tun = from_timer(tun, t, flow_gc_timer); in tun_flow_cleanup()
475 static void tun_flow_update(struct tun_struct *tun, u32 rxhash, in tun_flow_update()
525 static u16 tun_automq_select_queue(struct tun_struct *tun, struct sk_buff *skb) in tun_automq_select_queue()
544 static u16 tun_ebpf_select_queue(struct tun_struct *tun, struct sk_buff *skb) in tun_ebpf_select_queue()
564 struct tun_struct *tun = netdev_priv(dev); in tun_select_queue()
577 static inline bool tun_not_capable(struct tun_struct *tun) in tun_not_capable()
587 static void tun_set_real_num_queues(struct tun_struct *tun) in tun_set_real_num_queues()
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()
602 struct tun_struct *tun = tfile->detached; in tun_enable_queue()
638 struct tun_struct *tun; in __tun_detach()
695 struct tun_struct *tun; in tun_detach()
712 struct tun_struct *tun = netdev_priv(dev); in tun_detach_all()
754 static int tun_attach(struct tun_struct *tun, struct file *file, in tun_attach()
849 static struct tun_struct *tun_get(struct tun_file *tfile) in tun_get()
851 struct tun_struct *tun; in tun_get()
862 static void tun_put(struct tun_struct *tun) in tun_put()
977 struct tun_struct *tun = netdev_priv(dev); in tun_net_init()
1035 static void tun_automq_xmit(struct tun_struct *tun, struct sk_buff *skb) in tun_automq_xmit()
1053 static unsigned int run_ebpf_filter(struct tun_struct *tun, in run_ebpf_filter()
1068 struct tun_struct *tun = netdev_priv(dev); in tun_net_xmit()
1165 struct tun_struct *tun = netdev_priv(dev); in tun_net_fix_features()
1172 struct tun_struct *tun = netdev_priv(dev); in tun_set_headroom()
1183 struct tun_struct *tun = netdev_priv(dev); in tun_net_get_stats64()
1194 struct tun_struct *tun = netdev_priv(dev); in tun_xdp_set()
1234 struct tun_struct *tun = netdev_priv(dev); in tun_net_change_carrier()
1270 struct tun_struct *tun = netdev_priv(dev); in tun_xdp_xmit()
1348 static void tun_flow_init(struct tun_struct *tun) in tun_flow_init()
1361 static void tun_flow_uninit(struct tun_struct *tun) in tun_flow_uninit()
1373 struct tun_struct *tun = netdev_priv(dev); in tun_net_initialize()
1411 static bool tun_sock_writeable(struct tun_struct *tun, struct tun_file *tfile) in tun_sock_writeable()
1424 struct tun_struct *tun = tun_get(tfile); in tun_chr_poll()
1539 static void tun_rx_batched(struct tun_struct *tun, struct tun_file *tfile, in tun_rx_batched()
1579 static bool tun_can_build_skb(struct tun_struct *tun, struct tun_file *tfile, in tun_can_build_skb()
1620 static int tun_xdp_act(struct tun_struct *tun, struct bpf_prog *xdp_prog, in tun_xdp_act()
1658 static struct sk_buff *tun_build_skb(struct tun_struct *tun, in tun_build_skb()
1748 static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile, in tun_get_user()
2043 struct tun_struct *tun = tun_get(tfile); in tun_chr_write_iter()
2059 static ssize_t tun_put_user_xdp(struct tun_struct *tun, in tun_put_user_xdp()
2090 static ssize_t tun_put_user(struct tun_struct *tun, in tun_put_user()
2223 static ssize_t tun_do_read(struct tun_struct *tun, struct tun_file *tfile, in tun_do_read()
2264 struct tun_struct *tun = tun_get(tfile); in tun_chr_read_iter()
2290 static int __tun_set_ebpf(struct tun_struct *tun, in __tun_set_ebpf()
2317 struct tun_struct *tun = netdev_priv(dev); in tun_free_netdev()
2329 struct tun_struct *tun = netdev_priv(dev); in tun_setup()
2372 struct tun_struct *tun = netdev_priv(dev); in tun_fill_info()
2409 .priv_size = sizeof(struct tun_struct),
2442 static int tun_xdp_one(struct tun_struct *tun, in tun_xdp_one()
2568 struct tun_struct *tun = tun_get(tfile); in tun_sendmsg()
2623 struct tun_struct *tun = tun_get(tfile); in tun_recvmsg()
2674 struct tun_struct *tun; in tun_peek_len()
2700 static int tun_flags(struct tun_struct *tun) in tun_flags()
2708 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in tun_flags_show()
2715 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in owner_show()
2725 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in group_show()
2749 struct tun_struct *tun; in tun_set_iff()
2833 dev = alloc_netdev_mqs(sizeof(struct tun_struct), name, in tun_set_iff()
2888 static void tun_get_iff(struct tun_struct *tun, struct ifreq *ifr) in tun_get_iff()
2898 static int set_offload(struct tun_struct *tun, unsigned long arg) in set_offload()
2940 static void tun_detach_filter(struct tun_struct *tun, int n) in tun_detach_filter()
2955 static int tun_attach_filter(struct tun_struct *tun) in tun_attach_filter()
2975 static void tun_set_sndbuf(struct tun_struct *tun) in tun_set_sndbuf()
2989 struct tun_struct *tun; in tun_set_queue()
3022 static int tun_set_ebpf(struct tun_struct *tun, struct tun_prog __rcu **prog_p, in tun_set_ebpf()
3086 struct tun_struct *tun; in __tun_chr_ioctl()
3526 struct tun_struct *tun; in tun_chr_show_fdinfo()
3585 struct tun_struct *tun = netdev_priv(dev); in tun_get_link_ksettings()
3594 struct tun_struct *tun = netdev_priv(dev); in tun_set_link_ksettings()
3602 struct tun_struct *tun = netdev_priv(dev); in tun_get_drvinfo()
3619 struct tun_struct *tun = netdev_priv(dev); in tun_get_msglevel()
3626 struct tun_struct *tun = netdev_priv(dev); in tun_set_msglevel()
3636 struct tun_struct *tun = netdev_priv(dev); in tun_get_coalesce()
3648 struct tun_struct *tun = netdev_priv(dev); in tun_set_coalesce()
3661 struct tun_struct *tun = netdev_priv(dev); in tun_get_channels()
3681 static int tun_queue_resize(struct tun_struct *tun) in tun_queue_resize()
3712 struct tun_struct *tun = netdev_priv(dev); in tun_device_event()