Lines Matching defs:tun

83 #define tun_debug(level, tun, fmt, args...)			\  argument
94 #define tun_debug(level, tun, fmt, args...) \ argument
148 struct tun_struct __rcu *tun; member
164 struct tun_struct *tun; member
209 static inline u16 tun16_to_cpu(struct tun_struct *tun, __virtio16 val) in tun16_to_cpu()
214 static inline __virtio16 cpu_to_tun16(struct tun_struct *tun, u16 val) in cpu_to_tun16()
235 static struct tun_flow_entry *tun_flow_create(struct tun_struct *tun, in tun_flow_create()
255 static void tun_flow_delete(struct tun_struct *tun, struct tun_flow_entry *e) in tun_flow_delete()
264 static void tun_flow_flush(struct tun_struct *tun) in tun_flow_flush()
279 static void tun_flow_delete_by_queue(struct tun_struct *tun, u16 queue_index) in tun_flow_delete_by_queue()
298 struct tun_struct *tun = (struct tun_struct *)data; in tun_flow_cleanup() local
327 static void tun_flow_update(struct tun_struct *tun, u32 rxhash, in tun_flow_update()
389 struct tun_struct *tun = netdev_priv(dev); in tun_select_queue() local
416 static inline bool tun_not_capable(struct tun_struct *tun) in tun_not_capable()
426 static void tun_set_real_num_queues(struct tun_struct *tun) in tun_set_real_num_queues()
432 static void tun_disable_queue(struct tun_struct *tun, struct tun_file *tfile) in tun_disable_queue()
441 struct tun_struct *tun = tfile->detached; in tun_enable_queue() local
458 struct tun_struct *tun; in __tun_detach() local
512 struct tun_struct *tun = netdev_priv(dev); in tun_detach_all() local
547 static int tun_attach(struct tun_struct *tun, struct file *file, bool skip_filter) in tun_attach()
599 struct tun_struct *tun; in __tun_get() local
615 static void tun_put(struct tun_struct *tun) in tun_put()
757 struct tun_struct *tun = netdev_priv(dev); in tun_net_xmit() local
865 struct tun_struct *tun = netdev_priv(dev); in tun_net_fix_features() local
915 static void tun_flow_init(struct tun_struct *tun) in tun_flow_init()
928 static void tun_flow_uninit(struct tun_struct *tun) in tun_flow_uninit()
937 struct tun_struct *tun = netdev_priv(dev); in tun_net_init() local
974 struct tun_struct *tun = __tun_get(tfile); in tun_chr_poll() local
1030 static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile, in tun_get_user()
1221 struct tun_struct *tun = tun_get(file); in tun_chr_write_iter() local
1235 static ssize_t tun_put_user(struct tun_struct *tun, in tun_put_user()
1347 static ssize_t tun_do_read(struct tun_struct *tun, struct tun_file *tfile, in tun_do_read()
1382 struct tun_struct *tun = __tun_get(tfile); in tun_chr_read_iter() local
1397 struct tun_struct *tun = netdev_priv(dev); in tun_free_netdev() local
1407 struct tun_struct *tun = netdev_priv(dev); in tun_setup() local
1455 struct tun_struct *tun = __tun_get(tfile); in tun_sendmsg() local
1470 struct tun_struct *tun = __tun_get(tfile); in tun_recvmsg() local
1515 static int tun_flags(struct tun_struct *tun) in tun_flags()
1523 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in tun_show_flags() local
1530 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in tun_show_owner() local
1540 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in tun_show_group() local
1564 struct tun_struct *tun; in tun_set_iff() local
1706 static void tun_get_iff(struct net *net, struct tun_struct *tun, in tun_get_iff()
1719 static int set_offload(struct tun_struct *tun, unsigned long arg) in set_offload()
1756 static void tun_detach_filter(struct tun_struct *tun, int n) in tun_detach_filter()
1769 static int tun_attach_filter(struct tun_struct *tun) in tun_attach_filter()
1787 static void tun_set_sndbuf(struct tun_struct *tun) in tun_set_sndbuf()
1801 struct tun_struct *tun; in tun_set_queue() local
1834 struct tun_struct *tun; in __tun_chr_ioctl() local
2205 struct tun_struct *tun; in tun_chr_show_fdinfo() local
2267 struct tun_struct *tun = netdev_priv(dev); in tun_get_drvinfo() local
2285 struct tun_struct *tun = netdev_priv(dev); in tun_get_msglevel() local
2295 struct tun_struct *tun = netdev_priv(dev); in tun_set_msglevel() local