Lines Matching refs:tun_struct
148 struct tun_struct __rcu *tun;
158 struct tun_struct *detached;
164 struct tun_struct *tun;
178 struct tun_struct { struct
209 static inline u16 tun16_to_cpu(struct tun_struct *tun, __virtio16 val) in tun16_to_cpu() argument
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()
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()
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()
439 static struct tun_struct *tun_enable_queue(struct tun_file *tfile) in tun_enable_queue()
441 struct tun_struct *tun = tfile->detached; in tun_enable_queue()
458 struct tun_struct *tun; in __tun_detach()
512 struct tun_struct *tun = netdev_priv(dev); in tun_detach_all()
547 static int tun_attach(struct tun_struct *tun, struct file *file, bool skip_filter) in tun_attach()
597 static struct tun_struct *__tun_get(struct tun_file *tfile) in __tun_get()
599 struct tun_struct *tun; in __tun_get()
610 static struct tun_struct *tun_get(struct file *file) in tun_get()
615 static void tun_put(struct tun_struct *tun) in tun_put()
757 struct tun_struct *tun = netdev_priv(dev); in tun_net_xmit()
865 struct tun_struct *tun = netdev_priv(dev); in tun_net_fix_features()
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()
974 struct tun_struct *tun = __tun_get(tfile); in tun_chr_poll()
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()
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()
1397 struct tun_struct *tun = netdev_priv(dev); in tun_free_netdev()
1407 struct tun_struct *tun = netdev_priv(dev); in tun_setup()
1426 .priv_size = sizeof(struct tun_struct),
1455 struct tun_struct *tun = __tun_get(tfile); in tun_sendmsg()
1470 struct tun_struct *tun = __tun_get(tfile); in tun_recvmsg()
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()
1530 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in tun_show_owner()
1540 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in tun_show_group()
1564 struct tun_struct *tun; in tun_set_iff()
1632 dev = alloc_netdev_mqs(sizeof(struct tun_struct), name, in tun_set_iff()
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()
1834 struct tun_struct *tun; in __tun_chr_ioctl()
2205 struct tun_struct *tun; in tun_chr_show_fdinfo()
2267 struct tun_struct *tun = netdev_priv(dev); in tun_get_drvinfo()
2285 struct tun_struct *tun = netdev_priv(dev); in tun_get_msglevel()
2295 struct tun_struct *tun = netdev_priv(dev); in tun_set_msglevel()