in_dev            471 drivers/infiniband/core/cma.c 	struct in_device *in_dev = NULL;
in_dev            475 drivers/infiniband/core/cma.c 		in_dev = __in_dev_get_rtnl(ndev);
in_dev            476 drivers/infiniband/core/cma.c 		if (in_dev) {
in_dev            478 drivers/infiniband/core/cma.c 				ip_mc_inc_group(in_dev,
in_dev            481 drivers/infiniband/core/cma.c 				ip_mc_dec_group(in_dev,
in_dev            486 drivers/infiniband/core/cma.c 	return (in_dev) ? 0 : -ENODEV;
in_dev            334 drivers/infiniband/core/roce_gid_mgmt.c 	struct in_device *in_dev;
in_dev            347 drivers/infiniband/core/roce_gid_mgmt.c 	in_dev = __in_dev_get_rcu(ndev);
in_dev            348 drivers/infiniband/core/roce_gid_mgmt.c 	if (!in_dev) {
in_dev            353 drivers/infiniband/core/roce_gid_mgmt.c 	in_dev_for_each_ifa_rcu(ifa, in_dev) {
in_dev            291 drivers/infiniband/ulp/ipoib/ipoib_main.c 	struct in_device *in_dev;
in_dev            298 drivers/infiniband/ulp/ipoib/ipoib_main.c 		in_dev = in_dev_get(dev);
in_dev            299 drivers/infiniband/ulp/ipoib/ipoib_main.c 		if (!in_dev)
in_dev            302 drivers/infiniband/ulp/ipoib/ipoib_main.c 		ret_addr = inet_confirm_addr(net, in_dev, 0,
in_dev            305 drivers/infiniband/ulp/ipoib/ipoib_main.c 		in_dev_put(in_dev);
in_dev            159 drivers/input/touchscreen/bu21013_ts.c 	struct input_dev *in_dev;
in_dev            188 drivers/input/touchscreen/bu21013_ts.c 	struct input_dev *input = ts->in_dev;
in_dev            411 drivers/input/touchscreen/bu21013_ts.c 	struct input_dev *in_dev;
in_dev            436 drivers/input/touchscreen/bu21013_ts.c 	in_dev = devm_input_allocate_device(&client->dev);
in_dev            437 drivers/input/touchscreen/bu21013_ts.c 	if (!in_dev) {
in_dev            441 drivers/input/touchscreen/bu21013_ts.c 	ts->in_dev = in_dev;
in_dev            442 drivers/input/touchscreen/bu21013_ts.c 	input_set_drvdata(in_dev, ts);
in_dev            445 drivers/input/touchscreen/bu21013_ts.c 	in_dev->name = DRIVER_TP;
in_dev            446 drivers/input/touchscreen/bu21013_ts.c 	in_dev->id.bustype = BUS_I2C;
in_dev            451 drivers/input/touchscreen/bu21013_ts.c 	input_set_abs_params(in_dev, ABS_MT_POSITION_X, 0, max_x, 0, 0);
in_dev            452 drivers/input/touchscreen/bu21013_ts.c 	input_set_abs_params(in_dev, ABS_MT_POSITION_Y, 0, max_y, 0, 0);
in_dev            454 drivers/input/touchscreen/bu21013_ts.c 	touchscreen_parse_properties(in_dev, true, &ts->props);
in_dev            459 drivers/input/touchscreen/bu21013_ts.c 		info = &in_dev->absinfo[ABS_MT_POSITION_X];
in_dev            466 drivers/input/touchscreen/bu21013_ts.c 		info = &in_dev->absinfo[ABS_MT_POSITION_Y];
in_dev            471 drivers/input/touchscreen/bu21013_ts.c 	error = input_mt_init_slots(in_dev, MAX_FINGERS,
in_dev            544 drivers/input/touchscreen/bu21013_ts.c 	error = input_register_device(in_dev);
in_dev            157 drivers/input/touchscreen/bu21029_ts.c 	struct input_dev		*in_dev;
in_dev            169 drivers/input/touchscreen/bu21029_ts.c 	s32 max_pressure = input_abs_get_max(bu21029->in_dev, ABS_PRESSURE);
in_dev            200 drivers/input/touchscreen/bu21029_ts.c 			touchscreen_report_pos(bu21029->in_dev, &bu21029->prop,
in_dev            202 drivers/input/touchscreen/bu21029_ts.c 			input_report_abs(bu21029->in_dev, ABS_PRESSURE,
in_dev            204 drivers/input/touchscreen/bu21029_ts.c 			input_report_key(bu21029->in_dev, BTN_TOUCH, 1);
in_dev            205 drivers/input/touchscreen/bu21029_ts.c 			input_sync(bu21029->in_dev);
in_dev            214 drivers/input/touchscreen/bu21029_ts.c 	input_report_abs(bu21029->in_dev, ABS_PRESSURE, 0);
in_dev            215 drivers/input/touchscreen/bu21029_ts.c 	input_report_key(bu21029->in_dev, BTN_TOUCH, 0);
in_dev            216 drivers/input/touchscreen/bu21029_ts.c 	input_sync(bu21029->in_dev);
in_dev            338 drivers/input/touchscreen/bu21029_ts.c 	struct input_dev *in_dev;
in_dev            381 drivers/input/touchscreen/bu21029_ts.c 	in_dev = devm_input_allocate_device(&client->dev);
in_dev            382 drivers/input/touchscreen/bu21029_ts.c 	if (!in_dev) {
in_dev            388 drivers/input/touchscreen/bu21029_ts.c 	bu21029->in_dev = in_dev;
in_dev            391 drivers/input/touchscreen/bu21029_ts.c 	in_dev->name		= DRIVER_NAME;
in_dev            392 drivers/input/touchscreen/bu21029_ts.c 	in_dev->id.bustype	= BUS_I2C;
in_dev            393 drivers/input/touchscreen/bu21029_ts.c 	in_dev->open		= bu21029_start_chip;
in_dev            394 drivers/input/touchscreen/bu21029_ts.c 	in_dev->close		= bu21029_stop_chip;
in_dev            396 drivers/input/touchscreen/bu21029_ts.c 	input_set_capability(in_dev, EV_KEY, BTN_TOUCH);
in_dev            397 drivers/input/touchscreen/bu21029_ts.c 	input_set_abs_params(in_dev, ABS_X, 0, MAX_12BIT, 0, 0);
in_dev            398 drivers/input/touchscreen/bu21029_ts.c 	input_set_abs_params(in_dev, ABS_Y, 0, MAX_12BIT, 0, 0);
in_dev            399 drivers/input/touchscreen/bu21029_ts.c 	input_set_abs_params(in_dev, ABS_PRESSURE, 0, MAX_12BIT, 0, 0);
in_dev            400 drivers/input/touchscreen/bu21029_ts.c 	touchscreen_parse_properties(in_dev, false, &bu21029->prop);
in_dev            402 drivers/input/touchscreen/bu21029_ts.c 	input_set_drvdata(in_dev, bu21029);
in_dev            414 drivers/input/touchscreen/bu21029_ts.c 	error = input_register_device(in_dev);
in_dev            432 drivers/input/touchscreen/bu21029_ts.c 		mutex_lock(&bu21029->in_dev->mutex);
in_dev            433 drivers/input/touchscreen/bu21029_ts.c 		if (bu21029->in_dev->users)
in_dev            434 drivers/input/touchscreen/bu21029_ts.c 			bu21029_stop_chip(bu21029->in_dev);
in_dev            435 drivers/input/touchscreen/bu21029_ts.c 		mutex_unlock(&bu21029->in_dev->mutex);
in_dev            447 drivers/input/touchscreen/bu21029_ts.c 		mutex_lock(&bu21029->in_dev->mutex);
in_dev            448 drivers/input/touchscreen/bu21029_ts.c 		if (bu21029->in_dev->users)
in_dev            449 drivers/input/touchscreen/bu21029_ts.c 			bu21029_start_chip(bu21029->in_dev);
in_dev            450 drivers/input/touchscreen/bu21029_ts.c 		mutex_unlock(&bu21029->in_dev->mutex);
in_dev           3750 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	struct in_device *in_dev;
in_dev           3771 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	in_dev = __in_dev_get_rtnl(dev);
in_dev           3772 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 	if (in_dev && IN_DEV_IGNORE_ROUTES_WITH_LINKDOWN(in_dev) &&
in_dev            174 drivers/net/ethernet/netronome/nfp/flower/action.c 	      bool last, struct net_device *in_dev,
in_dev            239 drivers/net/ethernet/netronome/nfp/flower/action.c 		if (nfp_netdev_is_nfp_repr(in_dev)) {
in_dev            241 drivers/net/ethernet/netronome/nfp/flower/action.c 			if (!netdev_port_same_parent_id(in_dev, out_dev)) {
in_dev           1505 drivers/net/ethernet/via/via-velocity.h 	struct in_device *in_dev;
in_dev           1510 drivers/net/ethernet/via/via-velocity.h 	in_dev = __in_dev_get_rcu(vptr->netdev);
in_dev           1511 drivers/net/ethernet/via/via-velocity.h 	if (in_dev != NULL) {
in_dev           1512 drivers/net/ethernet/via/via-velocity.h 		ifa = rcu_dereference(in_dev->ifa_list);
in_dev           1005 drivers/net/plip/plip.c 	const struct in_device *in_dev;
in_dev           1008 drivers/net/plip/plip.c 	in_dev = __in_dev_get_rcu(dev);
in_dev           1009 drivers/net/plip/plip.c 	if (in_dev) {
in_dev           1011 drivers/net/plip/plip.c 		const struct in_ifaddr *ifa = rcu_dereference(in_dev->ifa_list);
in_dev           1062 drivers/net/plip/plip.c 	struct in_device *in_dev;
in_dev           1101 drivers/net/plip/plip.c 	in_dev=__in_dev_get_rtnl(dev);
in_dev           1102 drivers/net/plip/plip.c 	if (in_dev) {
in_dev           1106 drivers/net/plip/plip.c 		const struct in_ifaddr *ifa = rcu_dereference(in_dev->ifa_list);
in_dev           3620 drivers/net/vmxnet3/vmxnet3_drv.c 	struct in_device *in_dev;
in_dev           3655 drivers/net/vmxnet3/vmxnet3_drv.c 		in_dev = __in_dev_get_rcu(netdev);
in_dev           3656 drivers/net/vmxnet3/vmxnet3_drv.c 		if (!in_dev) {
in_dev           3661 drivers/net/vmxnet3/vmxnet3_drv.c 		ifa = rcu_dereference(in_dev->ifa_list);
in_dev            158 drivers/net/wan/hdlc_cisco.c 	struct in_device *in_dev;
in_dev            191 drivers/net/wan/hdlc_cisco.c 			in_dev = __in_dev_get_rcu(dev);
in_dev            195 drivers/net/wan/hdlc_cisco.c 			if (in_dev != NULL) {
in_dev            198 drivers/net/wan/hdlc_cisco.c 				in_dev_for_each_ifa_rcu(ifa, in_dev) {
in_dev           2130 drivers/net/wireless/ath/ath6kl/cfg80211.c 	struct in_device *in_dev;
in_dev           2193 drivers/net/wireless/ath/ath6kl/cfg80211.c 	in_dev = __in_dev_get_rtnl(vif->ndev);
in_dev           2194 drivers/net/wireless/ath/ath6kl/cfg80211.c 	if (!in_dev)
in_dev           2197 drivers/net/wireless/ath/ath6kl/cfg80211.c 	ifa = rtnl_dereference(in_dev->ifa_list);
in_dev           3255 drivers/net/wireless/marvell/mwifiex/cfg80211.c 	struct in_device *in_dev;
in_dev           3267 drivers/net/wireless/marvell/mwifiex/cfg80211.c 			in_dev = __in_dev_get_rtnl(adapter->priv[i]->netdev);
in_dev           3268 drivers/net/wireless/marvell/mwifiex/cfg80211.c 			if (!in_dev)
in_dev           3270 drivers/net/wireless/marvell/mwifiex/cfg80211.c 			ifa = rtnl_dereference(in_dev->ifa_list);
in_dev            365 drivers/parisc/led.c 	    struct in_device *in_dev = __in_dev_get_rcu(dev);
in_dev            366 drivers/parisc/led.c 	    if (!in_dev || !in_dev->ifa_list)
in_dev            368 drivers/parisc/led.c 	    if (ipv4_is_loopback(in_dev->ifa_list->ifa_local))
in_dev           1159 drivers/s390/net/qeth_l3_main.c 	struct in_device *in_dev;
in_dev           1175 drivers/s390/net/qeth_l3_main.c 		in_dev = __in_dev_get_rcu(netdev);
in_dev           1176 drivers/s390/net/qeth_l3_main.c 		if (!in_dev)
in_dev           1178 drivers/s390/net/qeth_l3_main.c 		qeth_l3_add_mc_to_hash(card, in_dev);
in_dev           1243 drivers/s390/net/qeth_l3_main.c 	struct inet6_dev *in_dev;
in_dev           1259 drivers/s390/net/qeth_l3_main.c 		in_dev = in6_dev_get(netdev);
in_dev           1260 drivers/s390/net/qeth_l3_main.c 		if (!in_dev)
in_dev           1262 drivers/s390/net/qeth_l3_main.c 		read_lock_bh(&in_dev->lock);
in_dev           1263 drivers/s390/net/qeth_l3_main.c 		qeth_l3_add_mc6_to_hash(card, in_dev);
in_dev           1264 drivers/s390/net/qeth_l3_main.c 		read_unlock_bh(&in_dev->lock);
in_dev           1265 drivers/s390/net/qeth_l3_main.c 		in6_dev_put(in_dev);
in_dev             62 drivers/staging/isdn/hysdn/hysdn_net.c 	struct in_device *in_dev;
in_dev             72 drivers/staging/isdn/hysdn/hysdn_net.c 		if ((in_dev = dev->ip_ptr) != NULL) {
in_dev             76 drivers/staging/isdn/hysdn/hysdn_net.c 			ifa = rcu_dereference(in_dev->ifa_list);
in_dev            135 include/linux/igmp.h extern void __ip_mc_dec_group(struct in_device *in_dev, __be32 addr, gfp_t gfp);
in_dev            136 include/linux/igmp.h static inline void ip_mc_dec_group(struct in_device *in_dev, __be32 addr)
in_dev            138 include/linux/igmp.h 	return __ip_mc_dec_group(in_dev, addr, GFP_KERNEL);
in_dev            140 include/linux/igmp.h extern void __ip_mc_inc_group(struct in_device *in_dev, __be32 addr,
in_dev            142 include/linux/igmp.h extern void ip_mc_inc_group(struct in_device *in_dev, __be32 addr);
in_dev             57 include/linux/inetdevice.h static inline int ipv4_devconf_get(struct in_device *in_dev, int index)
in_dev             60 include/linux/inetdevice.h 	return in_dev->cnf.data[index];
in_dev             63 include/linux/inetdevice.h static inline void ipv4_devconf_set(struct in_device *in_dev, int index,
in_dev             67 include/linux/inetdevice.h 	set_bit(index, in_dev->cnf.state);
in_dev             68 include/linux/inetdevice.h 	in_dev->cnf.data[index] = val;
in_dev             71 include/linux/inetdevice.h static inline void ipv4_devconf_setall(struct in_device *in_dev)
in_dev             73 include/linux/inetdevice.h 	bitmap_fill(in_dev->cnf.state, IPV4_DEVCONF_MAX);
in_dev             76 include/linux/inetdevice.h #define IN_DEV_CONF_GET(in_dev, attr) \
in_dev             77 include/linux/inetdevice.h 	ipv4_devconf_get((in_dev), IPV4_DEVCONF_ ## attr)
in_dev             78 include/linux/inetdevice.h #define IN_DEV_CONF_SET(in_dev, attr, val) \
in_dev             79 include/linux/inetdevice.h 	ipv4_devconf_set((in_dev), IPV4_DEVCONF_ ## attr, (val))
in_dev             81 include/linux/inetdevice.h #define IN_DEV_ANDCONF(in_dev, attr) \
in_dev             82 include/linux/inetdevice.h 	(IPV4_DEVCONF_ALL(dev_net(in_dev->dev), attr) && \
in_dev             83 include/linux/inetdevice.h 	 IN_DEV_CONF_GET((in_dev), attr))
in_dev             85 include/linux/inetdevice.h #define IN_DEV_NET_ORCONF(in_dev, net, attr) \
in_dev             87 include/linux/inetdevice.h 	 IN_DEV_CONF_GET((in_dev), attr))
in_dev             89 include/linux/inetdevice.h #define IN_DEV_ORCONF(in_dev, attr) \
in_dev             90 include/linux/inetdevice.h 	IN_DEV_NET_ORCONF(in_dev, dev_net(in_dev->dev), attr)
in_dev             92 include/linux/inetdevice.h #define IN_DEV_MAXCONF(in_dev, attr) \
in_dev             93 include/linux/inetdevice.h 	(max(IPV4_DEVCONF_ALL(dev_net(in_dev->dev), attr), \
in_dev             94 include/linux/inetdevice.h 	     IN_DEV_CONF_GET((in_dev), attr)))
in_dev             96 include/linux/inetdevice.h #define IN_DEV_FORWARD(in_dev)		IN_DEV_CONF_GET((in_dev), FORWARDING)
in_dev             97 include/linux/inetdevice.h #define IN_DEV_MFORWARD(in_dev)		IN_DEV_ANDCONF((in_dev), MC_FORWARDING)
in_dev             98 include/linux/inetdevice.h #define IN_DEV_BFORWARD(in_dev)		IN_DEV_ANDCONF((in_dev), BC_FORWARDING)
in_dev             99 include/linux/inetdevice.h #define IN_DEV_RPFILTER(in_dev)		IN_DEV_MAXCONF((in_dev), RP_FILTER)
in_dev            100 include/linux/inetdevice.h #define IN_DEV_SRC_VMARK(in_dev)    	IN_DEV_ORCONF((in_dev), SRC_VMARK)
in_dev            101 include/linux/inetdevice.h #define IN_DEV_SOURCE_ROUTE(in_dev)	IN_DEV_ANDCONF((in_dev), \
in_dev            103 include/linux/inetdevice.h #define IN_DEV_ACCEPT_LOCAL(in_dev)	IN_DEV_ORCONF((in_dev), ACCEPT_LOCAL)
in_dev            104 include/linux/inetdevice.h #define IN_DEV_BOOTP_RELAY(in_dev)	IN_DEV_ANDCONF((in_dev), BOOTP_RELAY)
in_dev            106 include/linux/inetdevice.h #define IN_DEV_LOG_MARTIANS(in_dev)	IN_DEV_ORCONF((in_dev), LOG_MARTIANS)
in_dev            107 include/linux/inetdevice.h #define IN_DEV_PROXY_ARP(in_dev)	IN_DEV_ORCONF((in_dev), PROXY_ARP)
in_dev            108 include/linux/inetdevice.h #define IN_DEV_PROXY_ARP_PVLAN(in_dev)	IN_DEV_CONF_GET(in_dev, PROXY_ARP_PVLAN)
in_dev            109 include/linux/inetdevice.h #define IN_DEV_SHARED_MEDIA(in_dev)	IN_DEV_ORCONF((in_dev), SHARED_MEDIA)
in_dev            110 include/linux/inetdevice.h #define IN_DEV_TX_REDIRECTS(in_dev)	IN_DEV_ORCONF((in_dev), SEND_REDIRECTS)
in_dev            111 include/linux/inetdevice.h #define IN_DEV_SEC_REDIRECTS(in_dev)	IN_DEV_ORCONF((in_dev), \
in_dev            113 include/linux/inetdevice.h #define IN_DEV_IDTAG(in_dev)		IN_DEV_CONF_GET(in_dev, TAG)
in_dev            114 include/linux/inetdevice.h #define IN_DEV_MEDIUM_ID(in_dev)	IN_DEV_CONF_GET(in_dev, MEDIUM_ID)
in_dev            115 include/linux/inetdevice.h #define IN_DEV_PROMOTE_SECONDARIES(in_dev) \
in_dev            116 include/linux/inetdevice.h 					IN_DEV_ORCONF((in_dev), \
in_dev            118 include/linux/inetdevice.h #define IN_DEV_ROUTE_LOCALNET(in_dev)	IN_DEV_ORCONF(in_dev, ROUTE_LOCALNET)
in_dev            119 include/linux/inetdevice.h #define IN_DEV_NET_ROUTE_LOCALNET(in_dev, net)	\
in_dev            120 include/linux/inetdevice.h 	IN_DEV_NET_ORCONF(in_dev, net, ROUTE_LOCALNET)
in_dev            122 include/linux/inetdevice.h #define IN_DEV_RX_REDIRECTS(in_dev) \
in_dev            123 include/linux/inetdevice.h 	((IN_DEV_FORWARD(in_dev) && \
in_dev            124 include/linux/inetdevice.h 	  IN_DEV_ANDCONF((in_dev), ACCEPT_REDIRECTS)) \
in_dev            125 include/linux/inetdevice.h 	 || (!IN_DEV_FORWARD(in_dev) && \
in_dev            126 include/linux/inetdevice.h 	  IN_DEV_ORCONF((in_dev), ACCEPT_REDIRECTS)))
in_dev            128 include/linux/inetdevice.h #define IN_DEV_IGNORE_ROUTES_WITH_LINKDOWN(in_dev) \
in_dev            129 include/linux/inetdevice.h 	IN_DEV_CONF_GET((in_dev), IGNORE_ROUTES_WITH_LINKDOWN)
in_dev            131 include/linux/inetdevice.h #define IN_DEV_ARPFILTER(in_dev)	IN_DEV_ORCONF((in_dev), ARPFILTER)
in_dev            132 include/linux/inetdevice.h #define IN_DEV_ARP_ACCEPT(in_dev)	IN_DEV_ORCONF((in_dev), ARP_ACCEPT)
in_dev            133 include/linux/inetdevice.h #define IN_DEV_ARP_ANNOUNCE(in_dev)	IN_DEV_MAXCONF((in_dev), ARP_ANNOUNCE)
in_dev            134 include/linux/inetdevice.h #define IN_DEV_ARP_IGNORE(in_dev)	IN_DEV_MAXCONF((in_dev), ARP_IGNORE)
in_dev            135 include/linux/inetdevice.h #define IN_DEV_ARP_NOTIFY(in_dev)	IN_DEV_MAXCONF((in_dev), ARP_NOTIFY)
in_dev            179 include/linux/inetdevice.h int inet_addr_onlink(struct in_device *in_dev, __be32 a, __be32 b);
in_dev            184 include/linux/inetdevice.h __be32 inet_confirm_addr(struct net *net, struct in_device *in_dev, __be32 dst,
in_dev            186 include/linux/inetdevice.h struct in_ifaddr *inet_ifa_byprefix(struct in_device *in_dev, __be32 prefix,
in_dev            209 include/linux/inetdevice.h #define in_dev_for_each_ifa_rtnl(ifa, in_dev)			\
in_dev            210 include/linux/inetdevice.h 	for (ifa = rtnl_dereference((in_dev)->ifa_list); ifa;	\
in_dev            213 include/linux/inetdevice.h #define in_dev_for_each_ifa_rcu(ifa, in_dev)			\
in_dev            214 include/linux/inetdevice.h 	for (ifa = rcu_dereference((in_dev)->ifa_list); ifa;	\
in_dev            224 include/linux/inetdevice.h 	struct in_device *in_dev;
in_dev            227 include/linux/inetdevice.h 	in_dev = __in_dev_get_rcu(dev);
in_dev            228 include/linux/inetdevice.h 	if (in_dev)
in_dev            229 include/linux/inetdevice.h 		refcount_inc(&in_dev->refcnt);
in_dev            231 include/linux/inetdevice.h 	return in_dev;
in_dev            242 include/linux/inetdevice.h 	struct in_device *in_dev;
in_dev            245 include/linux/inetdevice.h 	in_dev = rcu_dereference_rtnl(dev->ip_ptr);
in_dev            246 include/linux/inetdevice.h 	if (in_dev &&
in_dev            247 include/linux/inetdevice.h 	    IN_DEV_IGNORE_ROUTES_WITH_LINKDOWN(in_dev))
in_dev            255 include/linux/inetdevice.h 	struct in_device *in_dev = __in_dev_get_rcu(dev);
in_dev            257 include/linux/inetdevice.h 	return in_dev ? in_dev->arp_parms : NULL;
in_dev            590 include/net/bonding.h 	struct in_device *in_dev;
in_dev            594 include/net/bonding.h 	in_dev = __in_dev_get_rcu(dev);
in_dev            596 include/net/bonding.h 	if (in_dev)
in_dev            597 include/net/bonding.h 		addr = inet_confirm_addr(dev_net(dev), in_dev, dst, local,
in_dev            181 include/net/route.h 			  struct in_device *in_dev, u32 *itag);
in_dev            581 net/atm/clip.c 	struct in_device *in_dev;
in_dev            584 net/atm/clip.c 	in_dev = ((struct in_ifaddr *)ifa)->ifa_dev;
in_dev            591 net/atm/clip.c 	netdev_notifier_info_init(&info, in_dev->dev);
in_dev            114 net/batman-adv/multicast.c 	struct in_device *in_dev = __in_dev_get_rcu(dev);
in_dev            116 net/batman-adv/multicast.c 	if (in_dev && IN_DEV_MFORWARD(in_dev))
in_dev            374 net/batman-adv/multicast.c 	struct in_device *in_dev;
in_dev            384 net/batman-adv/multicast.c 	in_dev = __in_dev_get_rcu(dev);
in_dev            385 net/batman-adv/multicast.c 	if (!in_dev) {
in_dev            390 net/batman-adv/multicast.c 	for (pmc = rcu_dereference(in_dev->mc_list); pmc;
in_dev            649 net/batman-adv/translation-table.c 	struct net_device *in_dev = NULL;
in_dev            660 net/batman-adv/translation-table.c 		in_dev = dev_get_by_index(net, ifindex);
in_dev            662 net/batman-adv/translation-table.c 	if (in_dev)
in_dev            663 net/batman-adv/translation-table.c 		in_hardif = batadv_hardif_get_by_netdev(in_dev);
in_dev            824 net/batman-adv/translation-table.c 	if (in_dev)
in_dev            825 net/batman-adv/translation-table.c 		dev_put(in_dev);
in_dev             94 net/bridge/br_arp_nd_proxy.c 	struct in_device *in_dev;
in_dev             97 net/bridge/br_arp_nd_proxy.c 	in_dev = __in_dev_get_rcu(dev);
in_dev             98 net/bridge/br_arp_nd_proxy.c 	if (in_dev)
in_dev             99 net/bridge/br_arp_nd_proxy.c 		addr = inet_confirm_addr(dev_net(dev), in_dev, 0, ip,
in_dev           1828 net/bridge/br_multicast.c 	struct in_device *in_dev = in_dev_get(br->dev);
in_dev           1830 net/bridge/br_multicast.c 	if (!in_dev)
in_dev           1833 net/bridge/br_multicast.c 	__ip_mc_inc_group(in_dev, htonl(INADDR_ALLSNOOPERS_GROUP), GFP_ATOMIC);
in_dev           1834 net/bridge/br_multicast.c 	in_dev_put(in_dev);
in_dev           1859 net/bridge/br_multicast.c 	struct in_device *in_dev = in_dev_get(br->dev);
in_dev           1861 net/bridge/br_multicast.c 	if (WARN_ON(!in_dev))
in_dev           1864 net/bridge/br_multicast.c 	__ip_mc_dec_group(in_dev, htonl(INADDR_ALLSNOOPERS_GROUP), GFP_ATOMIC);
in_dev           1865 net/bridge/br_multicast.c 	in_dev_put(in_dev);
in_dev            369 net/bridge/br_netfilter_hooks.c 			struct in_device *in_dev = __in_dev_get_rcu(dev);
in_dev            378 net/bridge/br_netfilter_hooks.c 			if (err != -EHOSTUNREACH || !in_dev || IN_DEV_FORWARD(in_dev))
in_dev           4618 net/core/filter.c 	struct in_device *in_dev;
in_dev           4631 net/core/filter.c 	in_dev = __in_dev_get_rcu(dev);
in_dev           4632 net/core/filter.c 	if (unlikely(!in_dev || !IN_DEV_FORWARD(in_dev)))
in_dev            641 net/core/netpoll.c 	struct in_device *in_dev;
in_dev            701 net/core/netpoll.c 			in_dev = __in_dev_get_rtnl(ndev);
in_dev            702 net/core/netpoll.c 			if (!in_dev)
in_dev            705 net/core/netpoll.c 			ifa = rtnl_dereference(in_dev->ifa_list);
in_dev           2116 net/core/pktgen.c 			struct in_device *in_dev;
in_dev           2119 net/core/pktgen.c 			in_dev = __in_dev_get_rcu(pkt_dev->odev);
in_dev           2120 net/core/pktgen.c 			if (in_dev) {
in_dev           2123 net/core/pktgen.c 				ifa = rcu_dereference(in_dev->ifa_list);
in_dev           1304 net/decnet/dn_route.c 	struct net_device *in_dev = skb->dev;
in_dev           1323 net/decnet/dn_route.c 	dev_hold(in_dev);
in_dev           1325 net/decnet/dn_route.c 	if ((dn_db = rcu_dereference(in_dev->dn_ptr)) == NULL)
in_dev           1340 net/decnet/dn_route.c 	if (dn_dev_islocal(in_dev, cb->src))
in_dev           1350 net/decnet/dn_route.c 		if (!dn_dev_islocal(in_dev, cb->dst))
in_dev           1404 net/decnet/dn_route.c 		if (out_dev == in_dev && !(flags & RTCF_NAT))
in_dev           1461 net/decnet/dn_route.c 	rt->fld.flowidn_iif  = in_dev->ifindex;
in_dev           1474 net/decnet/dn_route.c 		rt->dst.dev = in_dev;
in_dev           1498 net/decnet/dn_route.c 	dev_put(in_dev);
in_dev            224 net/ipv4/arp.c 	struct in_device *in_dev;
in_dev            233 net/ipv4/arp.c 	in_dev = __in_dev_get_rcu(dev);
in_dev            234 net/ipv4/arp.c 	if (!in_dev) {
in_dev            241 net/ipv4/arp.c 	parms = in_dev->arp_parms;
in_dev            337 net/ipv4/arp.c 	struct in_device *in_dev;
in_dev            341 net/ipv4/arp.c 	in_dev = __in_dev_get_rcu(dev);
in_dev            342 net/ipv4/arp.c 	if (!in_dev) {
in_dev            346 net/ipv4/arp.c 	switch (IN_DEV_ARP_ANNOUNCE(in_dev)) {
in_dev            360 net/ipv4/arp.c 			if (inet_addr_onlink(in_dev, target, saddr))
in_dev            393 net/ipv4/arp.c static int arp_ignore(struct in_device *in_dev, __be32 sip, __be32 tip)
in_dev            395 net/ipv4/arp.c 	struct net *net = dev_net(in_dev->dev);
in_dev            398 net/ipv4/arp.c 	switch (IN_DEV_ARP_IGNORE(in_dev)) {
in_dev            414 net/ipv4/arp.c 		in_dev = NULL;
in_dev            426 net/ipv4/arp.c 	return !inet_confirm_addr(net, in_dev, sip, tip, scope);
in_dev            450 net/ipv4/arp.c static inline int arp_fwd_proxy(struct in_device *in_dev,
in_dev            459 net/ipv4/arp.c 	if (!IN_DEV_PROXY_ARP(in_dev))
in_dev            461 net/ipv4/arp.c 	imi = IN_DEV_MEDIUM_ID(in_dev);
in_dev            495 net/ipv4/arp.c static inline int arp_fwd_pvlan(struct in_device *in_dev,
in_dev            507 net/ipv4/arp.c 	if (IN_DEV_PROXY_ARP_PVLAN(in_dev))
in_dev            678 net/ipv4/arp.c 	struct in_device *in_dev = __in_dev_get_rcu(dev);
in_dev            695 net/ipv4/arp.c 	if (!in_dev)
in_dev            764 net/ipv4/arp.c 	    (!IN_DEV_ROUTE_LOCALNET(in_dev) && ipv4_is_loopback(tip)))
in_dev            772 net/ipv4/arp.c 	if (sip == tip && IN_DEV_ORCONF(in_dev, DROP_GRATUITOUS_ARP))
in_dev            807 net/ipv4/arp.c 		    !arp_ignore(in_dev, sip, tip))
in_dev            822 net/ipv4/arp.c 			dont_send = arp_ignore(in_dev, sip, tip);
in_dev            823 net/ipv4/arp.c 			if (!dont_send && IN_DEV_ARPFILTER(in_dev))
in_dev            836 net/ipv4/arp.c 		} else if (IN_DEV_FORWARD(in_dev)) {
in_dev            838 net/ipv4/arp.c 			    (arp_fwd_proxy(in_dev, dev, rt) ||
in_dev            839 net/ipv4/arp.c 			     arp_fwd_pvlan(in_dev, dev, rt, sip, tip) ||
in_dev            848 net/ipv4/arp.c 				    NEIGH_VAR(in_dev->arp_parms, PROXY_DELAY) == 0) {
in_dev            855 net/ipv4/arp.c 						       in_dev->arp_parms, skb);
in_dev            868 net/ipv4/arp.c 	if (n || IN_DEV_ARP_ACCEPT(in_dev)) {
in_dev            873 net/ipv4/arp.c 	if (IN_DEV_ARP_ACCEPT(in_dev)) {
in_dev            198 net/ipv4/devinet.c static void inet_del_ifa(struct in_device *in_dev,
in_dev            254 net/ipv4/devinet.c 	struct in_device *in_dev;
in_dev            259 net/ipv4/devinet.c 	in_dev = kzalloc(sizeof(*in_dev), GFP_KERNEL);
in_dev            260 net/ipv4/devinet.c 	if (!in_dev)
in_dev            262 net/ipv4/devinet.c 	memcpy(&in_dev->cnf, dev_net(dev)->ipv4.devconf_dflt,
in_dev            263 net/ipv4/devinet.c 			sizeof(in_dev->cnf));
in_dev            264 net/ipv4/devinet.c 	in_dev->cnf.sysctl = NULL;
in_dev            265 net/ipv4/devinet.c 	in_dev->dev = dev;
in_dev            266 net/ipv4/devinet.c 	in_dev->arp_parms = neigh_parms_alloc(dev, &arp_tbl);
in_dev            267 net/ipv4/devinet.c 	if (!in_dev->arp_parms)
in_dev            269 net/ipv4/devinet.c 	if (IPV4_DEVCONF(in_dev->cnf, FORWARDING))
in_dev            274 net/ipv4/devinet.c 	refcount_set(&in_dev->refcnt, 1);
in_dev            276 net/ipv4/devinet.c 	err = devinet_sysctl_register(in_dev);
in_dev            278 net/ipv4/devinet.c 		in_dev->dead = 1;
in_dev            279 net/ipv4/devinet.c 		neigh_parms_release(&arp_tbl, in_dev->arp_parms);
in_dev            280 net/ipv4/devinet.c 		in_dev_put(in_dev);
in_dev            281 net/ipv4/devinet.c 		in_dev = NULL;
in_dev            284 net/ipv4/devinet.c 	ip_mc_init_dev(in_dev);
in_dev            286 net/ipv4/devinet.c 		ip_mc_up(in_dev);
in_dev            289 net/ipv4/devinet.c 	rcu_assign_pointer(dev->ip_ptr, in_dev);
in_dev            291 net/ipv4/devinet.c 	return in_dev ?: ERR_PTR(err);
in_dev            293 net/ipv4/devinet.c 	kfree(in_dev);
in_dev            294 net/ipv4/devinet.c 	in_dev = NULL;
in_dev            304 net/ipv4/devinet.c static void inetdev_destroy(struct in_device *in_dev)
in_dev            311 net/ipv4/devinet.c 	dev = in_dev->dev;
in_dev            313 net/ipv4/devinet.c 	in_dev->dead = 1;
in_dev            315 net/ipv4/devinet.c 	ip_mc_destroy_dev(in_dev);
in_dev            317 net/ipv4/devinet.c 	while ((ifa = rtnl_dereference(in_dev->ifa_list)) != NULL) {
in_dev            318 net/ipv4/devinet.c 		inet_del_ifa(in_dev, &in_dev->ifa_list, 0);
in_dev            324 net/ipv4/devinet.c 	devinet_sysctl_unregister(in_dev);
in_dev            325 net/ipv4/devinet.c 	neigh_parms_release(&arp_tbl, in_dev->arp_parms);
in_dev            328 net/ipv4/devinet.c 	call_rcu(&in_dev->rcu_head, in_dev_rcu_put);
in_dev            331 net/ipv4/devinet.c int inet_addr_onlink(struct in_device *in_dev, __be32 a, __be32 b)
in_dev            336 net/ipv4/devinet.c 	in_dev_for_each_ifa_rcu(ifa, in_dev) {
in_dev            348 net/ipv4/devinet.c static void __inet_del_ifa(struct in_device *in_dev,
in_dev            356 net/ipv4/devinet.c 	int do_promote = IN_DEV_PROMOTE_SECONDARIES(in_dev);
in_dev            361 net/ipv4/devinet.c 	last_prim = rtnl_dereference(in_dev->ifa_list);
in_dev            362 net/ipv4/devinet.c 	if (in_dev->dead)
in_dev            461 net/ipv4/devinet.c static void inet_del_ifa(struct in_device *in_dev,
in_dev            465 net/ipv4/devinet.c 	__inet_del_ifa(in_dev, ifap, destroy, NULL, 0);
in_dev            476 net/ipv4/devinet.c 	struct in_device *in_dev = ifa->ifa_dev;
in_dev            489 net/ipv4/devinet.c 	last_primary = &in_dev->ifa_list;
in_dev            494 net/ipv4/devinet.c 	ifap = &in_dev->ifa_list;
in_dev            544 net/ipv4/devinet.c 	inet_hash_insert(dev_net(in_dev->dev), ifa);
in_dev            565 net/ipv4/devinet.c 	struct in_device *in_dev = __in_dev_get_rtnl(dev);
in_dev            569 net/ipv4/devinet.c 	if (!in_dev) {
in_dev            573 net/ipv4/devinet.c 	ipv4_devconf_setall(in_dev);
in_dev            574 net/ipv4/devinet.c 	neigh_parms_data_state_setall(in_dev->arp_parms);
in_dev            575 net/ipv4/devinet.c 	if (ifa->ifa_dev != in_dev) {
in_dev            577 net/ipv4/devinet.c 		in_dev_hold(in_dev);
in_dev            578 net/ipv4/devinet.c 		ifa->ifa_dev = in_dev;
in_dev            591 net/ipv4/devinet.c 	struct in_device *in_dev = NULL;
in_dev            596 net/ipv4/devinet.c 		in_dev = rcu_dereference_rtnl(dev->ip_ptr);
in_dev            598 net/ipv4/devinet.c 	return in_dev;
in_dev            604 net/ipv4/devinet.c struct in_ifaddr *inet_ifa_byprefix(struct in_device *in_dev, __be32 prefix,
in_dev            611 net/ipv4/devinet.c 	in_dev_for_each_ifa_rtnl(ifa, in_dev) {
in_dev            650 net/ipv4/devinet.c 	struct in_device *in_dev;
in_dev            664 net/ipv4/devinet.c 	in_dev = inetdev_by_index(net, ifm->ifa_index);
in_dev            665 net/ipv4/devinet.c 	if (!in_dev) {
in_dev            670 net/ipv4/devinet.c 	for (ifap = &in_dev->ifa_list; (ifa = rtnl_dereference(*ifap)) != NULL;
in_dev            686 net/ipv4/devinet.c 		__inet_del_ifa(in_dev, ifap, 1, nlh, NETLINK_CB(skb).portid);
in_dev            831 net/ipv4/devinet.c 	struct in_device *in_dev;
in_dev            849 net/ipv4/devinet.c 	in_dev = __in_dev_get_rtnl(dev);
in_dev            851 net/ipv4/devinet.c 	if (!in_dev)
in_dev            862 net/ipv4/devinet.c 	ipv4_devconf_setall(in_dev);
in_dev            863 net/ipv4/devinet.c 	neigh_parms_data_state_setall(in_dev->arp_parms);
in_dev            864 net/ipv4/devinet.c 	in_dev_hold(in_dev);
in_dev            875 net/ipv4/devinet.c 	ifa->ifa_dev = in_dev;
in_dev            913 net/ipv4/devinet.c 	struct in_device *in_dev = ifa->ifa_dev;
in_dev            919 net/ipv4/devinet.c 	in_dev_for_each_ifa_rtnl(ifa1, in_dev) {
in_dev           1014 net/ipv4/devinet.c 	struct in_device *in_dev;
in_dev           1077 net/ipv4/devinet.c 	in_dev = __in_dev_get_rtnl(dev);
in_dev           1078 net/ipv4/devinet.c 	if (in_dev) {
in_dev           1086 net/ipv4/devinet.c 			for (ifap = &in_dev->ifa_list;
in_dev           1100 net/ipv4/devinet.c 			for (ifap = &in_dev->ifa_list;
in_dev           1140 net/ipv4/devinet.c 				inet_del_ifa(in_dev, ifap, 1);
in_dev           1165 net/ipv4/devinet.c 			inet_del_ifa(in_dev, ifap, 0);
in_dev           1190 net/ipv4/devinet.c 			inet_del_ifa(in_dev, ifap, 0);
in_dev           1204 net/ipv4/devinet.c 		inet_del_ifa(in_dev, ifap, 0);
in_dev           1220 net/ipv4/devinet.c 			inet_del_ifa(in_dev, ifap, 0);
in_dev           1249 net/ipv4/devinet.c 	struct in_device *in_dev = __in_dev_get_rtnl(dev);
in_dev           1257 net/ipv4/devinet.c 	if (!in_dev)
in_dev           1260 net/ipv4/devinet.c 	in_dev_for_each_ifa_rtnl(ifa, in_dev) {
in_dev           1285 net/ipv4/devinet.c static __be32 in_dev_select_addr(const struct in_device *in_dev,
in_dev           1290 net/ipv4/devinet.c 	in_dev_for_each_ifa_rcu(ifa, in_dev) {
in_dev           1306 net/ipv4/devinet.c 	struct in_device *in_dev;
in_dev           1311 net/ipv4/devinet.c 	in_dev = __in_dev_get_rcu(dev);
in_dev           1312 net/ipv4/devinet.c 	if (!in_dev)
in_dev           1315 net/ipv4/devinet.c 	if (unlikely(IN_DEV_ROUTE_LOCALNET(in_dev)))
in_dev           1318 net/ipv4/devinet.c 	in_dev_for_each_ifa_rcu(ifa, in_dev) {
in_dev           1343 net/ipv4/devinet.c 	    (in_dev = __in_dev_get_rcu(dev))) {
in_dev           1344 net/ipv4/devinet.c 		addr = in_dev_select_addr(in_dev, scope);
in_dev           1357 net/ipv4/devinet.c 		in_dev = __in_dev_get_rcu(dev);
in_dev           1358 net/ipv4/devinet.c 		if (!in_dev)
in_dev           1361 net/ipv4/devinet.c 		addr = in_dev_select_addr(in_dev, scope);
in_dev           1371 net/ipv4/devinet.c static __be32 confirm_addr_indev(struct in_device *in_dev, __be32 dst,
in_dev           1379 net/ipv4/devinet.c 	if (unlikely(IN_DEV_ROUTE_LOCALNET(in_dev)))
in_dev           1382 net/ipv4/devinet.c 	in_dev_for_each_ifa_rcu(ifa, in_dev) {
in_dev           1423 net/ipv4/devinet.c __be32 inet_confirm_addr(struct net *net, struct in_device *in_dev,
in_dev           1429 net/ipv4/devinet.c 	if (in_dev)
in_dev           1430 net/ipv4/devinet.c 		return confirm_addr_indev(in_dev, dst, local, scope);
in_dev           1434 net/ipv4/devinet.c 		in_dev = __in_dev_get_rcu(dev);
in_dev           1435 net/ipv4/devinet.c 		if (in_dev) {
in_dev           1436 net/ipv4/devinet.c 			addr = confirm_addr_indev(in_dev, dst, local, scope);
in_dev           1479 net/ipv4/devinet.c static void inetdev_changename(struct net_device *dev, struct in_device *in_dev)
in_dev           1484 net/ipv4/devinet.c 	in_dev_for_each_ifa_rtnl(ifa, in_dev) {
in_dev           1506 net/ipv4/devinet.c 					struct in_device *in_dev)
in_dev           1511 net/ipv4/devinet.c 	in_dev_for_each_ifa_rtnl(ifa, in_dev) {
in_dev           1525 net/ipv4/devinet.c 	struct in_device *in_dev = __in_dev_get_rtnl(dev);
in_dev           1529 net/ipv4/devinet.c 	if (!in_dev) {
in_dev           1531 net/ipv4/devinet.c 			in_dev = inetdev_init(dev);
in_dev           1532 net/ipv4/devinet.c 			if (IS_ERR(in_dev))
in_dev           1533 net/ipv4/devinet.c 				return notifier_from_errno(PTR_ERR(in_dev));
in_dev           1535 net/ipv4/devinet.c 				IN_DEV_CONF_SET(in_dev, NOXFRM, 1);
in_dev           1536 net/ipv4/devinet.c 				IN_DEV_CONF_SET(in_dev, NOPOLICY, 1);
in_dev           1541 net/ipv4/devinet.c 				in_dev = inetdev_init(dev);
in_dev           1563 net/ipv4/devinet.c 				in_dev_hold(in_dev);
in_dev           1564 net/ipv4/devinet.c 				ifa->ifa_dev = in_dev;
in_dev           1569 net/ipv4/devinet.c 				ipv4_devconf_setall(in_dev);
in_dev           1570 net/ipv4/devinet.c 				neigh_parms_data_state_setall(in_dev->arp_parms);
in_dev           1574 net/ipv4/devinet.c 		ip_mc_up(in_dev);
in_dev           1577 net/ipv4/devinet.c 		if (!IN_DEV_ARP_NOTIFY(in_dev))
in_dev           1582 net/ipv4/devinet.c 		inetdev_send_gratuitous_arp(dev, in_dev);
in_dev           1585 net/ipv4/devinet.c 		ip_mc_down(in_dev);
in_dev           1588 net/ipv4/devinet.c 		ip_mc_unmap(in_dev);
in_dev           1591 net/ipv4/devinet.c 		ip_mc_remap(in_dev);
in_dev           1599 net/ipv4/devinet.c 		inetdev_destroy(in_dev);
in_dev           1605 net/ipv4/devinet.c 		inetdev_changename(dev, in_dev);
in_dev           1607 net/ipv4/devinet.c 		devinet_sysctl_unregister(in_dev);
in_dev           1608 net/ipv4/devinet.c 		devinet_sysctl_register(in_dev);
in_dev           1773 net/ipv4/devinet.c static int in_dev_dump_addr(struct in_device *in_dev, struct sk_buff *skb,
in_dev           1781 net/ipv4/devinet.c 	in_dev_for_each_ifa_rtnl(ifa, in_dev) {
in_dev           1817 net/ipv4/devinet.c 	struct in_device *in_dev;
in_dev           1839 net/ipv4/devinet.c 			in_dev = __in_dev_get_rtnl(dev);
in_dev           1840 net/ipv4/devinet.c 			if (in_dev) {
in_dev           1841 net/ipv4/devinet.c 				err = in_dev_dump_addr(in_dev, skb, cb, s_ip_idx,
in_dev           1859 net/ipv4/devinet.c 			in_dev = __in_dev_get_rcu(dev);
in_dev           1860 net/ipv4/devinet.c 			if (!in_dev)
in_dev           1863 net/ipv4/devinet.c 			err = in_dev_dump_addr(in_dev, skb, cb, s_ip_idx,
in_dev           1921 net/ipv4/devinet.c 	struct in_device *in_dev = rcu_dereference_rtnl(dev->ip_ptr);
in_dev           1923 net/ipv4/devinet.c 	if (!in_dev)
in_dev           1932 net/ipv4/devinet.c 	struct in_device *in_dev = rcu_dereference_rtnl(dev->ip_ptr);
in_dev           1936 net/ipv4/devinet.c 	if (!in_dev)
in_dev           1944 net/ipv4/devinet.c 		((u32 *) nla_data(nla))[i] = in_dev->cnf.data[i];
in_dev           1984 net/ipv4/devinet.c 	struct in_device *in_dev = __in_dev_get_rcu(dev);
in_dev           1988 net/ipv4/devinet.c 	if (!in_dev)
in_dev           1996 net/ipv4/devinet.c 			ipv4_devconf_set(in_dev, nla_type(a), nla_get_u32(a));
in_dev           2167 net/ipv4/devinet.c 	struct in_device *in_dev;
in_dev           2192 net/ipv4/devinet.c 		in_dev = __in_dev_get_rtnl(dev);
in_dev           2193 net/ipv4/devinet.c 		if (!in_dev)
in_dev           2195 net/ipv4/devinet.c 		devconf = &in_dev->cnf;
in_dev           2227 net/ipv4/devinet.c 	struct in_device *in_dev;
in_dev           2257 net/ipv4/devinet.c 			in_dev = __in_dev_get_rcu(dev);
in_dev           2258 net/ipv4/devinet.c 			if (!in_dev)
in_dev           2262 net/ipv4/devinet.c 						      &in_dev->cnf,
in_dev           2314 net/ipv4/devinet.c 		struct in_device *in_dev;
in_dev           2316 net/ipv4/devinet.c 		in_dev = __in_dev_get_rcu(dev);
in_dev           2317 net/ipv4/devinet.c 		if (in_dev && !test_bit(i, in_dev->cnf.state))
in_dev           2318 net/ipv4/devinet.c 			in_dev->cnf.data[i] = net->ipv4.devconf_dflt->data[i];
in_dev           2341 net/ipv4/devinet.c 		struct in_device *in_dev;
in_dev           2346 net/ipv4/devinet.c 		in_dev = __in_dev_get_rtnl(dev);
in_dev           2347 net/ipv4/devinet.c 		if (in_dev) {
in_dev           2348 net/ipv4/devinet.c 			IN_DEV_CONF_SET(in_dev, FORWARDING, on);
in_dev           2351 net/ipv4/devinet.c 						    dev->ifindex, &in_dev->cnf);
in_dev            283 net/ipv4/fib_frontend.c 	struct in_device *in_dev;
in_dev            294 net/ipv4/fib_frontend.c 	in_dev = __in_dev_get_rcu(dev);
in_dev            300 net/ipv4/fib_frontend.c 		bool vmark = in_dev && IN_DEV_SRC_VMARK(in_dev);
in_dev            550 net/ipv4/fib_frontend.c 			struct in_device *in_dev;
in_dev            552 net/ipv4/fib_frontend.c 			in_dev = __in_dev_get_rtnl(dev);
in_dev            553 net/ipv4/fib_frontend.c 			if (!in_dev)
in_dev            559 net/ipv4/fib_frontend.c 			in_dev_for_each_ifa_rcu(ifa, in_dev) {
in_dev           1101 net/ipv4/fib_frontend.c 	struct in_device *in_dev = ifa->ifa_dev;
in_dev           1102 net/ipv4/fib_frontend.c 	struct net_device *dev = in_dev->dev;
in_dev           1109 net/ipv4/fib_frontend.c 		prim = inet_ifa_byprefix(in_dev, prefix, mask);
in_dev           1147 net/ipv4/fib_frontend.c 	struct in_device *in_dev = ifa->ifa_dev;
in_dev           1148 net/ipv4/fib_frontend.c 	struct net_device *dev = in_dev->dev;
in_dev           1174 net/ipv4/fib_frontend.c 	struct in_device *in_dev = ifa->ifa_dev;
in_dev           1175 net/ipv4/fib_frontend.c 	struct net_device *dev = in_dev->dev;
in_dev           1190 net/ipv4/fib_frontend.c 		prim = inet_ifa_byprefix(in_dev, any, ifa->ifa_mask);
in_dev           1195 net/ipv4/fib_frontend.c 			if (!in_dev->dead)
in_dev           1212 net/ipv4/fib_frontend.c 	if (in_dev->dead)
in_dev           1221 net/ipv4/fib_frontend.c 	in_dev_for_each_ifa_rcu(ifa1, in_dev) {
in_dev           1250 net/ipv4/fib_frontend.c 					prim1 = inet_ifa_byprefix(in_dev,
in_dev           1457 net/ipv4/fib_frontend.c 	struct in_device *in_dev;
in_dev           1468 net/ipv4/fib_frontend.c 	in_dev = __in_dev_get_rtnl(dev);
in_dev           1469 net/ipv4/fib_frontend.c 	if (!in_dev)
in_dev           1474 net/ipv4/fib_frontend.c 		in_dev_for_each_ifa_rtnl(ifa, in_dev) {
in_dev           1151 net/ipv4/fib_semantics.c 	struct in_device *in_dev;
in_dev           1163 net/ipv4/fib_semantics.c 	in_dev = inetdev_by_index(net, nh->fib_nh_oif);
in_dev           1164 net/ipv4/fib_semantics.c 	if (!in_dev)
in_dev           1167 net/ipv4/fib_semantics.c 	if (!(in_dev->dev->flags & IFF_UP)) {
in_dev           1172 net/ipv4/fib_semantics.c 	nh->fib_nh_dev = in_dev->dev;
in_dev            124 net/ipv4/igmp.c #define IGMP_V1_SEEN(in_dev) \
in_dev            125 net/ipv4/igmp.c 	(IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 1 || \
in_dev            126 net/ipv4/igmp.c 	 IN_DEV_CONF_GET((in_dev), FORCE_IGMP_VERSION) == 1 || \
in_dev            127 net/ipv4/igmp.c 	 ((in_dev)->mr_v1_seen && \
in_dev            128 net/ipv4/igmp.c 	  time_before(jiffies, (in_dev)->mr_v1_seen)))
in_dev            129 net/ipv4/igmp.c #define IGMP_V2_SEEN(in_dev) \
in_dev            130 net/ipv4/igmp.c 	(IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 2 || \
in_dev            131 net/ipv4/igmp.c 	 IN_DEV_CONF_GET((in_dev), FORCE_IGMP_VERSION) == 2 || \
in_dev            132 net/ipv4/igmp.c 	 ((in_dev)->mr_v2_seen && \
in_dev            133 net/ipv4/igmp.c 	  time_before(jiffies, (in_dev)->mr_v2_seen)))
in_dev            135 net/ipv4/igmp.c static int unsolicited_report_interval(struct in_device *in_dev)
in_dev            139 net/ipv4/igmp.c 	if (IGMP_V1_SEEN(in_dev) || IGMP_V2_SEEN(in_dev))
in_dev            141 net/ipv4/igmp.c 			in_dev,
in_dev            145 net/ipv4/igmp.c 			in_dev,
in_dev            158 net/ipv4/igmp.c static void igmpv3_add_delrec(struct in_device *in_dev, struct ip_mc_list *im,
in_dev            160 net/ipv4/igmp.c static void igmpv3_del_delrec(struct in_device *in_dev, struct ip_mc_list *im);
in_dev            161 net/ipv4/igmp.c static void igmpv3_clear_delrec(struct in_device *in_dev);
in_dev            166 net/ipv4/igmp.c static int ip_mc_add_src(struct in_device *in_dev, __be32 *pmca, int sfmode,
in_dev            177 net/ipv4/igmp.c #define for_each_pmc_rcu(in_dev, pmc)				\
in_dev            178 net/ipv4/igmp.c 	for (pmc = rcu_dereference(in_dev->mc_list);		\
in_dev            182 net/ipv4/igmp.c #define for_each_pmc_rtnl(in_dev, pmc)				\
in_dev            183 net/ipv4/igmp.c 	for (pmc = rtnl_dereference(in_dev->mc_list);		\
in_dev            225 net/ipv4/igmp.c static void igmp_gq_start_timer(struct in_device *in_dev)
in_dev            227 net/ipv4/igmp.c 	int tv = prandom_u32() % in_dev->mr_maxdelay;
in_dev            230 net/ipv4/igmp.c 	if (in_dev->mr_gq_running &&
in_dev            231 net/ipv4/igmp.c 	    time_after_eq(exp, (in_dev->mr_gq_timer).expires))
in_dev            234 net/ipv4/igmp.c 	in_dev->mr_gq_running = 1;
in_dev            235 net/ipv4/igmp.c 	if (!mod_timer(&in_dev->mr_gq_timer, exp))
in_dev            236 net/ipv4/igmp.c 		in_dev_hold(in_dev);
in_dev            239 net/ipv4/igmp.c static void igmp_ifc_start_timer(struct in_device *in_dev, int delay)
in_dev            243 net/ipv4/igmp.c 	if (!mod_timer(&in_dev->mr_ifc_timer, jiffies+tv+2))
in_dev            244 net/ipv4/igmp.c 		in_dev_hold(in_dev);
in_dev            334 net/ipv4/igmp.c 	struct in_device *in_dev = __in_dev_get_rcu(dev);
in_dev            337 net/ipv4/igmp.c 	if (!in_dev)
in_dev            340 net/ipv4/igmp.c 	in_dev_for_each_ifa_rcu(ifa, in_dev) {
in_dev            586 net/ipv4/igmp.c static int igmpv3_send_report(struct in_device *in_dev, struct ip_mc_list *pmc)
in_dev            589 net/ipv4/igmp.c 	struct net *net = dev_net(in_dev->dev);
in_dev            594 net/ipv4/igmp.c 		for_each_pmc_rcu(in_dev, pmc) {
in_dev            651 net/ipv4/igmp.c static void igmpv3_send_cr(struct in_device *in_dev)
in_dev            658 net/ipv4/igmp.c 	spin_lock_bh(&in_dev->mc_tomb_lock);
in_dev            662 net/ipv4/igmp.c 	for (pmc = in_dev->mc_tomb; pmc; pmc = pmc_next) {
in_dev            685 net/ipv4/igmp.c 				in_dev->mc_tomb = pmc_next;
in_dev            691 net/ipv4/igmp.c 	spin_unlock_bh(&in_dev->mc_tomb_lock);
in_dev            694 net/ipv4/igmp.c 	for_each_pmc_rcu(in_dev, pmc) {
in_dev            724 net/ipv4/igmp.c static int igmp_send_report(struct in_device *in_dev, struct ip_mc_list *pmc,
in_dev            731 net/ipv4/igmp.c 	struct net_device *dev = in_dev->dev;
in_dev            739 net/ipv4/igmp.c 		return igmpv3_send_report(in_dev, pmc);
in_dev            798 net/ipv4/igmp.c 	struct in_device *in_dev = from_timer(in_dev, t, mr_gq_timer);
in_dev            800 net/ipv4/igmp.c 	in_dev->mr_gq_running = 0;
in_dev            801 net/ipv4/igmp.c 	igmpv3_send_report(in_dev, NULL);
in_dev            802 net/ipv4/igmp.c 	in_dev_put(in_dev);
in_dev            807 net/ipv4/igmp.c 	struct in_device *in_dev = from_timer(in_dev, t, mr_ifc_timer);
in_dev            809 net/ipv4/igmp.c 	igmpv3_send_cr(in_dev);
in_dev            810 net/ipv4/igmp.c 	if (in_dev->mr_ifc_count) {
in_dev            811 net/ipv4/igmp.c 		in_dev->mr_ifc_count--;
in_dev            812 net/ipv4/igmp.c 		igmp_ifc_start_timer(in_dev,
in_dev            813 net/ipv4/igmp.c 				     unsolicited_report_interval(in_dev));
in_dev            815 net/ipv4/igmp.c 	in_dev_put(in_dev);
in_dev            818 net/ipv4/igmp.c static void igmp_ifc_event(struct in_device *in_dev)
in_dev            820 net/ipv4/igmp.c 	struct net *net = dev_net(in_dev->dev);
in_dev            821 net/ipv4/igmp.c 	if (IGMP_V1_SEEN(in_dev) || IGMP_V2_SEEN(in_dev))
in_dev            823 net/ipv4/igmp.c 	in_dev->mr_ifc_count = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv;
in_dev            824 net/ipv4/igmp.c 	igmp_ifc_start_timer(in_dev, 1);
in_dev            831 net/ipv4/igmp.c 	struct in_device *in_dev = im->interface;
in_dev            837 net/ipv4/igmp.c 		igmp_start_timer(im, unsolicited_report_interval(in_dev));
in_dev            842 net/ipv4/igmp.c 	if (IGMP_V1_SEEN(in_dev))
in_dev            843 net/ipv4/igmp.c 		igmp_send_report(in_dev, im, IGMP_HOST_MEMBERSHIP_REPORT);
in_dev            844 net/ipv4/igmp.c 	else if (IGMP_V2_SEEN(in_dev))
in_dev            845 net/ipv4/igmp.c 		igmp_send_report(in_dev, im, IGMPV2_HOST_MEMBERSHIP_REPORT);
in_dev            847 net/ipv4/igmp.c 		igmp_send_report(in_dev, im, IGMPV3_HOST_MEMBERSHIP_REPORT);
in_dev            909 net/ipv4/igmp.c static bool igmp_heard_report(struct in_device *in_dev, __be32 group)
in_dev            912 net/ipv4/igmp.c 	struct net *net = dev_net(in_dev->dev);
in_dev            922 net/ipv4/igmp.c 	for_each_pmc_rcu(in_dev, im) {
in_dev            933 net/ipv4/igmp.c static bool igmp_heard_query(struct in_device *in_dev, struct sk_buff *skb,
in_dev            942 net/ipv4/igmp.c 	struct net		*net = dev_net(in_dev->dev);
in_dev            950 net/ipv4/igmp.c 			in_dev->mr_v1_seen = jiffies +
in_dev            951 net/ipv4/igmp.c 				(in_dev->mr_qrv * in_dev->mr_qi) +
in_dev            952 net/ipv4/igmp.c 				in_dev->mr_qri;
in_dev            957 net/ipv4/igmp.c 			in_dev->mr_v2_seen = jiffies +
in_dev            958 net/ipv4/igmp.c 				(in_dev->mr_qrv * in_dev->mr_qi) +
in_dev            959 net/ipv4/igmp.c 				in_dev->mr_qri;
in_dev            962 net/ipv4/igmp.c 		in_dev->mr_ifc_count = 0;
in_dev            963 net/ipv4/igmp.c 		if (del_timer(&in_dev->mr_ifc_timer))
in_dev            964 net/ipv4/igmp.c 			__in_dev_put(in_dev);
in_dev            966 net/ipv4/igmp.c 		igmpv3_clear_delrec(in_dev);
in_dev            969 net/ipv4/igmp.c 	} else if (IGMP_V1_SEEN(in_dev)) {
in_dev            973 net/ipv4/igmp.c 	} else if (IGMP_V2_SEEN(in_dev)) {
in_dev            998 net/ipv4/igmp.c 		in_dev->mr_maxdelay = max_delay;
in_dev           1004 net/ipv4/igmp.c 		in_dev->mr_qrv = ih3->qrv ?: net->ipv4.sysctl_igmp_qrv;
in_dev           1005 net/ipv4/igmp.c 		in_dev->mr_qi = IGMPV3_QQIC(ih3->qqic)*HZ ?: IGMP_QUERY_INTERVAL;
in_dev           1011 net/ipv4/igmp.c 		if (in_dev->mr_qri >= in_dev->mr_qi)
in_dev           1012 net/ipv4/igmp.c 			in_dev->mr_qri = (in_dev->mr_qi/HZ - 1)*HZ;
in_dev           1017 net/ipv4/igmp.c 			igmp_gq_start_timer(in_dev);
in_dev           1035 net/ipv4/igmp.c 	for_each_pmc_rcu(in_dev, im) {
in_dev           1066 net/ipv4/igmp.c 	struct in_device *in_dev;
in_dev           1076 net/ipv4/igmp.c 	in_dev = __in_dev_get_rcu(dev);
in_dev           1077 net/ipv4/igmp.c 	if (!in_dev)
in_dev           1089 net/ipv4/igmp.c 		dropped = igmp_heard_query(in_dev, skb, len);
in_dev           1099 net/ipv4/igmp.c 			dropped = igmp_heard_report(in_dev, ih->group);
in_dev           1131 net/ipv4/igmp.c static void ip_mc_filter_add(struct in_device *in_dev, __be32 addr)
in_dev           1134 net/ipv4/igmp.c 	struct net_device *dev = in_dev->dev;
in_dev           1151 net/ipv4/igmp.c static void ip_mc_filter_del(struct in_device *in_dev, __be32 addr)
in_dev           1154 net/ipv4/igmp.c 	struct net_device *dev = in_dev->dev;
in_dev           1164 net/ipv4/igmp.c static void igmpv3_add_delrec(struct in_device *in_dev, struct ip_mc_list *im,
in_dev           1168 net/ipv4/igmp.c 	struct net *net = dev_net(in_dev->dev);
in_dev           1182 net/ipv4/igmp.c 	in_dev_hold(in_dev);
in_dev           1184 net/ipv4/igmp.c 	pmc->crcount = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv;
in_dev           1197 net/ipv4/igmp.c 	spin_lock_bh(&in_dev->mc_tomb_lock);
in_dev           1198 net/ipv4/igmp.c 	pmc->next = in_dev->mc_tomb;
in_dev           1199 net/ipv4/igmp.c 	in_dev->mc_tomb = pmc;
in_dev           1200 net/ipv4/igmp.c 	spin_unlock_bh(&in_dev->mc_tomb_lock);
in_dev           1206 net/ipv4/igmp.c static void igmpv3_del_delrec(struct in_device *in_dev, struct ip_mc_list *im)
in_dev           1210 net/ipv4/igmp.c 	struct net *net = dev_net(in_dev->dev);
in_dev           1213 net/ipv4/igmp.c 	spin_lock_bh(&in_dev->mc_tomb_lock);
in_dev           1215 net/ipv4/igmp.c 	for (pmc = in_dev->mc_tomb; pmc; pmc = pmc->next) {
in_dev           1224 net/ipv4/igmp.c 			in_dev->mc_tomb = pmc->next;
in_dev           1226 net/ipv4/igmp.c 	spin_unlock_bh(&in_dev->mc_tomb_lock);
in_dev           1235 net/ipv4/igmp.c 				psf->sf_crcount = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv;
in_dev           1237 net/ipv4/igmp.c 			im->crcount = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv;
in_dev           1248 net/ipv4/igmp.c static void igmpv3_clear_delrec(struct in_device *in_dev)
in_dev           1252 net/ipv4/igmp.c 	spin_lock_bh(&in_dev->mc_tomb_lock);
in_dev           1253 net/ipv4/igmp.c 	pmc = in_dev->mc_tomb;
in_dev           1254 net/ipv4/igmp.c 	in_dev->mc_tomb = NULL;
in_dev           1255 net/ipv4/igmp.c 	spin_unlock_bh(&in_dev->mc_tomb_lock);
in_dev           1265 net/ipv4/igmp.c 	for_each_pmc_rcu(in_dev, pmc) {
in_dev           1280 net/ipv4/igmp.c 	struct in_device *in_dev = im->interface;
in_dev           1282 net/ipv4/igmp.c 	struct net *net = dev_net(in_dev->dev);
in_dev           1288 net/ipv4/igmp.c 		ip_mc_filter_del(in_dev, im->multiaddr);
in_dev           1300 net/ipv4/igmp.c 	if (!in_dev->dead) {
in_dev           1301 net/ipv4/igmp.c 		if (IGMP_V1_SEEN(in_dev))
in_dev           1303 net/ipv4/igmp.c 		if (IGMP_V2_SEEN(in_dev)) {
in_dev           1305 net/ipv4/igmp.c 				igmp_send_report(in_dev, im, IGMP_HOST_LEAVE_MESSAGE);
in_dev           1309 net/ipv4/igmp.c 		igmpv3_add_delrec(in_dev, im, gfp);
in_dev           1311 net/ipv4/igmp.c 		igmp_ifc_event(in_dev);
in_dev           1323 net/ipv4/igmp.c 	struct in_device *in_dev = im->interface;
in_dev           1325 net/ipv4/igmp.c 	struct net *net = dev_net(in_dev->dev);
in_dev           1330 net/ipv4/igmp.c 		ip_mc_filter_add(in_dev, im->multiaddr);
in_dev           1339 net/ipv4/igmp.c 	if (in_dev->dead)
in_dev           1343 net/ipv4/igmp.c 	if (IGMP_V1_SEEN(in_dev) || IGMP_V2_SEEN(in_dev)) {
in_dev           1356 net/ipv4/igmp.c 		im->crcount = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv;
in_dev           1358 net/ipv4/igmp.c 	igmp_ifc_event(in_dev);
in_dev           1372 net/ipv4/igmp.c static void ip_mc_hash_add(struct in_device *in_dev,
in_dev           1378 net/ipv4/igmp.c 	mc_hash = rtnl_dereference(in_dev->mc_hash);
in_dev           1387 net/ipv4/igmp.c 	if (in_dev->mc_count < 4)
in_dev           1395 net/ipv4/igmp.c 	for_each_pmc_rtnl(in_dev, im) {
in_dev           1401 net/ipv4/igmp.c 	rcu_assign_pointer(in_dev->mc_hash, mc_hash);
in_dev           1404 net/ipv4/igmp.c static void ip_mc_hash_remove(struct in_device *in_dev,
in_dev           1407 net/ipv4/igmp.c 	struct ip_mc_list __rcu **mc_hash = rtnl_dereference(in_dev->mc_hash);
in_dev           1422 net/ipv4/igmp.c static void ____ip_mc_inc_group(struct in_device *in_dev, __be32 addr,
in_dev           1429 net/ipv4/igmp.c 	for_each_pmc_rtnl(in_dev, im) {
in_dev           1432 net/ipv4/igmp.c 			ip_mc_add_src(in_dev, &addr, mode, 0, NULL, 0);
in_dev           1442 net/ipv4/igmp.c 	im->interface = in_dev;
in_dev           1443 net/ipv4/igmp.c 	in_dev_hold(in_dev);
in_dev           1454 net/ipv4/igmp.c 	im->next_rcu = in_dev->mc_list;
in_dev           1455 net/ipv4/igmp.c 	in_dev->mc_count++;
in_dev           1456 net/ipv4/igmp.c 	rcu_assign_pointer(in_dev->mc_list, im);
in_dev           1458 net/ipv4/igmp.c 	ip_mc_hash_add(in_dev, im);
in_dev           1461 net/ipv4/igmp.c 	igmpv3_del_delrec(in_dev, im);
in_dev           1464 net/ipv4/igmp.c 	if (!in_dev->dead)
in_dev           1465 net/ipv4/igmp.c 		ip_rt_multicast_event(in_dev);
in_dev           1470 net/ipv4/igmp.c void __ip_mc_inc_group(struct in_device *in_dev, __be32 addr, gfp_t gfp)
in_dev           1472 net/ipv4/igmp.c 	____ip_mc_inc_group(in_dev, addr, MCAST_EXCLUDE, gfp);
in_dev           1476 net/ipv4/igmp.c void ip_mc_inc_group(struct in_device *in_dev, __be32 addr)
in_dev           1478 net/ipv4/igmp.c 	__ip_mc_inc_group(in_dev, addr, GFP_KERNEL);
in_dev           1627 net/ipv4/igmp.c static void ip_mc_rejoin_groups(struct in_device *in_dev)
in_dev           1632 net/ipv4/igmp.c 	struct net *net = dev_net(in_dev->dev);
in_dev           1636 net/ipv4/igmp.c 	for_each_pmc_rtnl(in_dev, im) {
in_dev           1646 net/ipv4/igmp.c 		if (IGMP_V1_SEEN(in_dev))
in_dev           1648 net/ipv4/igmp.c 		else if (IGMP_V2_SEEN(in_dev))
in_dev           1652 net/ipv4/igmp.c 		igmp_send_report(in_dev, im, type);
in_dev           1661 net/ipv4/igmp.c void __ip_mc_dec_group(struct in_device *in_dev, __be32 addr, gfp_t gfp)
in_dev           1668 net/ipv4/igmp.c 	for (ip = &in_dev->mc_list;
in_dev           1673 net/ipv4/igmp.c 				ip_mc_hash_remove(in_dev, i);
in_dev           1675 net/ipv4/igmp.c 				in_dev->mc_count--;
in_dev           1679 net/ipv4/igmp.c 				if (!in_dev->dead)
in_dev           1680 net/ipv4/igmp.c 					ip_rt_multicast_event(in_dev);
in_dev           1693 net/ipv4/igmp.c void ip_mc_unmap(struct in_device *in_dev)
in_dev           1699 net/ipv4/igmp.c 	for_each_pmc_rtnl(in_dev, pmc)
in_dev           1703 net/ipv4/igmp.c void ip_mc_remap(struct in_device *in_dev)
in_dev           1709 net/ipv4/igmp.c 	for_each_pmc_rtnl(in_dev, pmc) {
in_dev           1711 net/ipv4/igmp.c 		igmpv3_del_delrec(in_dev, pmc);
in_dev           1719 net/ipv4/igmp.c void ip_mc_down(struct in_device *in_dev)
in_dev           1725 net/ipv4/igmp.c 	for_each_pmc_rtnl(in_dev, pmc)
in_dev           1729 net/ipv4/igmp.c 	in_dev->mr_ifc_count = 0;
in_dev           1730 net/ipv4/igmp.c 	if (del_timer(&in_dev->mr_ifc_timer))
in_dev           1731 net/ipv4/igmp.c 		__in_dev_put(in_dev);
in_dev           1732 net/ipv4/igmp.c 	in_dev->mr_gq_running = 0;
in_dev           1733 net/ipv4/igmp.c 	if (del_timer(&in_dev->mr_gq_timer))
in_dev           1734 net/ipv4/igmp.c 		__in_dev_put(in_dev);
in_dev           1737 net/ipv4/igmp.c 	ip_mc_dec_group(in_dev, IGMP_ALL_HOSTS);
in_dev           1741 net/ipv4/igmp.c static void ip_mc_reset(struct in_device *in_dev)
in_dev           1743 net/ipv4/igmp.c 	struct net *net = dev_net(in_dev->dev);
in_dev           1745 net/ipv4/igmp.c 	in_dev->mr_qi = IGMP_QUERY_INTERVAL;
in_dev           1746 net/ipv4/igmp.c 	in_dev->mr_qri = IGMP_QUERY_RESPONSE_INTERVAL;
in_dev           1747 net/ipv4/igmp.c 	in_dev->mr_qrv = net->ipv4.sysctl_igmp_qrv;
in_dev           1750 net/ipv4/igmp.c static void ip_mc_reset(struct in_device *in_dev)
in_dev           1755 net/ipv4/igmp.c void ip_mc_init_dev(struct in_device *in_dev)
in_dev           1760 net/ipv4/igmp.c 	timer_setup(&in_dev->mr_gq_timer, igmp_gq_timer_expire, 0);
in_dev           1761 net/ipv4/igmp.c 	timer_setup(&in_dev->mr_ifc_timer, igmp_ifc_timer_expire, 0);
in_dev           1763 net/ipv4/igmp.c 	ip_mc_reset(in_dev);
in_dev           1765 net/ipv4/igmp.c 	spin_lock_init(&in_dev->mc_tomb_lock);
in_dev           1770 net/ipv4/igmp.c void ip_mc_up(struct in_device *in_dev)
in_dev           1776 net/ipv4/igmp.c 	ip_mc_reset(in_dev);
in_dev           1777 net/ipv4/igmp.c 	ip_mc_inc_group(in_dev, IGMP_ALL_HOSTS);
in_dev           1779 net/ipv4/igmp.c 	for_each_pmc_rtnl(in_dev, pmc) {
in_dev           1781 net/ipv4/igmp.c 		igmpv3_del_delrec(in_dev, pmc);
in_dev           1791 net/ipv4/igmp.c void ip_mc_destroy_dev(struct in_device *in_dev)
in_dev           1798 net/ipv4/igmp.c 	ip_mc_down(in_dev);
in_dev           1800 net/ipv4/igmp.c 	igmpv3_clear_delrec(in_dev);
in_dev           1803 net/ipv4/igmp.c 	while ((i = rtnl_dereference(in_dev->mc_list)) != NULL) {
in_dev           1804 net/ipv4/igmp.c 		in_dev->mc_list = i->next_rcu;
in_dev           1805 net/ipv4/igmp.c 		in_dev->mc_count--;
in_dev           1868 net/ipv4/igmp.c 		struct in_device *in_dev = pmc->interface;
in_dev           1869 net/ipv4/igmp.c 		struct net *net = dev_net(in_dev->dev);
in_dev           1879 net/ipv4/igmp.c 		    !IGMP_V1_SEEN(in_dev) && !IGMP_V2_SEEN(in_dev)) {
in_dev           1880 net/ipv4/igmp.c 			psf->sf_crcount = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv;
in_dev           1895 net/ipv4/igmp.c static int ip_mc_del_src(struct in_device *in_dev, __be32 *pmca, int sfmode,
in_dev           1902 net/ipv4/igmp.c 	if (!in_dev)
in_dev           1905 net/ipv4/igmp.c 	for_each_pmc_rcu(in_dev, pmc) {
in_dev           1938 net/ipv4/igmp.c 		struct net *net = dev_net(in_dev->dev);
in_dev           1944 net/ipv4/igmp.c 		pmc->crcount = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv;
in_dev           1945 net/ipv4/igmp.c 		in_dev->mr_ifc_count = pmc->crcount;
in_dev           2067 net/ipv4/igmp.c static int ip_mc_add_src(struct in_device *in_dev, __be32 *pmca, int sfmode,
in_dev           2074 net/ipv4/igmp.c 	if (!in_dev)
in_dev           2077 net/ipv4/igmp.c 	for_each_pmc_rcu(in_dev, pmc) {
in_dev           2112 net/ipv4/igmp.c 		in_dev = pmc->interface;
in_dev           2123 net/ipv4/igmp.c 		pmc->crcount = in_dev->mr_qrv ?: net->ipv4.sysctl_igmp_qrv;
in_dev           2124 net/ipv4/igmp.c 		in_dev->mr_ifc_count = pmc->crcount;
in_dev           2127 net/ipv4/igmp.c 		igmp_ifc_event(in_dev);
in_dev           2129 net/ipv4/igmp.c 		igmp_ifc_event(in_dev);
in_dev           2161 net/ipv4/igmp.c 	struct in_device *in_dev;
in_dev           2173 net/ipv4/igmp.c 	in_dev = ip_mc_find_dev(net, imr);
in_dev           2175 net/ipv4/igmp.c 	if (!in_dev) {
in_dev           2200 net/ipv4/igmp.c 	____ip_mc_inc_group(in_dev, addr, mode, GFP_KERNEL);
in_dev           2223 net/ipv4/igmp.c 			   struct in_device *in_dev)
in_dev           2230 net/ipv4/igmp.c 		return ip_mc_del_src(in_dev, &iml->multi.imr_multiaddr.s_addr,
in_dev           2233 net/ipv4/igmp.c 	err = ip_mc_del_src(in_dev, &iml->multi.imr_multiaddr.s_addr,
in_dev           2247 net/ipv4/igmp.c 	struct in_device *in_dev;
in_dev           2255 net/ipv4/igmp.c 	in_dev = ip_mc_find_dev(net, imr);
in_dev           2256 net/ipv4/igmp.c 	if (!imr->imr_ifindex && !imr->imr_address.s_addr && !in_dev) {
in_dev           2273 net/ipv4/igmp.c 		(void) ip_mc_leave_src(sk, iml, in_dev);
in_dev           2277 net/ipv4/igmp.c 		if (in_dev)
in_dev           2278 net/ipv4/igmp.c 			ip_mc_dec_group(in_dev, group);
in_dev           2297 net/ipv4/igmp.c 	struct in_device *in_dev = NULL;
in_dev           2312 net/ipv4/igmp.c 	in_dev = ip_mc_find_dev(net, &imr);
in_dev           2314 net/ipv4/igmp.c 	if (!in_dev) {
in_dev           2338 net/ipv4/igmp.c 		ip_mc_add_src(in_dev, &mreqs->imr_multiaddr, omode, 0, NULL, 0);
in_dev           2339 net/ipv4/igmp.c 		ip_mc_del_src(in_dev, &mreqs->imr_multiaddr, pmc->sfmode, 0,
in_dev           2365 net/ipv4/igmp.c 		ip_mc_del_src(in_dev, &mreqs->imr_multiaddr, omode, 1,
in_dev           2418 net/ipv4/igmp.c 	ip_mc_add_src(in_dev, &mreqs->imr_multiaddr, omode, 1,
in_dev           2432 net/ipv4/igmp.c 	struct in_device *in_dev;
in_dev           2449 net/ipv4/igmp.c 	in_dev = ip_mc_find_dev(net, &imr);
in_dev           2451 net/ipv4/igmp.c 	if (!in_dev) {
in_dev           2481 net/ipv4/igmp.c 		err = ip_mc_add_src(in_dev, &msf->imsf_multiaddr,
in_dev           2489 net/ipv4/igmp.c 		(void) ip_mc_add_src(in_dev, &msf->imsf_multiaddr,
in_dev           2494 net/ipv4/igmp.c 		(void) ip_mc_del_src(in_dev, &msf->imsf_multiaddr, pmc->sfmode,
in_dev           2500 net/ipv4/igmp.c 		(void) ip_mc_del_src(in_dev, &msf->imsf_multiaddr, pmc->sfmode,
in_dev           2518 net/ipv4/igmp.c 	struct in_device *in_dev;
in_dev           2531 net/ipv4/igmp.c 	in_dev = ip_mc_find_dev(net, &imr);
in_dev           2533 net/ipv4/igmp.c 	if (!in_dev) {
in_dev           2683 net/ipv4/igmp.c 		struct in_device *in_dev;
in_dev           2686 net/ipv4/igmp.c 		in_dev = inetdev_by_index(net, iml->multi.imr_ifindex);
in_dev           2687 net/ipv4/igmp.c 		(void) ip_mc_leave_src(sk, iml, in_dev);
in_dev           2688 net/ipv4/igmp.c 		if (in_dev)
in_dev           2689 net/ipv4/igmp.c 			ip_mc_dec_group(in_dev, iml->multi.imr_multiaddr.s_addr);
in_dev           2698 net/ipv4/igmp.c int ip_check_mc_rcu(struct in_device *in_dev, __be32 mc_addr, __be32 src_addr, u8 proto)
in_dev           2705 net/ipv4/igmp.c 	mc_hash = rcu_dereference(in_dev->mc_hash);
in_dev           2716 net/ipv4/igmp.c 		for_each_pmc_rcu(in_dev, im) {
in_dev           2745 net/ipv4/igmp.c 	struct in_device *in_dev;
in_dev           2756 net/ipv4/igmp.c 	state->in_dev = NULL;
in_dev           2758 net/ipv4/igmp.c 		struct in_device *in_dev;
in_dev           2760 net/ipv4/igmp.c 		in_dev = __in_dev_get_rcu(state->dev);
in_dev           2761 net/ipv4/igmp.c 		if (!in_dev)
in_dev           2763 net/ipv4/igmp.c 		im = rcu_dereference(in_dev->mc_list);
in_dev           2765 net/ipv4/igmp.c 			state->in_dev = in_dev;
in_dev           2780 net/ipv4/igmp.c 			state->in_dev = NULL;
in_dev           2783 net/ipv4/igmp.c 		state->in_dev = __in_dev_get_rcu(state->dev);
in_dev           2784 net/ipv4/igmp.c 		if (!state->in_dev)
in_dev           2786 net/ipv4/igmp.c 		im = rcu_dereference(state->in_dev->mc_list);
in_dev           2823 net/ipv4/igmp.c 	state->in_dev = NULL;
in_dev           2840 net/ipv4/igmp.c 		querier = IGMP_V1_SEEN(state->in_dev) ? "V1" :
in_dev           2841 net/ipv4/igmp.c 			  IGMP_V2_SEEN(state->in_dev) ? "V2" :
in_dev           2847 net/ipv4/igmp.c 		if (rcu_access_pointer(state->in_dev->mc_list) == im) {
in_dev           2849 net/ipv4/igmp.c 				   state->dev->ifindex, state->dev->name, state->in_dev->mc_count, querier);
in_dev           3051 net/ipv4/igmp.c 	struct in_device *in_dev;
in_dev           3055 net/ipv4/igmp.c 		in_dev = __in_dev_get_rtnl(dev);
in_dev           3056 net/ipv4/igmp.c 		if (in_dev)
in_dev           3057 net/ipv4/igmp.c 			ip_mc_rejoin_groups(in_dev);
in_dev            885 net/ipv4/ip_gre.c 		struct in_device *in_dev;
in_dev            886 net/ipv4/ip_gre.c 		in_dev = inetdev_by_index(t->net, t->mlink);
in_dev            887 net/ipv4/ip_gre.c 		if (in_dev)
in_dev            888 net/ipv4/ip_gre.c 			ip_mc_dec_group(in_dev, t->parms.iph.daddr);
in_dev            284 net/ipv4/ip_input.c 		struct in_device *in_dev = __in_dev_get_rcu(dev);
in_dev            286 net/ipv4/ip_input.c 		if (in_dev) {
in_dev            287 net/ipv4/ip_input.c 			if (!IN_DEV_SOURCE_ROUTE(in_dev)) {
in_dev            288 net/ipv4/ip_input.c 				if (IN_DEV_LOG_MARTIANS(in_dev))
in_dev            365 net/ipv4/ip_input.c 		struct in_device *in_dev = __in_dev_get_rcu(dev);
in_dev            382 net/ipv4/ip_input.c 		if (in_dev &&
in_dev            383 net/ipv4/ip_input.c 		    IN_DEV_ORCONF(in_dev, DROP_UNICAST_IN_L2_MULTICAST))
in_dev            454 net/ipv4/ipmr.c 	struct in_device *in_dev;
in_dev            458 net/ipv4/ipmr.c 	in_dev = __in_dev_get_rtnl(dev);
in_dev            459 net/ipv4/ipmr.c 	if (!in_dev)
in_dev            461 net/ipv4/ipmr.c 	ipv4_devconf_setall(in_dev);
in_dev            462 net/ipv4/ipmr.c 	neigh_parms_data_state_setall(in_dev->arp_parms);
in_dev            463 net/ipv4/ipmr.c 	IPV4_DEVCONF(in_dev->cnf, RP_FILTER) = 0;
in_dev            673 net/ipv4/ipmr.c 	struct in_device *in_dev;
in_dev            710 net/ipv4/ipmr.c 	in_dev = __in_dev_get_rtnl(dev);
in_dev            711 net/ipv4/ipmr.c 	if (in_dev) {
in_dev            712 net/ipv4/ipmr.c 		IPV4_DEVCONF(in_dev->cnf, MC_FORWARDING)--;
in_dev            715 net/ipv4/ipmr.c 					    dev->ifindex, &in_dev->cnf);
in_dev            716 net/ipv4/ipmr.c 		ip_rt_multicast_event(in_dev);
in_dev            838 net/ipv4/ipmr.c 	struct in_device *in_dev;
in_dev            898 net/ipv4/ipmr.c 	in_dev = __in_dev_get_rtnl(dev);
in_dev            899 net/ipv4/ipmr.c 	if (!in_dev) {
in_dev            903 net/ipv4/ipmr.c 	IPV4_DEVCONF(in_dev->cnf, MC_FORWARDING)++;
in_dev            905 net/ipv4/ipmr.c 				    dev->ifindex, &in_dev->cnf);
in_dev            906 net/ipv4/ipmr.c 	ip_rt_multicast_event(in_dev);
in_dev            741 net/ipv4/route.c 	struct in_device *in_dev;
in_dev            760 net/ipv4/route.c 	in_dev = __in_dev_get_rcu(dev);
in_dev            761 net/ipv4/route.c 	if (!in_dev)
in_dev            765 net/ipv4/route.c 	if (new_gw == old_gw || !IN_DEV_RX_REDIRECTS(in_dev) ||
in_dev            770 net/ipv4/route.c 	if (!IN_DEV_SHARED_MEDIA(in_dev)) {
in_dev            771 net/ipv4/route.c 		if (!inet_addr_onlink(in_dev, new_gw, old_gw))
in_dev            773 net/ipv4/route.c 		if (IN_DEV_SEC_REDIRECTS(in_dev) && ip_fib_check_default(new_gw, dev))
in_dev            804 net/ipv4/route.c 	if (IN_DEV_LOG_MARTIANS(in_dev)) {
in_dev            872 net/ipv4/route.c 	struct in_device *in_dev;
in_dev            879 net/ipv4/route.c 	in_dev = __in_dev_get_rcu(rt->dst.dev);
in_dev            880 net/ipv4/route.c 	if (!in_dev || !IN_DEV_TX_REDIRECTS(in_dev)) {
in_dev            884 net/ipv4/route.c 	log_martians = IN_DEV_LOG_MARTIANS(in_dev);
in_dev            940 net/ipv4/route.c 	struct in_device *in_dev;
in_dev            953 net/ipv4/route.c 	in_dev = __in_dev_get_rcu(dev);
in_dev            956 net/ipv4/route.c 	if (!in_dev)
in_dev            960 net/ipv4/route.c 	if (!IN_DEV_FORWARD(in_dev)) {
in_dev           1688 net/ipv4/route.c 			  struct in_device *in_dev, u32 *itag)
in_dev           1693 net/ipv4/route.c 	if (!in_dev)
in_dev           1700 net/ipv4/route.c 	if (ipv4_is_loopback(saddr) && !IN_DEV_ROUTE_LOCALNET(in_dev))
in_dev           1709 net/ipv4/route.c 					  in_dev, itag);
in_dev           1720 net/ipv4/route.c 	struct in_device *in_dev = __in_dev_get_rcu(dev);
in_dev           1726 net/ipv4/route.c 	err = ip_mc_validate_source(skb, daddr, saddr, tos, dev, in_dev, &itag);
in_dev           1734 net/ipv4/route.c 			   IN_DEV_CONF_GET(in_dev, NOPOLICY), false, false);
in_dev           1745 net/ipv4/route.c 	if (!ipv4_is_local_multicast(daddr) && IN_DEV_MFORWARD(in_dev))
in_dev           1756 net/ipv4/route.c 				     struct in_device *in_dev,
in_dev           1763 net/ipv4/route.c 	if (IN_DEV_LOG_MARTIANS(in_dev) && net_ratelimit()) {
in_dev           1783 net/ipv4/route.c 			   struct in_device *in_dev,
in_dev           1803 net/ipv4/route.c 				  in_dev->dev, in_dev, &itag);
in_dev           1805 net/ipv4/route.c 		ip_handle_martian_source(in_dev->dev, in_dev, skb, daddr,
in_dev           1812 net/ipv4/route.c 	if (out_dev == in_dev && err && IN_DEV_TX_REDIRECTS(out_dev) &&
in_dev           1830 net/ipv4/route.c 		if (out_dev == in_dev &&
in_dev           1831 net/ipv4/route.c 		    IN_DEV_PROXY_ARP_PVLAN(in_dev) == 0) {
in_dev           1850 net/ipv4/route.c 			   IN_DEV_CONF_GET(in_dev, NOPOLICY),
in_dev           2009 net/ipv4/route.c 			    struct in_device *in_dev,
in_dev           2022 net/ipv4/route.c 	return __mkroute_input(skb, res, in_dev, daddr, saddr, tos);
in_dev           2040 net/ipv4/route.c 	struct in_device *in_dev = __in_dev_get_rcu(dev);
in_dev           2053 net/ipv4/route.c 	if (!in_dev)
in_dev           2088 net/ipv4/route.c 		if (!IN_DEV_NET_ROUTE_LOCALNET(in_dev, net))
in_dev           2091 net/ipv4/route.c 		if (!IN_DEV_NET_ROUTE_LOCALNET(in_dev, net))
in_dev           2118 net/ipv4/route.c 		if (!IN_DEV_FORWARD(in_dev))
in_dev           2124 net/ipv4/route.c 		if (IN_DEV_BFORWARD(in_dev))
in_dev           2134 net/ipv4/route.c 					  0, dev, in_dev, &itag);
in_dev           2140 net/ipv4/route.c 	if (!IN_DEV_FORWARD(in_dev)) {
in_dev           2148 net/ipv4/route.c 	err = ip_mkroute_input(skb, res, in_dev, daddr, saddr, tos, flkeys);
in_dev           2157 net/ipv4/route.c 					  in_dev, &itag);
in_dev           2180 net/ipv4/route.c 			   IN_DEV_CONF_GET(in_dev, NOPOLICY), false, do_cache);
in_dev           2227 net/ipv4/route.c 	if (IN_DEV_LOG_MARTIANS(in_dev))
in_dev           2241 net/ipv4/route.c 	ip_handle_martian_source(dev, in_dev, skb, daddr, saddr);
in_dev           2276 net/ipv4/route.c 		struct in_device *in_dev = __in_dev_get_rcu(dev);
in_dev           2280 net/ipv4/route.c 		if (!in_dev)
in_dev           2282 net/ipv4/route.c 		our = ip_check_mc_rcu(in_dev, daddr, saddr,
in_dev           2299 net/ipv4/route.c 		     IN_DEV_MFORWARD(in_dev))
in_dev           2319 net/ipv4/route.c 	struct in_device *in_dev;
in_dev           2324 net/ipv4/route.c 	in_dev = __in_dev_get_rcu(dev_out);
in_dev           2325 net/ipv4/route.c 	if (!in_dev)
in_dev           2328 net/ipv4/route.c 	if (likely(!IN_DEV_ROUTE_LOCALNET(in_dev)))
in_dev           2350 net/ipv4/route.c 		if (!ip_check_mc_rcu(in_dev, fl4->daddr, fl4->saddr,
in_dev           2403 net/ipv4/route.c 			   IN_DEV_CONF_GET(in_dev, NOPOLICY),
in_dev           2404 net/ipv4/route.c 			   IN_DEV_CONF_GET(in_dev, NOXFRM),
in_dev           2421 net/ipv4/route.c 			if (IN_DEV_MFORWARD(in_dev) &&
in_dev           3215 net/ipv4/route.c void ip_rt_multicast_event(struct in_device *in_dev)
in_dev           3217 net/ipv4/route.c 	rt_cache_flush(dev_net(in_dev->dev));
in_dev           2437 net/ipv4/udp.c 	struct in_device *in_dev = NULL;
in_dev           2454 net/ipv4/udp.c 		in_dev = __in_dev_get_rcu(skb->dev);
in_dev           2456 net/ipv4/udp.c 		if (!in_dev)
in_dev           2459 net/ipv4/udp.c 		ours = ip_check_mc_rcu(in_dev, iph->daddr, iph->saddr,
in_dev           2493 net/ipv4/udp.c 		if (!inet_sk(sk)->inet_daddr && in_dev)
in_dev           2496 net/ipv4/udp.c 						     skb->dev, in_dev, &itag);
in_dev           3130 net/ipv6/addrconf.c 		struct in_device *in_dev = __in_dev_get_rtnl(dev);
in_dev           3131 net/ipv6/addrconf.c 		if (in_dev && (dev->flags & IFF_UP)) {
in_dev           3135 net/ipv6/addrconf.c 			in_dev_for_each_ifa_rtnl(ifa, in_dev) {
in_dev             26 net/netfilter/nf_conntrack_broadcast.c 	struct in_device *in_dev;
in_dev             38 net/netfilter/nf_conntrack_broadcast.c 	in_dev = __in_dev_get_rcu(rt->dst.dev);
in_dev             39 net/netfilter/nf_conntrack_broadcast.c 	if (in_dev != NULL) {
in_dev             42 net/netfilter/nf_conntrack_broadcast.c 		in_dev_for_each_ifa_rcu(ifa, in_dev) {
in_dev             34 net/netfilter/nfnetlink_osf.c 	struct in_device *in_dev = __in_dev_get_rcu(skb->dev);
in_dev             46 net/netfilter/nfnetlink_osf.c 	in_dev_for_each_ifa_rcu(ifa, in_dev) {
in_dev             74 net/sctp/protocol.c 	struct in_device *in_dev;
in_dev             79 net/sctp/protocol.c 	if ((in_dev = __in_dev_get_rcu(dev)) == NULL) {
in_dev             84 net/sctp/protocol.c 	in_dev_for_each_ifa_rcu(ifa, in_dev) {
in_dev             99 net/smc/smc_clc.c 	struct in_device *in_dev = __in_dev_get_rcu(dst->dev);
in_dev            102 net/smc/smc_clc.c 	if (!in_dev)
in_dev            105 net/smc/smc_clc.c 	in_dev_for_each_ifa_rcu(ifa, in_dev) {
in_dev            194 net/smc/smc_clc.c 	struct in_device *in_dev = __in_dev_get_rcu(dev);
in_dev            197 net/smc/smc_clc.c 	if (!in_dev)
in_dev            199 net/smc/smc_clc.c 	in_dev_for_each_ifa_rcu(ifa, in_dev) {