Home
last modified time | relevance | path

Searched refs:in_dev (Results 1 – 25 of 44) sorted by relevance

12

/linux-6.12.1/include/linux/
Dinetdevice.h61 static inline int ipv4_devconf_get(const struct in_device *in_dev, int index) in ipv4_devconf_get() argument
64 return READ_ONCE(in_dev->cnf.data[index]); in ipv4_devconf_get()
67 static inline void ipv4_devconf_set(struct in_device *in_dev, int index, in ipv4_devconf_set() argument
71 set_bit(index, in_dev->cnf.state); in ipv4_devconf_set()
72 WRITE_ONCE(in_dev->cnf.data[index], val); in ipv4_devconf_set()
75 static inline void ipv4_devconf_setall(struct in_device *in_dev) in ipv4_devconf_setall() argument
77 bitmap_fill(in_dev->cnf.state, IPV4_DEVCONF_MAX); in ipv4_devconf_setall()
80 #define IN_DEV_CONF_GET(in_dev, attr) \ argument
81 ipv4_devconf_get((in_dev), IPV4_DEVCONF_ ## attr)
82 #define IN_DEV_CONF_SET(in_dev, attr, val) \ argument
[all …]
Digmp.h133 extern void __ip_mc_dec_group(struct in_device *in_dev, __be32 addr, gfp_t gfp);
134 static inline void ip_mc_dec_group(struct in_device *in_dev, __be32 addr) in ip_mc_dec_group() argument
136 return __ip_mc_dec_group(in_dev, addr, GFP_KERNEL); in ip_mc_dec_group()
138 extern void __ip_mc_inc_group(struct in_device *in_dev, __be32 addr,
140 extern void ip_mc_inc_group(struct in_device *in_dev, __be32 addr);
/linux-6.12.1/net/ipv4/
Digmp.c122 #define IGMP_V1_SEEN(in_dev) \ argument
123 (IPV4_DEVCONF_ALL_RO(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_RO(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 …]
Ddevinet.c201 static void inet_del_ifa(struct in_device *in_dev,
219 static struct in_ifaddr *inet_alloc_ifa(struct in_device *in_dev) in inet_alloc_ifa() argument
227 in_dev_hold(in_dev); in inet_alloc_ifa()
228 ifa->ifa_dev = in_dev; in inet_alloc_ifa()
279 struct in_device *in_dev; in inetdev_init() local
284 in_dev = kzalloc(sizeof(*in_dev), GFP_KERNEL); in inetdev_init()
285 if (!in_dev) in inetdev_init()
287 memcpy(&in_dev->cnf, dev_net(dev)->ipv4.devconf_dflt, in inetdev_init()
288 sizeof(in_dev->cnf)); in inetdev_init()
289 in_dev->cnf.sysctl = NULL; in inetdev_init()
[all …]
Darp.c227 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 …]
Droute.c733 struct in_device *in_dev; in __ip_do_redirect() local
752 in_dev = __in_dev_get_rcu(dev); in __ip_do_redirect()
753 if (!in_dev) in __ip_do_redirect()
757 if (new_gw == old_gw || !IN_DEV_RX_REDIRECTS(in_dev) || in __ip_do_redirect()
762 if (!IN_DEV_SHARED_MEDIA(in_dev)) { in __ip_do_redirect()
763 if (!inet_addr_onlink(in_dev, new_gw, old_gw)) in __ip_do_redirect()
765 if (IN_DEV_SEC_REDIRECTS(in_dev) && ip_fib_check_default(new_gw, dev)) in __ip_do_redirect()
798 if (IN_DEV_LOG_MARTIANS(in_dev)) { in __ip_do_redirect()
859 struct in_device *in_dev; in ip_rt_send_redirect() local
866 in_dev = __in_dev_get_rcu(rt->dst.dev); in ip_rt_send_redirect()
[all …]
Dip_input.c287 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()
Dfib_frontend.c274 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()
1111 struct in_device *in_dev = ifa->ifa_dev; in fib_add_ifaddr() local
1112 struct net_device *dev = in_dev->dev; in fib_add_ifaddr()
1119 prim = inet_ifa_byprefix(in_dev, prefix, mask); in fib_add_ifaddr()
[all …]
Dipmr.c428 struct in_device *in_dev; in ipmr_init_vif_indev() local
432 in_dev = __in_dev_get_rtnl(dev); in ipmr_init_vif_indev()
433 if (!in_dev) in ipmr_init_vif_indev()
435 ipv4_devconf_setall(in_dev); in ipmr_init_vif_indev()
436 neigh_parms_data_state_setall(in_dev->arp_parms); in ipmr_init_vif_indev()
437 IPV4_DEVCONF(in_dev->cnf, RP_FILTER) = 0; in ipmr_init_vif_indev()
656 struct in_device *in_dev; in vif_delete() local
690 in_dev = __in_dev_get_rtnl(dev); in vif_delete()
691 if (in_dev) { in vif_delete()
692 IPV4_DEVCONF(in_dev->cnf, MC_FORWARDING)--; in vif_delete()
[all …]
Dicmp.c1046 struct in_device *in_dev; in icmp_build_probe() local
1131 in_dev = __in_dev_get_rcu(dev); in icmp_build_probe()
1132 if (in_dev && rcu_access_pointer(in_dev->ifa_list)) in icmp_build_probe()
/linux-6.12.1/drivers/input/touchscreen/
Dbu21029_ts.c157 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 …]
Dbu21013_ts.c159 struct input_dev *in_dev; member
188 struct input_dev *input = ts->in_dev; in bu21013_do_touch_report()
410 struct input_dev *in_dev; in bu21013_probe() local
436 in_dev = devm_input_allocate_device(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.12.1/net/netfilter/
Dnf_conntrack_broadcast.c27 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()
Dnfnetlink_osf.c34 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.12.1/drivers/net/wan/
Dhdlc_cisco.c147 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.12.1/net/bridge/
Dbr_arp_nd_proxy.c95 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-6.12.1/drivers/net/plip/
Dplip.c1013 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.12.1/include/net/
Dbonding.h654 struct in_device *in_dev; in bond_confirm_addr() local
658 in_dev = __in_dev_get_rcu(dev); in bond_confirm_addr()
660 if (in_dev) in bond_confirm_addr()
661 addr = inet_confirm_addr(dev_net(dev), in_dev, dst, local, in bond_confirm_addr()
/linux-6.12.1/net/batman-adv/
Dmulticast.c113 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()
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-6.12.1/drivers/infiniband/core/
Droce_gid_mgmt.c335 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.12.1/net/core/
Dnetpoll.c673 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.12.1/drivers/net/ethernet/via/
Dvia-velocity.h1461 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.12.1/net/smc/
Dsmc_clc.c507 struct in_device *in_dev = __in_dev_get_rcu(dst->dev); in smc_clc_prfx_set4_rcu() local
510 if (!in_dev) in smc_clc_prfx_set4_rcu()
513 in_dev_for_each_ifa_rcu(ifa, in_dev) { in smc_clc_prfx_set4_rcu()
602 struct in_device *in_dev = __in_dev_get_rcu(dev); in smc_clc_prfx_match4_rcu() local
605 if (!in_dev) in smc_clc_prfx_match4_rcu()
607 in_dev_for_each_ifa_rcu(ifa, in_dev) { in smc_clc_prfx_match4_rcu()
/linux-6.12.1/net/atm/
Dclip.c581 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()
/linux-6.12.1/drivers/media/test-drivers/vivid/
Dvivid-vid-out.c563 struct vivid_dev *in_dev = vivid_output_is_connected_to(dev); in vivid_s_fmt_vid_out() local
565 if (in_dev) { in vivid_s_fmt_vid_out()
566 vivid_send_source_change(in_dev, SVID); in vivid_s_fmt_vid_out()
567 vivid_send_source_change(in_dev, HDMI); in vivid_s_fmt_vid_out()

12