Home
last modified time | relevance | path

Searched refs:real_dev (Results 1 – 25 of 36) sorted by relevance

12

/linux-6.1.9/net/8021q/
Dvlan_dev.c81 dev = vlan->real_dev; in vlan_dev_hard_header()
119 skb->dev = vlan->real_dev; in vlan_dev_hard_start_xmit()
143 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; in vlan_dev_change_mtu() local
144 unsigned int max_mtu = real_dev->mtu; in vlan_dev_change_mtu()
146 if (netif_reduces_vlan_mtu(real_dev)) in vlan_dev_change_mtu()
244 strscpy_pad(result, vlan_dev_priv(dev)->real_dev->name, size); in vlan_dev_get_realdev_name()
248 struct net_device *real_dev) in vlan_dev_inherit_address() argument
253 eth_hw_addr_set(dev, real_dev->dev_addr); in vlan_dev_inherit_address()
261 struct net_device *real_dev = vlan->real_dev; in vlan_dev_open() local
264 if (!(real_dev->flags & IFF_UP) && in vlan_dev_open()
[all …]
Dvlan.c92 struct net_device *real_dev = vlan->real_dev; in unregister_vlan_dev() local
99 vlan_info = rtnl_dereference(real_dev->vlan_info); in unregister_vlan_dev()
113 netdev_upper_dev_unlink(real_dev, dev); in unregister_vlan_dev()
121 vlan_mvrp_uninit_applicant(real_dev); in unregister_vlan_dev()
122 vlan_gvrp_uninit_applicant(real_dev); in unregister_vlan_dev()
125 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in unregister_vlan_dev()
128 int vlan_check_real_dev(struct net_device *real_dev, in vlan_check_real_dev() argument
132 const char *name = real_dev->name; in vlan_check_real_dev()
134 if (real_dev->features & NETIF_F_VLAN_CHALLENGED) { in vlan_check_real_dev()
140 if (vlan_find_dev(real_dev, protocol, vlan_id) != NULL) { in vlan_check_real_dev()
[all …]
Dvlan_netlink.c141 struct net_device *real_dev; in vlan_newlink() local
156 real_dev = __dev_get_by_index(src_net, nla_get_u32(tb[IFLA_LINK])); in vlan_newlink()
157 if (!real_dev) { in vlan_newlink()
169 vlan->real_dev = real_dev; in vlan_newlink()
170 dev->priv_flags |= (real_dev->priv_flags & IFF_XMIT_DST_RELEASE); in vlan_newlink()
173 err = vlan_check_real_dev(real_dev, vlan->vlan_proto, vlan->vlan_id, in vlan_newlink()
178 max_mtu = netif_reduces_vlan_mtu(real_dev) ? real_dev->mtu - VLAN_HLEN : in vlan_newlink()
179 real_dev->mtu; in vlan_newlink()
282 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; in vlan_get_link_net() local
284 return dev_net(real_dev); in vlan_get_link_net()
Dvlan.h30 struct net_device *real_dev; /* The ethernet(like) device member
94 static inline struct net_device *vlan_find_dev(struct net_device *real_dev, in vlan_find_dev() argument
97 struct vlan_info *vlan_info = rcu_dereference_rtnl(real_dev->vlan_info); in vlan_find_dev()
106 static inline netdev_features_t vlan_tnl_features(struct net_device *real_dev) in vlan_tnl_features() argument
110 ret = real_dev->hw_enc_features & in vlan_tnl_features()
137 int vlan_check_real_dev(struct net_device *real_dev,
144 struct net_device *real_dev);
Dvlan_core.c104 struct net_device *ret = vlan_dev_priv(dev)->real_dev; in vlan_dev_real_dev()
107 ret = vlan_dev_priv(ret)->real_dev; in vlan_dev_real_dev()
157 vlan_info->real_dev = dev; in vlan_info_alloc()
256 struct net_device *real_dev = vlan_info->real_dev; in vlan_filter_push_vids() local
262 err = vlan_add_rx_filter_info(real_dev, proto, in vlan_filter_push_vids()
275 vlan_kill_rx_filter_info(real_dev, proto, in vlan_filter_push_vids()
289 vlan_kill_rx_filter_info(vlan_info->real_dev, in vlan_filter_drop_vids()
298 struct net_device *dev = vlan_info->real_dev; in __vlan_vid_add()
357 struct net_device *dev = vlan_info->real_dev; in __vlan_vid_del()
Dvlan_gvrp.c34 return garp_request_join(vlan->real_dev, &vlan_gvrp_app, in vlan_gvrp_request_join()
45 garp_request_leave(vlan->real_dev, &vlan_gvrp_app, in vlan_gvrp_request_leave()
Dvlan_mvrp.c40 return mrp_request_join(vlan->real_dev, &vlan_mrp_app, in vlan_mvrp_request_join()
51 mrp_request_leave(vlan->real_dev, &vlan_mrp_app, in vlan_mvrp_request_leave()
Dvlanproc.c236 vlan->vlan_id, vlan->real_dev->name); in vlan_seq_show()
265 seq_printf(seq, "Device: %s", vlan->real_dev->name); in vlandev_seq_show()
/linux-6.1.9/drivers/net/ethernet/qualcomm/rmnet/
Drmnet_config.c23 static int rmnet_is_real_dev_registered(const struct net_device *real_dev) in rmnet_is_real_dev_registered() argument
25 return rcu_access_pointer(real_dev->rx_handler) == rmnet_rx_handler; in rmnet_is_real_dev_registered()
30 rmnet_get_port_rtnl(const struct net_device *real_dev) in rmnet_get_port_rtnl() argument
32 return rtnl_dereference(real_dev->rx_handler_data); in rmnet_get_port_rtnl()
35 static int rmnet_unregister_real_device(struct net_device *real_dev) in rmnet_unregister_real_device() argument
37 struct rmnet_port *port = rmnet_get_port_rtnl(real_dev); in rmnet_unregister_real_device()
42 netdev_rx_handler_unregister(real_dev); in rmnet_unregister_real_device()
46 netdev_dbg(real_dev, "Removed from rmnet\n"); in rmnet_unregister_real_device()
50 static int rmnet_register_real_device(struct net_device *real_dev, in rmnet_register_real_device() argument
58 if (rmnet_is_real_dev_registered(real_dev)) { in rmnet_register_real_device()
[all …]
Drmnet_vnd.c53 if (priv->real_dev) { in rmnet_vnd_start_xmit()
80 port = rmnet_get_port_rtnl(priv->real_dev); in rmnet_vnd_change_mtu()
85 new_mtu > (priv->real_dev->mtu - headroom)) in rmnet_vnd_change_mtu()
96 return priv->real_dev->ifindex; in rmnet_vnd_get_iflink()
250 struct net_device *real_dev, in rmnet_vnd_newlink() argument
268 priv->real_dev = real_dev; in rmnet_vnd_newlink()
272 if (rmnet_vnd_change_mtu(rmnet_dev, real_dev->mtu - headroom)) { in rmnet_vnd_newlink()
319 int rmnet_vnd_validate_real_dev_mtu(struct net_device *real_dev) in rmnet_vnd_validate_real_dev_mtu() argument
327 port = rmnet_get_port_rtnl(real_dev); in rmnet_vnd_validate_real_dev_mtu()
332 if (ep->egress_dev->mtu > (real_dev->mtu - headroom)) in rmnet_vnd_validate_real_dev_mtu()
[all …]
Drmnet_vnd.h13 struct net_device *real_dev,
21 int rmnet_vnd_validate_real_dev_mtu(struct net_device *real_dev);
23 struct net_device *real_dev);
Drmnet_config.h66 struct net_device *real_dev; member
72 struct rmnet_port *rmnet_get_port_rcu(struct net_device *real_dev);
80 rmnet_get_port_rtnl(const struct net_device *real_dev);
/linux-6.1.9/drivers/net/
Dmacsec.c99 struct net_device *real_dev; member
339 if (!macsec || !macsec->real_dev) in macsec_check_offload()
343 return macsec->real_dev->phydev && in macsec_check_offload()
344 macsec->real_dev->phydev->macsec_ops; in macsec_check_offload()
346 return macsec->real_dev->features & NETIF_F_HW_MACSEC && in macsec_check_offload()
347 macsec->real_dev->macsec_ops; in macsec_check_offload()
361 ctx->phydev = macsec->real_dev->phydev; in __macsec_get_ops()
363 ctx->netdev = macsec->real_dev; in __macsec_get_ops()
367 return macsec->real_dev->phydev->macsec_ops; in __macsec_get_ops()
369 return macsec->real_dev->macsec_ops; in __macsec_get_ops()
[all …]
Dmacvlan.c839 struct net_device *real_dev = macvlan_dev_real_dev(dev); in macvlan_eth_ioctl() local
840 const struct net_device_ops *ops = real_dev->netdev_ops; in macvlan_eth_ioctl()
844 strscpy(ifrr.ifr_name, real_dev->name, IFNAMSIZ); in macvlan_eth_ioctl()
853 if (netif_device_present(real_dev) && ops->ndo_eth_ioctl) in macvlan_eth_ioctl()
854 err = ops->ndo_eth_ioctl(real_dev, &ifrr, cmd); in macvlan_eth_ioctl()
1061 struct net_device *real_dev = macvlan_dev_real_dev(dev); in macvlan_ethtool_get_ts_info() local
1062 const struct ethtool_ops *ops = real_dev->ethtool_ops; in macvlan_ethtool_get_ts_info()
1063 struct phy_device *phydev = real_dev->phydev; in macvlan_ethtool_get_ts_info()
1068 return ops->get_ts_info(real_dev, info); in macvlan_ethtool_get_ts_info()
1106 struct net_device *real_dev = vlan->lowerdev; in macvlan_dev_netpoll_setup() local
[all …]
/linux-6.1.9/drivers/net/usb/
Dqmi_wwan.c74 struct net_device *real_dev; member
81 struct net_device *real_dev = priv->real_dev; in qmimux_open() local
83 if (!(priv->real_dev->flags & IFF_UP)) in qmimux_open()
86 if (netif_carrier_ok(real_dev)) in qmimux_open()
108 skb->dev = priv->real_dev; in qmimux_start_xmit()
243 static int qmimux_register_device(struct net_device *real_dev, u8 mux_id) in qmimux_register_device() argument
254 dev_net_set(new_dev, dev_net(real_dev)); in qmimux_register_device()
257 priv->real_dev = real_dev; in qmimux_register_device()
272 dev_hold(real_dev); in qmimux_register_device()
274 err = netdev_upper_dev_link(real_dev, new_dev, NULL); in qmimux_register_device()
[all …]
/linux-6.1.9/drivers/infiniband/core/
Droce_gid_mgmt.c150 struct net_device *real_dev; in is_eth_port_of_netdev_filter() local
157 real_dev = rdma_vlan_dev_real_dev(cookie); in is_eth_port_of_netdev_filter()
158 if (!real_dev) in is_eth_port_of_netdev_filter()
159 real_dev = cookie; in is_eth_port_of_netdev_filter()
162 (is_eth_active_slave_of_bonding_rcu(rdma_ndev, real_dev) & in is_eth_port_of_netdev_filter()
164 real_dev == rdma_ndev); in is_eth_port_of_netdev_filter()
302 struct net_device *real_dev = rdma_vlan_dev_real_dev(event_ndev); in bond_delete_netdev_default_gids() local
308 if (!real_dev) in bond_delete_netdev_default_gids()
309 real_dev = event_ndev; in bond_delete_netdev_default_gids()
315 is_eth_active_slave_of_bonding_rcu(rdma_ndev, real_dev) in bond_delete_netdev_default_gids()
/linux-6.1.9/drivers/hwtracing/coresight/
Dcoresight-tmc-etr.c163 struct device *real_dev = dev->parent; in tmc_pages_free() local
167 dma_unmap_page(real_dev, tmc_pages->daddrs[i], in tmc_pages_free()
195 struct device *real_dev = dev->parent; in tmc_pages_alloc() local
221 paddr = dma_map_page(real_dev, page, 0, PAGE_SIZE, dir); in tmc_pages_alloc()
222 if (dma_mapping_error(real_dev, paddr)) in tmc_pages_alloc()
355 struct device *real_dev = table->dev->parent; in tmc_sg_table_sync_data_range() local
361 dma_sync_single_for_cpu(real_dev, data->daddrs[index], in tmc_sg_table_sync_data_range()
371 struct device *real_dev = sg_table->dev->parent; in tmc_sg_table_sync_table() local
375 dma_sync_single_for_device(real_dev, table_pages->daddrs[i], in tmc_sg_table_sync_table()
600 struct device *real_dev = drvdata->csdev->dev.parent; in tmc_etr_alloc_flat_buf() local
[all …]
/linux-6.1.9/drivers/infiniband/hw/irdma/
Dutils.c153 struct net_device *real_dev, *netdev = ifa->ifa_dev->dev; in irdma_inetaddr_event() local
158 real_dev = rdma_vlan_dev_real_dev(netdev); in irdma_inetaddr_event()
159 if (!real_dev) in irdma_inetaddr_event()
160 real_dev = netdev; in irdma_inetaddr_event()
162 ibdev = ib_device_get_by_netdev(real_dev, RDMA_DRIVER_IRDMA); in irdma_inetaddr_event()
169 "DEV: netdev %p event %lu local_ip=%pI4 MAC=%pM\n", real_dev, in irdma_inetaddr_event()
170 event, &local_ipaddr, real_dev->dev_addr); in irdma_inetaddr_event()
173 irdma_manage_arp_cache(iwdev->rf, real_dev->dev_addr, in irdma_inetaddr_event()
175 irdma_if_notify(iwdev, real_dev, &local_ipaddr, true, false); in irdma_inetaddr_event()
180 irdma_add_arp(iwdev->rf, &local_ipaddr, true, real_dev->dev_addr); in irdma_inetaddr_event()
[all …]
/linux-6.1.9/drivers/net/netdevsim/
Dipsec.c88 struct net_device *dev = xs->xso.real_dev; in nsim_ipsec_parse_proto_keys()
137 dev = xs->xso.real_dev; in nsim_ipsec_add_sa()
197 struct netdevsim *ns = netdev_priv(xs->xso.real_dev); in nsim_ipsec_del_sa()
214 struct netdevsim *ns = netdev_priv(xs->xso.real_dev); in nsim_ipsec_offload_ok()
/linux-6.1.9/drivers/net/wireless/microchip/wilc1000/
Dmon.c219 struct net_device *real_dev) in wilc_wfi_init_mon_interface() argument
237 netdev_err(real_dev, "register_netdevice failed\n"); in wilc_wfi_init_mon_interface()
243 priv->real_ndev = real_dev; in wilc_wfi_init_mon_interface()
Dcfg80211.h23 struct net_device *real_dev);
/linux-6.1.9/include/linux/
Dif_vlan.h133 extern struct net_device *__vlan_find_dev_deep_rcu(struct net_device *real_dev,
182 struct net_device *real_dev; member
232 __vlan_find_dev_deep_rcu(struct net_device *real_dev, in __vlan_find_dev_deep_rcu() argument
/linux-6.1.9/net/xfrm/
Dxfrm_device.c136 if ((x->xso.dev != dev) && (x->xso.real_dev == dev)) in validate_xmit_xfrm()
287 xso->real_dev = dev; in xfrm_dev_state_add()
298 xso->real_dev = NULL; in xfrm_dev_state_add()
/linux-6.1.9/drivers/net/bonding/
Dbond_main.c455 xs->xso.real_dev = slave->dev; in bond_ipsec_add_sa()
496 ipsec->xs->xso.real_dev = slave->dev; in bond_ipsec_add_sa_all()
499 ipsec->xs->xso.real_dev = NULL; in bond_ipsec_add_sa_all()
528 if (!xs->xso.real_dev) in bond_ipsec_del_sa()
531 WARN_ON(xs->xso.real_dev != slave->dev); in bond_ipsec_del_sa()
569 if (!ipsec->xs->xso.real_dev) in bond_ipsec_del_sa_all()
581 ipsec->xs->xso.real_dev = NULL; in bond_ipsec_del_sa_all()
595 struct net_device *real_dev; in bond_ipsec_offload_ok() local
603 real_dev = curr_active->dev; in bond_ipsec_offload_ok()
610 if (!xs->xso.real_dev) { in bond_ipsec_offload_ok()
[all …]
/linux-6.1.9/drivers/infiniband/hw/bnxt_re/
Dmain.c1692 struct net_device *real_dev, *netdev = netdev_notifier_info_to_dev(ptr); in bnxt_re_netdev_event() local
1699 real_dev = rdma_vlan_dev_real_dev(netdev); in bnxt_re_netdev_event()
1700 if (!real_dev) in bnxt_re_netdev_event()
1701 real_dev = netdev; in bnxt_re_netdev_event()
1703 rdev = bnxt_re_from_netdev(real_dev); in bnxt_re_netdev_event()
1707 if (real_dev != netdev) in bnxt_re_netdev_event()
1714 rc = bnxt_re_add_device(&rdev, real_dev, in bnxt_re_netdev_event()
1736 re_work->vlan_dev = (real_dev == netdev ? in bnxt_re_netdev_event()

12