| /Linux-v5.4/include/linux/ |
| D | inetdevice.h | 57 static inline int ipv4_devconf_get(struct in_device *in_dev, int index) in ipv4_devconf_get() argument 60 return in_dev->cnf.data[index]; in ipv4_devconf_get() 63 static inline void ipv4_devconf_set(struct in_device *in_dev, int index, in ipv4_devconf_set() argument 67 set_bit(index, in_dev->cnf.state); in ipv4_devconf_set() 68 in_dev->cnf.data[index] = val; in ipv4_devconf_set() 71 static inline void ipv4_devconf_setall(struct in_device *in_dev) in ipv4_devconf_setall() argument 73 bitmap_fill(in_dev->cnf.state, IPV4_DEVCONF_MAX); in ipv4_devconf_setall() 76 #define IN_DEV_CONF_GET(in_dev, attr) \ argument 77 ipv4_devconf_get((in_dev), IPV4_DEVCONF_ ## attr) 78 #define IN_DEV_CONF_SET(in_dev, attr, val) \ argument [all …]
|
| D | igmp.h | 135 extern void __ip_mc_dec_group(struct in_device *in_dev, __be32 addr, gfp_t gfp); 136 static inline void ip_mc_dec_group(struct in_device *in_dev, __be32 addr) in ip_mc_dec_group() argument 138 return __ip_mc_dec_group(in_dev, addr, GFP_KERNEL); in ip_mc_dec_group() 140 extern void __ip_mc_inc_group(struct in_device *in_dev, __be32 addr, 142 extern void ip_mc_inc_group(struct in_device *in_dev, __be32 addr);
|
| /Linux-v5.4/net/ipv4/ |
| D | igmp.c | 124 #define IGMP_V1_SEEN(in_dev) \ argument 125 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 1 || \ 126 IN_DEV_CONF_GET((in_dev), FORCE_IGMP_VERSION) == 1 || \ 127 ((in_dev)->mr_v1_seen && \ 128 time_before(jiffies, (in_dev)->mr_v1_seen))) 129 #define IGMP_V2_SEEN(in_dev) \ argument 130 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 2 || \ 131 IN_DEV_CONF_GET((in_dev), FORCE_IGMP_VERSION) == 2 || \ 132 ((in_dev)->mr_v2_seen && \ 133 time_before(jiffies, (in_dev)->mr_v2_seen))) [all …]
|
| D | devinet.c | 198 static void inet_del_ifa(struct in_device *in_dev, 254 struct in_device *in_dev; in inetdev_init() local 259 in_dev = kzalloc(sizeof(*in_dev), GFP_KERNEL); in inetdev_init() 260 if (!in_dev) in inetdev_init() 262 memcpy(&in_dev->cnf, dev_net(dev)->ipv4.devconf_dflt, in inetdev_init() 263 sizeof(in_dev->cnf)); in inetdev_init() 264 in_dev->cnf.sysctl = NULL; in inetdev_init() 265 in_dev->dev = dev; in inetdev_init() 266 in_dev->arp_parms = neigh_parms_alloc(dev, &arp_tbl); in inetdev_init() 267 if (!in_dev->arp_parms) in inetdev_init() [all …]
|
| D | arp.c | 224 struct in_device *in_dev; in arp_constructor() local 233 in_dev = __in_dev_get_rcu(dev); in arp_constructor() 234 if (!in_dev) { in arp_constructor() 241 parms = in_dev->arp_parms; in arp_constructor() 337 struct in_device *in_dev; in arp_solicit() local 341 in_dev = __in_dev_get_rcu(dev); in arp_solicit() 342 if (!in_dev) { in arp_solicit() 346 switch (IN_DEV_ARP_ANNOUNCE(in_dev)) { in arp_solicit() 360 if (inet_addr_onlink(in_dev, target, saddr)) in arp_solicit() 393 static int arp_ignore(struct in_device *in_dev, __be32 sip, __be32 tip) in arp_ignore() argument [all …]
|
| D | route.c | 742 struct in_device *in_dev; in __ip_do_redirect() local 761 in_dev = __in_dev_get_rcu(dev); in __ip_do_redirect() 762 if (!in_dev) in __ip_do_redirect() 766 if (new_gw == old_gw || !IN_DEV_RX_REDIRECTS(in_dev) || in __ip_do_redirect() 771 if (!IN_DEV_SHARED_MEDIA(in_dev)) { in __ip_do_redirect() 772 if (!inet_addr_onlink(in_dev, new_gw, old_gw)) in __ip_do_redirect() 774 if (IN_DEV_SEC_REDIRECTS(in_dev) && ip_fib_check_default(new_gw, dev)) in __ip_do_redirect() 805 if (IN_DEV_LOG_MARTIANS(in_dev)) { in __ip_do_redirect() 873 struct in_device *in_dev; in ip_rt_send_redirect() local 880 in_dev = __in_dev_get_rcu(rt->dst.dev); in ip_rt_send_redirect() [all …]
|
| D | fib_frontend.c | 283 struct in_device *in_dev; in fib_compute_spec_dst() local 294 in_dev = __in_dev_get_rcu(dev); in fib_compute_spec_dst() 300 bool vmark = in_dev && IN_DEV_SRC_VMARK(in_dev); in fib_compute_spec_dst() 549 struct in_device *in_dev; in rtentry_to_fib_config() local 551 in_dev = __in_dev_get_rtnl(dev); in rtentry_to_fib_config() 552 if (!in_dev) in rtentry_to_fib_config() 558 in_dev_for_each_ifa_rcu(ifa, in_dev) { in rtentry_to_fib_config() 1099 struct in_device *in_dev = ifa->ifa_dev; in fib_add_ifaddr() local 1100 struct net_device *dev = in_dev->dev; in fib_add_ifaddr() 1107 prim = inet_ifa_byprefix(in_dev, prefix, mask); in fib_add_ifaddr() [all …]
|
| D | ip_input.c | 284 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_rcv_options() local 286 if (in_dev) { in ip_rcv_options() 287 if (!IN_DEV_SOURCE_ROUTE(in_dev)) { in ip_rcv_options() 288 if (IN_DEV_LOG_MARTIANS(in_dev)) in ip_rcv_options() 365 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_rcv_finish_core() local 382 if (in_dev && in ip_rcv_finish_core() 383 IN_DEV_ORCONF(in_dev, DROP_UNICAST_IN_L2_MULTICAST)) in ip_rcv_finish_core()
|
| D | ipmr.c | 454 struct in_device *in_dev; in ipmr_init_vif_indev() local 458 in_dev = __in_dev_get_rtnl(dev); in ipmr_init_vif_indev() 459 if (!in_dev) in ipmr_init_vif_indev() 461 ipv4_devconf_setall(in_dev); in ipmr_init_vif_indev() 462 neigh_parms_data_state_setall(in_dev->arp_parms); in ipmr_init_vif_indev() 463 IPV4_DEVCONF(in_dev->cnf, RP_FILTER) = 0; in ipmr_init_vif_indev() 673 struct in_device *in_dev; in vif_delete() local 710 in_dev = __in_dev_get_rtnl(dev); in vif_delete() 711 if (in_dev) { in vif_delete() 712 IPV4_DEVCONF(in_dev->cnf, MC_FORWARDING)--; in vif_delete() [all …]
|
| /Linux-v5.4/drivers/input/touchscreen/ |
| D | bu21029_ts.c | 157 struct input_dev *in_dev; member 169 s32 max_pressure = input_abs_get_max(bu21029->in_dev, ABS_PRESSURE); in bu21029_touch_report() 200 touchscreen_report_pos(bu21029->in_dev, &bu21029->prop, in bu21029_touch_report() 202 input_report_abs(bu21029->in_dev, ABS_PRESSURE, in bu21029_touch_report() 204 input_report_key(bu21029->in_dev, BTN_TOUCH, 1); in bu21029_touch_report() 205 input_sync(bu21029->in_dev); in bu21029_touch_report() 214 input_report_abs(bu21029->in_dev, ABS_PRESSURE, 0); in bu21029_touch_release() 215 input_report_key(bu21029->in_dev, BTN_TOUCH, 0); in bu21029_touch_release() 216 input_sync(bu21029->in_dev); in bu21029_touch_release() 338 struct input_dev *in_dev; in bu21029_probe() local [all …]
|
| 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 436 in_dev = devm_input_allocate_device(&client->dev); in bu21013_probe() 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() 451 input_set_abs_params(in_dev, ABS_MT_POSITION_X, 0, max_x, 0, 0); in bu21013_probe() [all …]
|
| /Linux-v5.4/net/netfilter/ |
| 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()
|
| /Linux-v5.4/drivers/staging/isdn/hysdn/ |
| D | hysdn_net.c | 62 struct in_device *in_dev; in net_open() local 72 if ((in_dev = dev->ip_ptr) != NULL) { in net_open() 76 ifa = rcu_dereference(in_dev->ifa_list); in net_open()
|
| /Linux-v5.4/drivers/net/wan/ |
| D | hdlc_cisco.c | 158 struct in_device *in_dev; in cisco_rx() local 191 in_dev = __in_dev_get_rcu(dev); in cisco_rx() 195 if (in_dev != NULL) { in cisco_rx() 198 in_dev_for_each_ifa_rcu(ifa, in_dev) { in cisco_rx()
|
| /Linux-v5.4/drivers/parisc/ |
| D | led.c | 365 struct in_device *in_dev = __in_dev_get_rcu(dev); in led_get_net_activity() 366 if (!in_dev || !in_dev->ifa_list) in led_get_net_activity() 368 if (ipv4_is_loopback(in_dev->ifa_list->ifa_local)) in led_get_net_activity()
|
| /Linux-v5.4/net/bridge/ |
| D | br_arp_nd_proxy.c | 94 struct in_device *in_dev; in br_chk_addr_ip() local 97 in_dev = __in_dev_get_rcu(dev); in br_chk_addr_ip() 98 if (in_dev) in br_chk_addr_ip() 99 addr = inet_confirm_addr(dev_net(dev), in_dev, 0, ip, in br_chk_addr_ip()
|
| /Linux-v5.4/net/smc/ |
| D | smc_clc.c | 99 struct in_device *in_dev = __in_dev_get_rcu(dst->dev); in smc_clc_prfx_set4_rcu() local 102 if (!in_dev) in smc_clc_prfx_set4_rcu() 105 in_dev_for_each_ifa_rcu(ifa, in_dev) { in smc_clc_prfx_set4_rcu() 194 struct in_device *in_dev = __in_dev_get_rcu(dev); in smc_clc_prfx_match4_rcu() local 197 if (!in_dev) in smc_clc_prfx_match4_rcu() 199 in_dev_for_each_ifa_rcu(ifa, in_dev) { in smc_clc_prfx_match4_rcu()
|
| /Linux-v5.4/drivers/net/plip/ |
| D | plip.c | 1005 const struct in_device *in_dev; in plip_rewrite_address() local 1008 in_dev = __in_dev_get_rcu(dev); in plip_rewrite_address() 1009 if (in_dev) { in plip_rewrite_address() 1011 const struct in_ifaddr *ifa = rcu_dereference(in_dev->ifa_list); in plip_rewrite_address() 1062 struct in_device *in_dev; in plip_open() local 1101 in_dev=__in_dev_get_rtnl(dev); in plip_open() 1102 if (in_dev) { in plip_open() 1106 const struct in_ifaddr *ifa = rcu_dereference(in_dev->ifa_list); in plip_open()
|
| /Linux-v5.4/include/net/ |
| D | bonding.h | 590 struct in_device *in_dev; in bond_confirm_addr() local 594 in_dev = __in_dev_get_rcu(dev); in bond_confirm_addr() 596 if (in_dev) in bond_confirm_addr() 597 addr = inet_confirm_addr(dev_net(dev), in_dev, dst, local, in bond_confirm_addr()
|
| /Linux-v5.4/net/core/ |
| D | netpoll.c | 641 struct in_device *in_dev; in netpoll_setup() local 701 in_dev = __in_dev_get_rtnl(ndev); in netpoll_setup() 702 if (!in_dev) in netpoll_setup() 705 ifa = rtnl_dereference(in_dev->ifa_list); in netpoll_setup()
|
| /Linux-v5.4/drivers/infiniband/core/ |
| D | roce_gid_mgmt.c | 334 struct in_device *in_dev; in enum_netdev_ipv4_ips() local 347 in_dev = __in_dev_get_rcu(ndev); in enum_netdev_ipv4_ips() 348 if (!in_dev) { in enum_netdev_ipv4_ips() 353 in_dev_for_each_ifa_rcu(ifa, in_dev) { in enum_netdev_ipv4_ips()
|
| /Linux-v5.4/net/batman-adv/ |
| D | multicast.c | 114 struct in_device *in_dev = __in_dev_get_rcu(dev); in batadv_mcast_mla_rtr_flags_softif_get_ipv4() local 116 if (in_dev && IN_DEV_MFORWARD(in_dev)) in batadv_mcast_mla_rtr_flags_softif_get_ipv4() 374 struct in_device *in_dev; in batadv_mcast_mla_softif_get_ipv4() local 384 in_dev = __in_dev_get_rcu(dev); in batadv_mcast_mla_softif_get_ipv4() 385 if (!in_dev) { in batadv_mcast_mla_softif_get_ipv4() 390 for (pmc = rcu_dereference(in_dev->mc_list); pmc; in batadv_mcast_mla_softif_get_ipv4()
|
| /Linux-v5.4/net/decnet/ |
| D | dn_route.c | 1302 struct net_device *in_dev = skb->dev; in dn_route_input_slow() local 1321 dev_hold(in_dev); in dn_route_input_slow() 1323 if ((dn_db = rcu_dereference(in_dev->dn_ptr)) == NULL) in dn_route_input_slow() 1338 if (dn_dev_islocal(in_dev, cb->src)) in dn_route_input_slow() 1348 if (!dn_dev_islocal(in_dev, cb->dst)) in dn_route_input_slow() 1402 if (out_dev == in_dev && !(flags & RTCF_NAT)) in dn_route_input_slow() 1459 rt->fld.flowidn_iif = in_dev->ifindex; in dn_route_input_slow() 1472 rt->dst.dev = in_dev; in dn_route_input_slow() 1496 dev_put(in_dev); in dn_route_input_slow()
|
| /Linux-v5.4/drivers/s390/net/ |
| D | qeth_l3_main.c | 1159 struct in_device *in_dev; in qeth_l3_add_vlan_mc() local 1175 in_dev = __in_dev_get_rcu(netdev); in qeth_l3_add_vlan_mc() 1176 if (!in_dev) in qeth_l3_add_vlan_mc() 1178 qeth_l3_add_mc_to_hash(card, in_dev); in qeth_l3_add_vlan_mc() 1243 struct inet6_dev *in_dev; in qeth_l3_add_vlan_mc6() local 1259 in_dev = in6_dev_get(netdev); in qeth_l3_add_vlan_mc6() 1260 if (!in_dev) in qeth_l3_add_vlan_mc6() 1262 read_lock_bh(&in_dev->lock); in qeth_l3_add_vlan_mc6() 1263 qeth_l3_add_mc6_to_hash(card, in_dev); in qeth_l3_add_vlan_mc6() 1264 read_unlock_bh(&in_dev->lock); in qeth_l3_add_vlan_mc6() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/via/ |
| D | via-velocity.h | 1505 struct in_device *in_dev; in velocity_get_ip() local 1510 in_dev = __in_dev_get_rcu(vptr->netdev); in velocity_get_ip() 1511 if (in_dev != NULL) { in velocity_get_ip() 1512 ifa = rcu_dereference(in_dev->ifa_list); in velocity_get_ip()
|