/linux/include/linux/ |
A D | inetdevice.h | 90 IN_DEV_NET_ORCONF(in_dev, dev_net(in_dev->dev), attr) 99 #define IN_DEV_RPFILTER(in_dev) IN_DEV_MAXCONF((in_dev), RP_FILTER) argument 101 #define IN_DEV_SOURCE_ROUTE(in_dev) IN_DEV_ANDCONF((in_dev), \ argument 107 #define IN_DEV_PROXY_ARP(in_dev) IN_DEV_ORCONF((in_dev), PROXY_ARP) argument 111 #define IN_DEV_SEC_REDIRECTS(in_dev) IN_DEV_ORCONF((in_dev), \ argument 113 #define IN_DEV_IDTAG(in_dev) IN_DEV_CONF_GET(in_dev, TAG) argument 114 #define IN_DEV_MEDIUM_ID(in_dev) IN_DEV_CONF_GET(in_dev, MEDIUM_ID) argument 239 if (in_dev) in in_dev_get() 242 return in_dev; in in_dev_get() 257 if (in_dev && in ip_ignore_linkdown() [all …]
|
A D | igmp.h | 132 extern void __ip_mc_dec_group(struct in_device *in_dev, __be32 addr, gfp_t gfp); 133 static inline void ip_mc_dec_group(struct in_device *in_dev, __be32 addr) in ip_mc_dec_group() argument 135 return __ip_mc_dec_group(in_dev, addr, GFP_KERNEL); in ip_mc_dec_group() 137 extern void __ip_mc_inc_group(struct in_device *in_dev, __be32 addr, 139 extern void ip_mc_inc_group(struct in_device *in_dev, __be32 addr);
|
/linux/net/ipv4/ |
A D | igmp.c | 137 if (IGMP_V1_SEEN(in_dev) || IGMP_V2_SEEN(in_dev)) in unsolicited_report_interval() 139 in_dev, in unsolicited_report_interval() 143 in_dev, in unsolicited_report_interval() 335 if (!in_dev) in igmpv3_get_srcaddr() 826 if (IGMP_V1_SEEN(in_dev) || IGMP_V2_SEEN(in_dev)) in igmp_ifc_event() 956 (in_dev->mr_qrv * in_dev->mr_qi) + in igmp_heard_query() 963 (in_dev->mr_qrv * in_dev->mr_qi) + in igmp_heard_query() 1016 if (in_dev->mr_qri >= in_dev->mr_qi) in igmp_heard_query() 1017 in_dev->mr_qri = (in_dev->mr_qi/HZ - 1)*HZ; in igmp_heard_query() 1348 if (IGMP_V1_SEEN(in_dev) || IGMP_V2_SEEN(in_dev)) { in igmp_group_added() [all …]
|
A D | devinet.c | 261 in_dev = kzalloc(sizeof(*in_dev), GFP_KERNEL); in inetdev_init() 262 if (!in_dev) in inetdev_init() 295 kfree(in_dev); in inetdev_init() 296 in_dev = NULL; in inetdev_init() 320 inet_del_ifa(in_dev, &in_dev->ifa_list, 0); in inetdev_destroy() 852 if (!in_dev) in rtm_to_ifaddr() 1258 if (!in_dev) in inet_gifconf() 1313 if (!in_dev) in inet_select_addr() 1430 if (in_dev) in inet_confirm_addr() 1924 if (!in_dev) in inet_get_link_af_size() [all …]
|
A D | arp.c | 226 struct in_device *in_dev; in arp_constructor() local 235 in_dev = __in_dev_get_rcu(dev); in arp_constructor() 236 if (!in_dev) { in arp_constructor() 243 parms = in_dev->arp_parms; in arp_constructor() 339 struct in_device *in_dev; in arp_solicit() local 344 if (!in_dev) { in arp_solicit() 416 in_dev = NULL; in arp_ignore() 461 if (!IN_DEV_PROXY_ARP(in_dev)) in arp_fwd_proxy() 697 if (!in_dev) in arp_process() 1250 struct in_device *in_dev; in arp_netdev_event() local [all …]
|
A D | route.c | 753 if (!in_dev) in __ip_do_redirect() 874 if (!in_dev || !IN_DEV_TX_REDIRECTS(in_dev)) { in ip_rt_send_redirect() 950 if (!in_dev) in ip_error() 1679 if (!in_dev) in ip_mc_validate_source() 1695 in_dev, itag); in ip_mc_validate_source() 1789 in_dev->dev, in_dev, &itag); in __mkroute_input() 1791 ip_handle_martian_source(in_dev->dev, in_dev, skb, daddr, in __mkroute_input() 2214 if (!in_dev) in ip_route_input_slow() 2319 in_dev, &itag); in ip_route_input_slow() 2442 if (!in_dev) in ip_route_input_rcu() [all …]
|
A D | fib_frontend.c | 273 struct in_device *in_dev; in fib_compute_spec_dst() local 284 in_dev = __in_dev_get_rcu(dev); in fib_compute_spec_dst() 290 bool vmark = in_dev && IN_DEV_SRC_VMARK(in_dev); in fib_compute_spec_dst() 543 struct in_device *in_dev; in rtentry_to_fib_config() local 545 in_dev = __in_dev_get_rtnl(dev); in rtentry_to_fib_config() 546 if (!in_dev) in rtentry_to_fib_config() 1186 if (!in_dev->dead) in fib_del_ifaddr() 1203 if (in_dev->dead) in fib_del_ifaddr() 1448 struct in_device *in_dev; in fib_netdev_event() local 1459 in_dev = __in_dev_get_rtnl(dev); in fib_netdev_event() [all …]
|
A D | ip_input.c | 285 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_rcv_options() local 287 if (in_dev) { in ip_rcv_options() 288 if (!IN_DEV_SOURCE_ROUTE(in_dev)) { in ip_rcv_options() 289 if (IN_DEV_LOG_MARTIANS(in_dev)) in ip_rcv_options() 381 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_rcv_finish_core() local 398 if (in_dev && in ip_rcv_finish_core() 399 IN_DEV_ORCONF(in_dev, DROP_UNICAST_IN_L2_MULTICAST)) in ip_rcv_finish_core()
|
A D | ipmr.c | 427 struct in_device *in_dev; in ipmr_init_vif_indev() local 431 in_dev = __in_dev_get_rtnl(dev); in ipmr_init_vif_indev() 432 if (!in_dev) in ipmr_init_vif_indev() 434 ipv4_devconf_setall(in_dev); in ipmr_init_vif_indev() 650 struct in_device *in_dev; in vif_delete() local 687 in_dev = __in_dev_get_rtnl(dev); in vif_delete() 688 if (in_dev) { in vif_delete() 693 ip_rt_multicast_event(in_dev); in vif_delete() 815 struct in_device *in_dev; in vif_add() local 870 if (!in_dev) { in vif_add() [all …]
|
/linux/drivers/input/touchscreen/ |
A D | bu21029_ts.c | 157 struct input_dev *in_dev; member 205 input_sync(bu21029->in_dev); in bu21029_touch_report() 216 input_sync(bu21029->in_dev); in bu21029_touch_release() 338 struct input_dev *in_dev; in bu21029_probe() local 382 if (!in_dev) { in bu21029_probe() 388 bu21029->in_dev = in_dev; in bu21029_probe() 391 in_dev->name = DRIVER_NAME; in bu21029_probe() 392 in_dev->id.bustype = BUS_I2C; in bu21029_probe() 393 in_dev->open = bu21029_start_chip; in bu21029_probe() 394 in_dev->close = bu21029_stop_chip; in bu21029_probe() [all …]
|
A D | bu21013_ts.c | 159 struct input_dev *in_dev; member 188 struct input_dev *input = ts->in_dev; in bu21013_do_touch_report() 411 struct input_dev *in_dev; in bu21013_probe() local 437 if (!in_dev) { in bu21013_probe() 441 ts->in_dev = in_dev; in bu21013_probe() 442 input_set_drvdata(in_dev, ts); in bu21013_probe() 445 in_dev->name = DRIVER_TP; in bu21013_probe() 446 in_dev->id.bustype = BUS_I2C; in bu21013_probe() 459 info = &in_dev->absinfo[ABS_MT_POSITION_X]; in bu21013_probe() 466 info = &in_dev->absinfo[ABS_MT_POSITION_Y]; in bu21013_probe() [all …]
|
/linux/net/netfilter/ |
A D | nf_conntrack_broadcast.c | 26 struct in_device *in_dev; in nf_conntrack_broadcast_help() local 38 in_dev = __in_dev_get_rcu(rt->dst.dev); in nf_conntrack_broadcast_help() 39 if (in_dev != NULL) { in nf_conntrack_broadcast_help() 42 in_dev_for_each_ifa_rcu(ifa, in_dev) { in nf_conntrack_broadcast_help()
|
A D | nfnetlink_osf.c | 34 struct in_device *in_dev = __in_dev_get_rcu(skb->dev); in nf_osf_ttl() local 46 in_dev_for_each_ifa_rcu(ifa, in_dev) { in nf_osf_ttl()
|
/linux/drivers/net/wan/ |
A D | hdlc_cisco.c | 147 struct in_device *in_dev; in cisco_rx() local 180 in_dev = __in_dev_get_rcu(dev); in cisco_rx() 184 if (in_dev != NULL) { in cisco_rx() 187 in_dev_for_each_ifa_rcu(ifa, in_dev) { in cisco_rx()
|
/linux/drivers/parisc/ |
A D | led.c | 364 struct in_device *in_dev = __in_dev_get_rcu(dev); in led_get_net_activity() 365 if (!in_dev || !in_dev->ifa_list) in led_get_net_activity() 367 if (ipv4_is_loopback(in_dev->ifa_list->ifa_local)) in led_get_net_activity()
|
/linux/net/bridge/ |
A D | br_arp_nd_proxy.c | 95 struct in_device *in_dev; in br_chk_addr_ip() local 98 in_dev = __in_dev_get_rcu(dev); in br_chk_addr_ip() 99 if (in_dev) in br_chk_addr_ip() 100 addr = inet_confirm_addr(dev_net(dev), in_dev, 0, ip, in br_chk_addr_ip()
|
/linux/drivers/net/plip/ |
A D | plip.c | 1013 const struct in_device *in_dev; in plip_rewrite_address() local 1016 in_dev = __in_dev_get_rcu(dev); in plip_rewrite_address() 1017 if (in_dev) { in plip_rewrite_address() 1019 const struct in_ifaddr *ifa = rcu_dereference(in_dev->ifa_list); in plip_rewrite_address() 1070 struct in_device *in_dev; in plip_open() local 1109 in_dev=__in_dev_get_rtnl(dev); in plip_open() 1110 if (in_dev) { in plip_open() 1114 const struct in_ifaddr *ifa = rcu_dereference(in_dev->ifa_list); in plip_open()
|
/linux/include/net/ |
A D | bonding.h | 608 struct in_device *in_dev; in bond_confirm_addr() local 612 in_dev = __in_dev_get_rcu(dev); in bond_confirm_addr() 614 if (in_dev) in bond_confirm_addr() 615 addr = inet_confirm_addr(dev_net(dev), in_dev, dst, local, in bond_confirm_addr()
|
/linux/drivers/infiniband/core/ |
A D | roce_gid_mgmt.c | 335 struct in_device *in_dev; in enum_netdev_ipv4_ips() local 348 in_dev = __in_dev_get_rcu(ndev); in enum_netdev_ipv4_ips() 349 if (!in_dev) { in enum_netdev_ipv4_ips() 354 in_dev_for_each_ifa_rcu(ifa, in_dev) { in enum_netdev_ipv4_ips()
|
/linux/net/batman-adv/ |
A D | multicast.c | 113 struct in_device *in_dev = __in_dev_get_rcu(dev); in batadv_mcast_mla_rtr_flags_softif_get_ipv4() local 115 if (in_dev && IN_DEV_MFORWARD(in_dev)) in batadv_mcast_mla_rtr_flags_softif_get_ipv4() 342 struct in_device *in_dev; in batadv_mcast_mla_softif_get_ipv4() local 352 in_dev = __in_dev_get_rcu(dev); in batadv_mcast_mla_softif_get_ipv4() 353 if (!in_dev) { in batadv_mcast_mla_softif_get_ipv4() 358 for (pmc = rcu_dereference(in_dev->mc_list); pmc; in batadv_mcast_mla_softif_get_ipv4()
|
/linux/net/decnet/ |
A D | dn_route.c | 1305 struct net_device *in_dev = skb->dev; in dn_route_input_slow() local 1324 dev_hold(in_dev); in dn_route_input_slow() 1326 dn_db = rcu_dereference(in_dev->dn_ptr); in dn_route_input_slow() 1342 if (dn_dev_islocal(in_dev, cb->src)) in dn_route_input_slow() 1352 if (!dn_dev_islocal(in_dev, cb->dst)) in dn_route_input_slow() 1406 if (out_dev == in_dev && !(flags & RTCF_NAT)) in dn_route_input_slow() 1463 rt->fld.flowidn_iif = in_dev->ifindex; in dn_route_input_slow() 1476 rt->dst.dev = in_dev; in dn_route_input_slow() 1500 dev_put(in_dev); in dn_route_input_slow()
|
/linux/net/smc/ |
A D | smc_clc.c | 480 struct in_device *in_dev = __in_dev_get_rcu(dst->dev); in smc_clc_prfx_set4_rcu() local 483 if (!in_dev) in smc_clc_prfx_set4_rcu() 486 in_dev_for_each_ifa_rcu(ifa, in_dev) { in smc_clc_prfx_set4_rcu() 575 struct in_device *in_dev = __in_dev_get_rcu(dev); in smc_clc_prfx_match4_rcu() local 578 if (!in_dev) in smc_clc_prfx_match4_rcu() 580 in_dev_for_each_ifa_rcu(ifa, in_dev) { in smc_clc_prfx_match4_rcu()
|
/linux/net/core/ |
A D | netpoll.c | 663 struct in_device *in_dev; in netpoll_setup() local 723 in_dev = __in_dev_get_rtnl(ndev); in netpoll_setup() 724 if (!in_dev) in netpoll_setup() 727 ifa = rtnl_dereference(in_dev->ifa_list); in netpoll_setup()
|
/linux/drivers/net/ethernet/via/ |
A D | via-velocity.h | 1462 struct in_device *in_dev; in velocity_get_ip() local 1467 in_dev = __in_dev_get_rcu(vptr->netdev); in velocity_get_ip() 1468 if (in_dev != NULL) { in velocity_get_ip() 1469 ifa = rcu_dereference(in_dev->ifa_list); in velocity_get_ip()
|
/linux/net/atm/ |
A D | clip.c | 581 struct in_device *in_dev; in clip_inet_event() local 584 in_dev = ((struct in_ifaddr *)ifa)->ifa_dev; in clip_inet_event() 591 netdev_notifier_info_init(&info, in_dev->dev); in clip_inet_event()
|