Lines Matching refs:v
424 static void ip6mr_vif_seq_stop(struct seq_file *seq, void *v) in ip6mr_vif_seq_stop() argument
430 static int ip6mr_vif_seq_show(struct seq_file *seq, void *v) in ip6mr_vif_seq_show() argument
435 if (v == SEQ_START_TOKEN) { in ip6mr_vif_seq_show()
439 const struct vif_device *vif = v; in ip6mr_vif_seq_show()
475 static int ipmr_mfc_seq_show(struct seq_file *seq, void *v) in ipmr_mfc_seq_show() argument
479 if (v == SEQ_START_TOKEN) { in ipmr_mfc_seq_show()
485 const struct mfc6_cache *mfc = v; in ipmr_mfc_seq_show()
702 struct vif_device *v; in mif6_delete() local
709 v = &mrt->vif_table[vifi]; in mif6_delete()
711 dev = rtnl_dereference(v->dev); in mif6_delete()
716 FIB_EVENT_VIF_DEL, v, dev, in mif6_delete()
719 RCU_INIT_POINTER(v->dev, NULL); in mif6_delete()
749 if ((v->flags & MIFF_REGISTER) && !notify) in mif6_delete()
752 netdev_put(dev, &v->dev_tracker); in mif6_delete()
866 struct vif_device *v = &mrt->vif_table[vifi]; in mif6_add() local
918 vif_device_init(v, dev, vifc->vifc_rate_limit, vifc->vifc_threshold, in mif6_add()
924 rcu_assign_pointer(v->dev, dev); in mif6_add()
925 netdev_tracker_alloc(dev, &v->dev_tracker, GFP_ATOMIC); in mif6_add()
927 if (v->flags & MIFF_REGISTER) in mif6_add()
934 v, dev, vifi, mrt->id); in mif6_add()
1246 struct vif_device *v; in ip6mr_device_event() local
1253 v = &mrt->vif_table[0]; in ip6mr_device_event()
1254 for (ct = 0; ct < mrt->maxvif; ct++, v++) { in ip6mr_device_event()
1255 if (rcu_access_pointer(v->dev) == dev) in ip6mr_device_event()
1759 int v; in ip6_mroute_setsockopt() local
1761 if (optlen != sizeof(v)) in ip6_mroute_setsockopt()
1763 if (copy_from_sockptr(&v, optval, sizeof(v))) in ip6_mroute_setsockopt()
1765 mrt->mroute_do_assert = v; in ip6_mroute_setsockopt()
1773 int v; in ip6_mroute_setsockopt() local
1775 if (optlen != sizeof(v)) in ip6_mroute_setsockopt()
1777 if (copy_from_sockptr(&v, optval, sizeof(v))) in ip6_mroute_setsockopt()
1780 do_wrmifwhole = (v == MRT6MSG_WRMIFWHOLE); in ip6_mroute_setsockopt()
1781 v = !!v; in ip6_mroute_setsockopt()
1784 if (v != mrt->mroute_do_pim) { in ip6_mroute_setsockopt()
1785 mrt->mroute_do_pim = v; in ip6_mroute_setsockopt()
1786 mrt->mroute_do_assert = v; in ip6_mroute_setsockopt()
1797 u32 v; in ip6_mroute_setsockopt() local
1801 if (copy_from_sockptr(&v, optval, sizeof(v))) in ip6_mroute_setsockopt()
1804 if (v != RT_TABLE_DEFAULT && v >= 100000000) in ip6_mroute_setsockopt()
1811 mrt = ip6mr_new_table(net, v); in ip6_mroute_setsockopt()
1815 raw6_sk(sk)->ip6mr_table = v; in ip6_mroute_setsockopt()