Lines Matching defs:tun
84 #define tun_debug(level, tun, fmt, args...) \ argument
95 #define tun_debug(level, tun, fmt, args...) \ argument
163 struct tun_struct __rcu *tun; member
189 struct tun_struct *tun; member
310 static void tun_napi_init(struct tun_struct *tun, struct tun_file *tfile, in tun_napi_init()
340 static inline bool tun_legacy_is_little_endian(struct tun_struct *tun) in tun_legacy_is_little_endian()
346 static long tun_get_vnet_be(struct tun_struct *tun, int __user *argp) in tun_get_vnet_be()
356 static long tun_set_vnet_be(struct tun_struct *tun, int __user *argp) in tun_set_vnet_be()
371 static inline bool tun_legacy_is_little_endian(struct tun_struct *tun) in tun_legacy_is_little_endian()
376 static long tun_get_vnet_be(struct tun_struct *tun, int __user *argp) in tun_get_vnet_be()
381 static long tun_set_vnet_be(struct tun_struct *tun, int __user *argp) in tun_set_vnet_be()
387 static inline bool tun_is_little_endian(struct tun_struct *tun) in tun_is_little_endian()
393 static inline u16 tun16_to_cpu(struct tun_struct *tun, __virtio16 val) in tun16_to_cpu()
398 static inline __virtio16 cpu_to_tun16(struct tun_struct *tun, u16 val) in cpu_to_tun16()
419 static struct tun_flow_entry *tun_flow_create(struct tun_struct *tun, in tun_flow_create()
439 static void tun_flow_delete(struct tun_struct *tun, struct tun_flow_entry *e) in tun_flow_delete()
448 static void tun_flow_flush(struct tun_struct *tun) in tun_flow_flush()
463 static void tun_flow_delete_by_queue(struct tun_struct *tun, u16 queue_index) in tun_flow_delete_by_queue()
482 struct tun_struct *tun = from_timer(tun, t, flow_gc_timer); in tun_flow_cleanup() local
514 static void tun_flow_update(struct tun_struct *tun, u32 rxhash, in tun_flow_update()
565 static u16 tun_automq_select_queue(struct tun_struct *tun, struct sk_buff *skb) in tun_automq_select_queue()
586 static u16 tun_ebpf_select_queue(struct tun_struct *tun, struct sk_buff *skb) in tun_ebpf_select_queue()
606 struct tun_struct *tun = netdev_priv(dev); in tun_select_queue() local
619 static inline bool tun_not_capable(struct tun_struct *tun) in tun_not_capable()
629 static void tun_set_real_num_queues(struct tun_struct *tun) in tun_set_real_num_queues()
635 static void tun_disable_queue(struct tun_struct *tun, struct tun_file *tfile) in tun_disable_queue()
644 struct tun_struct *tun = tfile->detached; in tun_enable_queue() local
680 struct tun_struct *tun; in __tun_detach() local
734 struct tun_struct *tun; in tun_detach() local
748 struct tun_struct *tun = netdev_priv(dev); in tun_detach_all() local
789 static int tun_attach(struct tun_struct *tun, struct file *file, in tun_attach()
885 struct tun_struct *tun; in tun_get() local
896 static void tun_put(struct tun_struct *tun) in tun_put()
1031 static void tun_automq_xmit(struct tun_struct *tun, struct sk_buff *skb) in tun_automq_xmit()
1049 static unsigned int run_ebpf_filter(struct tun_struct *tun, in run_ebpf_filter()
1064 struct tun_struct *tun = netdev_priv(dev); in tun_net_xmit() local
1140 struct tun_struct *tun = netdev_priv(dev); in tun_net_fix_features() local
1147 struct tun_struct *tun = netdev_priv(dev); in tun_set_headroom() local
1159 struct tun_struct *tun = netdev_priv(dev); in tun_net_get_stats64() local
1194 struct tun_struct *tun = netdev_priv(dev); in tun_xdp_set() local
1223 struct tun_struct *tun = netdev_priv(dev); in tun_xdp_query() local
1249 struct tun_struct *tun = netdev_priv(dev); in tun_net_change_carrier() local
1284 struct tun_struct *tun = netdev_priv(dev); in tun_xdp_xmit() local
1359 static void tun_flow_init(struct tun_struct *tun) in tun_flow_init()
1372 static void tun_flow_uninit(struct tun_struct *tun) in tun_flow_uninit()
1384 struct tun_struct *tun = netdev_priv(dev); in tun_net_init() local
1416 static bool tun_sock_writeable(struct tun_struct *tun, struct tun_file *tfile) in tun_sock_writeable()
1429 struct tun_struct *tun = tun_get(tfile); in tun_chr_poll() local
1542 static void tun_rx_batched(struct tun_struct *tun, struct tun_file *tfile, in tun_rx_batched()
1582 static bool tun_can_build_skb(struct tun_struct *tun, struct tun_file *tfile, in tun_can_build_skb()
1623 static int tun_xdp_act(struct tun_struct *tun, struct bpf_prog *xdp_prog, in tun_xdp_act()
1655 static struct sk_buff *tun_build_skb(struct tun_struct *tun, in tun_build_skb()
1742 static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile, in tun_get_user()
2016 struct tun_struct *tun = tun_get(tfile); in tun_chr_write_iter() local
2029 static ssize_t tun_put_user_xdp(struct tun_struct *tun, in tun_put_user_xdp()
2064 static ssize_t tun_put_user(struct tun_struct *tun, in tun_put_user()
2199 static ssize_t tun_do_read(struct tun_struct *tun, struct tun_file *tfile, in tun_do_read()
2242 struct tun_struct *tun = tun_get(tfile); in tun_chr_read_iter() local
2263 static int __tun_set_ebpf(struct tun_struct *tun, in __tun_set_ebpf()
2290 struct tun_struct *tun = netdev_priv(dev); in tun_free_netdev() local
2302 struct tun_struct *tun = netdev_priv(dev); in tun_setup() local
2345 struct tun_struct *tun = netdev_priv(dev); in tun_fill_info() local
2415 static int tun_xdp_one(struct tun_struct *tun, in tun_xdp_one()
2523 struct tun_struct *tun = tun_get(tfile); in tun_sendmsg() local
2569 struct tun_struct *tun = tun_get(tfile); in tun_recvmsg() local
2620 struct tun_struct *tun; in tun_peek_len() local
2646 static int tun_flags(struct tun_struct *tun) in tun_flags()
2654 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in tun_show_flags() local
2661 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in tun_show_owner() local
2671 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in tun_show_group() local
2695 struct tun_struct *tun; in tun_set_iff() local
2875 static void tun_get_iff(struct tun_struct *tun, struct ifreq *ifr) in tun_get_iff()
2887 static int set_offload(struct tun_struct *tun, unsigned long arg) in set_offload()
2923 static void tun_detach_filter(struct tun_struct *tun, int n) in tun_detach_filter()
2938 static int tun_attach_filter(struct tun_struct *tun) in tun_attach_filter()
2958 static void tun_set_sndbuf(struct tun_struct *tun) in tun_set_sndbuf()
2972 struct tun_struct *tun; in tun_set_queue() local
3005 static int tun_set_ebpf(struct tun_struct *tun, struct tun_prog **prog_p, in tun_set_ebpf()
3030 struct tun_struct *tun; in __tun_chr_ioctl() local
3457 struct tun_struct *tun; in tun_chr_show_fdinfo() local
3517 struct tun_struct *tun = netdev_priv(dev); in tun_get_link_ksettings() local
3526 struct tun_struct *tun = netdev_priv(dev); in tun_set_link_ksettings() local
3534 struct tun_struct *tun = netdev_priv(dev); in tun_get_drvinfo() local
3552 struct tun_struct *tun = netdev_priv(dev); in tun_get_msglevel() local
3562 struct tun_struct *tun = netdev_priv(dev); in tun_set_msglevel() local
3570 struct tun_struct *tun = netdev_priv(dev); in tun_get_coalesce() local
3580 struct tun_struct *tun = netdev_priv(dev); in tun_set_coalesce() local
3602 static int tun_queue_resize(struct tun_struct *tun) in tun_queue_resize()
3633 struct tun_struct *tun = netdev_priv(dev); in tun_device_event() local