/linux-6.1.9/include/linux/ |
D | inetdevice.h | 59 static inline int ipv4_devconf_get(struct in_device *in_dev, int index) in ipv4_devconf_get() argument 62 return in_dev->cnf.data[index]; in ipv4_devconf_get() 65 static inline void ipv4_devconf_set(struct in_device *in_dev, int index, in ipv4_devconf_set() argument 69 set_bit(index, in_dev->cnf.state); in ipv4_devconf_set() 70 in_dev->cnf.data[index] = val; in ipv4_devconf_set() 73 static inline void ipv4_devconf_setall(struct in_device *in_dev) in ipv4_devconf_setall() argument 75 bitmap_fill(in_dev->cnf.state, IPV4_DEVCONF_MAX); in ipv4_devconf_setall() 78 #define IN_DEV_CONF_GET(in_dev, attr) \ argument 79 ipv4_devconf_get((in_dev), IPV4_DEVCONF_ ## attr) 80 #define IN_DEV_CONF_SET(in_dev, attr, val) \ argument [all …]
|
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-6.1.9/net/ipv4/ |
D | igmp.c | 122 #define IGMP_V1_SEEN(in_dev) \ argument 123 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 1 || \ 124 IN_DEV_CONF_GET((in_dev), FORCE_IGMP_VERSION) == 1 || \ 125 ((in_dev)->mr_v1_seen && \ 126 time_before(jiffies, (in_dev)->mr_v1_seen))) 127 #define IGMP_V2_SEEN(in_dev) \ argument 128 (IPV4_DEVCONF_ALL(dev_net(in_dev->dev), FORCE_IGMP_VERSION) == 2 || \ 129 IN_DEV_CONF_GET((in_dev), FORCE_IGMP_VERSION) == 2 || \ 130 ((in_dev)->mr_v2_seen && \ 131 time_before(jiffies, (in_dev)->mr_v2_seen))) [all …]
|
D | devinet.c | 201 static void inet_del_ifa(struct in_device *in_dev, 257 struct in_device *in_dev; in inetdev_init() local 262 in_dev = kzalloc(sizeof(*in_dev), GFP_KERNEL); in inetdev_init() 263 if (!in_dev) in inetdev_init() 265 memcpy(&in_dev->cnf, dev_net(dev)->ipv4.devconf_dflt, in inetdev_init() 266 sizeof(in_dev->cnf)); in inetdev_init() 267 in_dev->cnf.sysctl = NULL; in inetdev_init() 268 in_dev->dev = dev; in inetdev_init() 269 in_dev->arp_parms = neigh_parms_alloc(dev, &arp_tbl); in inetdev_init() 270 if (!in_dev->arp_parms) in inetdev_init() [all …]
|
D | arp.c | 227 struct in_device *in_dev; in arp_constructor() local 236 in_dev = __in_dev_get_rcu(dev); in arp_constructor() 237 if (!in_dev) { in arp_constructor() 244 parms = in_dev->arp_parms; in arp_constructor() 340 struct in_device *in_dev; in arp_solicit() local 344 in_dev = __in_dev_get_rcu(dev); in arp_solicit() 345 if (!in_dev) { in arp_solicit() 349 switch (IN_DEV_ARP_ANNOUNCE(in_dev)) { in arp_solicit() 363 if (inet_addr_onlink(in_dev, target, saddr)) in arp_solicit() 396 static int arp_ignore(struct in_device *in_dev, __be32 sip, __be32 tip) in arp_ignore() argument [all …]
|
D | route.c | 744 struct in_device *in_dev; in __ip_do_redirect() local 763 in_dev = __in_dev_get_rcu(dev); in __ip_do_redirect() 764 if (!in_dev) in __ip_do_redirect() 768 if (new_gw == old_gw || !IN_DEV_RX_REDIRECTS(in_dev) || in __ip_do_redirect() 773 if (!IN_DEV_SHARED_MEDIA(in_dev)) { in __ip_do_redirect() 774 if (!inet_addr_onlink(in_dev, new_gw, old_gw)) in __ip_do_redirect() 776 if (IN_DEV_SEC_REDIRECTS(in_dev) && ip_fib_check_default(new_gw, dev)) in __ip_do_redirect() 809 if (IN_DEV_LOG_MARTIANS(in_dev)) { in __ip_do_redirect() 877 struct in_device *in_dev; in ip_rt_send_redirect() local 884 in_dev = __in_dev_get_rcu(rt->dst.dev); in ip_rt_send_redirect() [all …]
|
D | ip_input.c | 287 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_rcv_options() local 289 if (in_dev) { in ip_rcv_options() 290 if (!IN_DEV_SOURCE_ROUTE(in_dev)) { in ip_rcv_options() 291 if (IN_DEV_LOG_MARTIANS(in_dev)) in ip_rcv_options() 370 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_rcv_finish_core() local 372 if (in_dev && IN_DEV_ORCONF(in_dev, NOPOLICY)) in ip_rcv_finish_core() 397 struct in_device *in_dev = __in_dev_get_rcu(dev); in ip_rcv_finish_core() local 414 if (in_dev && in ip_rcv_finish_core() 415 IN_DEV_ORCONF(in_dev, DROP_UNICAST_IN_L2_MULTICAST)) { in ip_rcv_finish_core()
|
D | fib_frontend.c | 274 struct in_device *in_dev; in fib_compute_spec_dst() local 285 in_dev = __in_dev_get_rcu(dev); in fib_compute_spec_dst() 291 bool vmark = in_dev && IN_DEV_SRC_VMARK(in_dev); in fib_compute_spec_dst() 546 struct in_device *in_dev; in rtentry_to_fib_config() local 548 in_dev = __in_dev_get_rtnl(dev); in rtentry_to_fib_config() 549 if (!in_dev) in rtentry_to_fib_config() 555 in_dev_for_each_ifa_rcu(ifa, in_dev) { in rtentry_to_fib_config() 1108 struct in_device *in_dev = ifa->ifa_dev; in fib_add_ifaddr() local 1109 struct net_device *dev = in_dev->dev; in fib_add_ifaddr() 1116 prim = inet_ifa_byprefix(in_dev, prefix, mask); in fib_add_ifaddr() [all …]
|
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() 435 neigh_parms_data_state_setall(in_dev->arp_parms); in ipmr_init_vif_indev() 436 IPV4_DEVCONF(in_dev->cnf, RP_FILTER) = 0; in ipmr_init_vif_indev() 655 struct in_device *in_dev; in vif_delete() local 689 in_dev = __in_dev_get_rtnl(dev); in vif_delete() 690 if (in_dev) { in vif_delete() 691 IPV4_DEVCONF(in_dev->cnf, MC_FORWARDING)--; in vif_delete() [all …]
|
/linux-6.1.9/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-6.1.9/net/netfilter/ |
D | nf_conntrack_broadcast.c | 27 struct in_device *in_dev; in nf_conntrack_broadcast_help() local 39 in_dev = __in_dev_get_rcu(rt->dst.dev); in nf_conntrack_broadcast_help() 40 if (in_dev != NULL) { in nf_conntrack_broadcast_help() 43 in_dev_for_each_ifa_rcu(ifa, in_dev) { in nf_conntrack_broadcast_help()
|
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-6.1.9/drivers/net/wan/ |
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-6.1.9/drivers/parisc/ |
D | led.c | 367 struct in_device *in_dev = __in_dev_get_rcu(dev); in led_get_net_activity() 368 if (!in_dev || !in_dev->ifa_list) in led_get_net_activity() 370 if (ipv4_is_loopback(in_dev->ifa_list->ifa_local)) in led_get_net_activity()
|
/linux-6.1.9/net/bridge/ |
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()
|
D | br_netfilter_hooks.c | 369 struct in_device *in_dev = __in_dev_get_rcu(dev); in br_nf_pre_routing_finish() local 378 if (err != -EHOSTUNREACH || !in_dev || IN_DEV_FORWARD(in_dev)) in br_nf_pre_routing_finish()
|
/linux-6.1.9/drivers/net/plip/ |
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 = rtnl_dereference(in_dev->ifa_list); in plip_open()
|
/linux-6.1.9/include/net/ |
D | bonding.h | 636 struct in_device *in_dev; in bond_confirm_addr() local 640 in_dev = __in_dev_get_rcu(dev); in bond_confirm_addr() 642 if (in_dev) in bond_confirm_addr() 643 addr = inet_confirm_addr(dev_net(dev), in_dev, dst, local, in bond_confirm_addr()
|
/linux-6.1.9/drivers/infiniband/core/ |
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-6.1.9/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() 343 struct in_device *in_dev; in batadv_mcast_mla_softif_get_ipv4() local 353 in_dev = __in_dev_get_rcu(dev); in batadv_mcast_mla_softif_get_ipv4() 354 if (!in_dev) { in batadv_mcast_mla_softif_get_ipv4() 359 for (pmc = rcu_dereference(in_dev->mc_list); pmc; in batadv_mcast_mla_softif_get_ipv4()
|
/linux-6.1.9/net/core/ |
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-6.1.9/net/smc/ |
D | smc_clc.c | 482 struct in_device *in_dev = __in_dev_get_rcu(dst->dev); in smc_clc_prfx_set4_rcu() local 485 if (!in_dev) in smc_clc_prfx_set4_rcu() 488 in_dev_for_each_ifa_rcu(ifa, in_dev) { in smc_clc_prfx_set4_rcu() 577 struct in_device *in_dev = __in_dev_get_rcu(dev); in smc_clc_prfx_match4_rcu() local 580 if (!in_dev) in smc_clc_prfx_match4_rcu() 582 in_dev_for_each_ifa_rcu(ifa, in_dev) { in smc_clc_prfx_match4_rcu()
|
/linux-6.1.9/drivers/net/ethernet/via/ |
D | via-velocity.h | 1461 struct in_device *in_dev; in velocity_get_ip() local 1466 in_dev = __in_dev_get_rcu(vptr->netdev); in velocity_get_ip() 1467 if (in_dev != NULL) { in velocity_get_ip() 1468 ifa = rcu_dereference(in_dev->ifa_list); in velocity_get_ip()
|
/linux-6.1.9/net/atm/ |
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()
|