Lines Matching refs:tun_struct

149 	struct tun_struct __rcu *tun;
158 struct tun_struct *detached;
164 struct tun_struct *tun;
178 struct tun_struct { struct
210 static inline bool tun_legacy_is_little_endian(struct tun_struct *tun) in tun_legacy_is_little_endian() argument
216 static long tun_get_vnet_be(struct tun_struct *tun, int __user *argp) in tun_get_vnet_be()
226 static long tun_set_vnet_be(struct tun_struct *tun, int __user *argp) in tun_set_vnet_be()
241 static inline bool tun_legacy_is_little_endian(struct tun_struct *tun) in tun_legacy_is_little_endian()
246 static long tun_get_vnet_be(struct tun_struct *tun, int __user *argp) in tun_get_vnet_be()
251 static long tun_set_vnet_be(struct tun_struct *tun, int __user *argp) in tun_set_vnet_be()
257 static inline bool tun_is_little_endian(struct tun_struct *tun) in tun_is_little_endian()
263 static inline u16 tun16_to_cpu(struct tun_struct *tun, __virtio16 val) in tun16_to_cpu()
268 static inline __virtio16 cpu_to_tun16(struct tun_struct *tun, u16 val) in cpu_to_tun16()
289 static struct tun_flow_entry *tun_flow_create(struct tun_struct *tun, in tun_flow_create()
309 static void tun_flow_delete(struct tun_struct *tun, struct tun_flow_entry *e) in tun_flow_delete()
318 static void tun_flow_flush(struct tun_struct *tun) in tun_flow_flush()
333 static void tun_flow_delete_by_queue(struct tun_struct *tun, u16 queue_index) in tun_flow_delete_by_queue()
352 struct tun_struct *tun = (struct tun_struct *)data; in tun_flow_cleanup()
381 static void tun_flow_update(struct tun_struct *tun, u32 rxhash, in tun_flow_update()
443 struct tun_struct *tun = netdev_priv(dev); in tun_select_queue()
470 static inline bool tun_not_capable(struct tun_struct *tun) in tun_not_capable()
480 static void tun_set_real_num_queues(struct tun_struct *tun) in tun_set_real_num_queues()
486 static void tun_disable_queue(struct tun_struct *tun, struct tun_file *tfile) in tun_disable_queue()
493 static struct tun_struct *tun_enable_queue(struct tun_file *tfile) in tun_enable_queue()
495 struct tun_struct *tun = tfile->detached; in tun_enable_queue()
512 struct tun_struct *tun; in __tun_detach()
563 struct tun_struct *tun = netdev_priv(dev); in tun_detach_all()
600 static int tun_attach(struct tun_struct *tun, struct file *file, bool skip_filter) in tun_attach()
652 static struct tun_struct *__tun_get(struct tun_file *tfile) in __tun_get()
654 struct tun_struct *tun; in __tun_get()
665 static struct tun_struct *tun_get(struct file *file) in tun_get()
670 static void tun_put(struct tun_struct *tun) in tun_put()
812 struct tun_struct *tun = netdev_priv(dev); in tun_net_xmit()
920 struct tun_struct *tun = netdev_priv(dev); in tun_net_fix_features()
971 static void tun_flow_init(struct tun_struct *tun) in tun_flow_init()
984 static void tun_flow_uninit(struct tun_struct *tun) in tun_flow_uninit()
993 struct tun_struct *tun = netdev_priv(dev); in tun_net_init()
1028 struct tun_struct *tun = __tun_get(tfile); in tun_chr_poll()
1084 static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile, in tun_get_user()
1275 struct tun_struct *tun = tun_get(file); in tun_chr_write_iter()
1289 static ssize_t tun_put_user(struct tun_struct *tun, in tun_put_user()
1401 static ssize_t tun_do_read(struct tun_struct *tun, struct tun_file *tfile, in tun_do_read()
1433 struct tun_struct *tun = __tun_get(tfile); in tun_chr_read_iter()
1448 struct tun_struct *tun = netdev_priv(dev); in tun_free_netdev()
1458 struct tun_struct *tun = netdev_priv(dev); in tun_setup()
1479 .priv_size = sizeof(struct tun_struct),
1508 struct tun_struct *tun = __tun_get(tfile); in tun_sendmsg()
1523 struct tun_struct *tun = __tun_get(tfile); in tun_recvmsg()
1560 static int tun_flags(struct tun_struct *tun) in tun_flags()
1568 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in tun_show_flags()
1575 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in tun_show_owner()
1585 struct tun_struct *tun = netdev_priv(to_net_dev(dev)); in tun_show_group()
1609 struct tun_struct *tun; in tun_set_iff()
1677 dev = alloc_netdev_mqs(sizeof(struct tun_struct), name, in tun_set_iff()
1751 static void tun_get_iff(struct net *net, struct tun_struct *tun, in tun_get_iff()
1764 static int set_offload(struct tun_struct *tun, unsigned long arg) in set_offload()
1801 static void tun_detach_filter(struct tun_struct *tun, int n) in tun_detach_filter()
1814 static int tun_attach_filter(struct tun_struct *tun) in tun_attach_filter()
1833 static void tun_set_sndbuf(struct tun_struct *tun) in tun_set_sndbuf()
1847 struct tun_struct *tun; in tun_set_queue()
1880 struct tun_struct *tun; in __tun_chr_ioctl()
2255 struct tun_struct *tun; in tun_chr_show_fdinfo()
2317 struct tun_struct *tun = netdev_priv(dev); in tun_get_drvinfo()
2335 struct tun_struct *tun = netdev_priv(dev); in tun_get_msglevel()
2345 struct tun_struct *tun = netdev_priv(dev); in tun_set_msglevel()