/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_config.c | 23 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 …]
|
D | rmnet_vnd.c | 52 if (priv->real_dev) { in rmnet_vnd_start_xmit() 79 port = rmnet_get_port_rtnl(priv->real_dev); in rmnet_vnd_change_mtu() 84 new_mtu > (priv->real_dev->mtu - headroom)) in rmnet_vnd_change_mtu() 95 return priv->real_dev->ifindex; in rmnet_vnd_get_iflink() 247 struct net_device *real_dev, in rmnet_vnd_newlink() argument 265 priv->real_dev = real_dev; in rmnet_vnd_newlink() 269 if (rmnet_vnd_change_mtu(rmnet_dev, real_dev->mtu - headroom)) { in rmnet_vnd_newlink() 316 int rmnet_vnd_validate_real_dev_mtu(struct net_device *real_dev) in rmnet_vnd_validate_real_dev_mtu() argument 324 port = rmnet_get_port_rtnl(real_dev); in rmnet_vnd_validate_real_dev_mtu() 329 if (ep->egress_dev->mtu > (real_dev->mtu - headroom)) in rmnet_vnd_validate_real_dev_mtu() [all …]
|
D | rmnet_vnd.h | 13 struct net_device *real_dev, 21 int rmnet_vnd_validate_real_dev_mtu(struct net_device *real_dev); 23 struct net_device *real_dev);
|
D | rmnet_config.h | 63 struct net_device *real_dev; member 69 struct rmnet_port *rmnet_get_port_rcu(struct net_device *real_dev); 77 rmnet_get_port_rtnl(const struct net_device *real_dev);
|
D | rmnet_handlers.c | 225 skb->dev = priv->real_dev; in rmnet_egress_handler()
|
/drivers/net/ |
D | macsec.c | 108 struct net_device *real_dev; member 343 if (!macsec || !macsec->real_dev) in macsec_check_offload() 347 return macsec->real_dev->phydev && in macsec_check_offload() 348 macsec->real_dev->phydev->macsec_ops; in macsec_check_offload() 350 return macsec->real_dev->features & NETIF_F_HW_MACSEC && in macsec_check_offload() 351 macsec->real_dev->macsec_ops; in macsec_check_offload() 365 ctx->phydev = macsec->real_dev->phydev; in __macsec_get_ops() 367 ctx->netdev = macsec->real_dev; in __macsec_get_ops() 371 return macsec->real_dev->phydev->macsec_ops; in __macsec_get_ops() 373 return macsec->real_dev->macsec_ops; in __macsec_get_ops() [all …]
|
D | macvlan.c | 833 struct net_device *real_dev = macvlan_dev_real_dev(dev); in macvlan_do_ioctl() local 834 const struct net_device_ops *ops = real_dev->netdev_ops; in macvlan_do_ioctl() 838 strscpy(ifrr.ifr_name, real_dev->name, IFNAMSIZ); in macvlan_do_ioctl() 847 if (netif_device_present(real_dev) && ops->ndo_do_ioctl) in macvlan_do_ioctl() 848 err = ops->ndo_do_ioctl(real_dev, &ifrr, cmd); in macvlan_do_ioctl() 1052 struct net_device *real_dev = macvlan_dev_real_dev(dev); in macvlan_ethtool_get_ts_info() local 1053 const struct ethtool_ops *ops = real_dev->ethtool_ops; in macvlan_ethtool_get_ts_info() 1054 struct phy_device *phydev = real_dev->phydev; in macvlan_ethtool_get_ts_info() 1059 return ops->get_ts_info(real_dev, info); in macvlan_ethtool_get_ts_info() 1097 struct net_device *real_dev = vlan->lowerdev; in macvlan_dev_netpoll_setup() local [all …]
|
/drivers/net/usb/ |
D | qmi_wwan.c | 73 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() 270 dev_hold(real_dev); in qmimux_register_device() 272 err = netdev_upper_dev_link(real_dev, new_dev, NULL); in qmimux_register_device() [all …]
|
/drivers/infiniband/core/ |
D | roce_gid_mgmt.c | 150 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() 301 struct net_device *real_dev = rdma_vlan_dev_real_dev(event_ndev); in bond_delete_netdev_default_gids() local 307 if (!real_dev) in bond_delete_netdev_default_gids() 308 real_dev = event_ndev; in bond_delete_netdev_default_gids() 314 is_eth_active_slave_of_bonding_rcu(rdma_ndev, real_dev) in bond_delete_netdev_default_gids()
|
/drivers/hwtracing/coresight/ |
D | coresight-tmc-etr.c | 166 struct device *real_dev = dev->parent; in tmc_pages_free() local 170 dma_unmap_page(real_dev, tmc_pages->daddrs[i], in tmc_pages_free() 198 struct device *real_dev = dev->parent; in tmc_pages_alloc() local 224 paddr = dma_map_page(real_dev, page, 0, PAGE_SIZE, dir); in tmc_pages_alloc() 225 if (dma_mapping_error(real_dev, paddr)) in tmc_pages_alloc() 358 struct device *real_dev = table->dev->parent; in tmc_sg_table_sync_data_range() local 364 dma_sync_single_for_cpu(real_dev, data->daddrs[index], in tmc_sg_table_sync_data_range() 374 struct device *real_dev = sg_table->dev->parent; in tmc_sg_table_sync_table() local 378 dma_sync_single_for_device(real_dev, table_pages->daddrs[i], in tmc_sg_table_sync_table() 603 struct device *real_dev = drvdata->csdev->dev.parent; in tmc_etr_alloc_flat_buf() local [all …]
|
/drivers/net/netdevsim/ |
D | ipsec.c | 88 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()
|
/drivers/net/wireless/microchip/wilc1000/ |
D | mon.c | 219 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()
|
D | cfg80211.h | 23 struct net_device *real_dev);
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun.c | 33 struct net_device *uplink_dev, *uplink_upper, *real_dev; in get_route_and_out_devs() local 37 real_dev = is_vlan_dev(dev) ? vlan_dev_real_dev(dev) : dev; in get_route_and_out_devs() 52 real_dev == uplink_upper && in get_route_and_out_devs() 61 if (!netdev_port_same_parent_id(priv->netdev, real_dev) || in get_route_and_out_devs()
|
/drivers/scsi/fcoe/ |
D | fcoe.c | 295 struct net_device *real_dev; in fcoe_interface_setup() local 317 real_dev = is_vlan_dev(netdev) ? vlan_dev_real_dev(netdev) : netdev; in fcoe_interface_setup() 318 fcoe->realdev = real_dev; in fcoe_interface_setup() 320 for_each_dev_addr(real_dev, ha) { in fcoe_interface_setup() 363 if (netdev != real_dev) { in fcoe_interface_setup() 366 fcoe->fip_vlan_packet_type.dev = real_dev; in fcoe_interface_setup() 1778 struct net_device *real_dev; in fcoe_hostlist_lookup_realdev_port() local 1782 real_dev = vlan_dev_real_dev(fcoe->netdev); in fcoe_hostlist_lookup_realdev_port() 1784 real_dev = fcoe->netdev; in fcoe_hostlist_lookup_realdev_port() 1786 if (netdev == real_dev) in fcoe_hostlist_lookup_realdev_port()
|
/drivers/infiniband/hw/bnxt_re/ |
D | main.c | 1702 struct net_device *real_dev, *netdev = netdev_notifier_info_to_dev(ptr); in bnxt_re_netdev_event() local 1709 real_dev = rdma_vlan_dev_real_dev(netdev); in bnxt_re_netdev_event() 1710 if (!real_dev) in bnxt_re_netdev_event() 1711 real_dev = netdev; in bnxt_re_netdev_event() 1713 rdev = bnxt_re_from_netdev(real_dev); in bnxt_re_netdev_event() 1717 if (real_dev != netdev) in bnxt_re_netdev_event() 1724 rc = bnxt_re_add_device(&rdev, real_dev, in bnxt_re_netdev_event() 1746 re_work->vlan_dev = (real_dev == netdev ? in bnxt_re_netdev_event()
|
/drivers/net/ethernet/intel/ixgbevf/ |
D | ipsec.c | 214 struct net_device *dev = xs->xso.real_dev; in ixgbevf_ipsec_parse_proto_keys() 263 struct net_device *dev = xs->xso.real_dev; in ixgbevf_ipsec_add_sa() 389 struct net_device *dev = xs->xso.real_dev; in ixgbevf_ipsec_del_sa()
|
/drivers/net/bonding/ |
D | bond_main.c | 417 xs->xso.real_dev = slave->dev; in bond_ipsec_add_sa() 458 ipsec->xs->xso.real_dev = slave->dev; in bond_ipsec_add_sa_all() 461 ipsec->xs->xso.real_dev = NULL; in bond_ipsec_add_sa_all() 490 if (!xs->xso.real_dev) in bond_ipsec_del_sa() 493 WARN_ON(xs->xso.real_dev != slave->dev); in bond_ipsec_del_sa() 531 if (!ipsec->xs->xso.real_dev) in bond_ipsec_del_sa_all() 543 ipsec->xs->xso.real_dev = NULL; in bond_ipsec_del_sa_all() 557 struct net_device *real_dev; in bond_ipsec_offload_ok() local 565 real_dev = curr_active->dev; in bond_ipsec_offload_ok() 572 if (!xs->xso.real_dev) { in bond_ipsec_offload_ok() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec.c | 209 struct net_device *netdev = x->xso.real_dev; in mlx5e_xfrm_validate_state() 308 struct net_device *netdev = x->xso.real_dev; in mlx5e_xfrm_add_state()
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ipsec.c | 430 struct net_device *dev = xs->xso.real_dev; in ixgbe_ipsec_parse_proto_keys() 480 struct net_device *dev = xs->xso.real_dev; in ixgbe_ipsec_check_mgmt_ip() 563 struct net_device *dev = xs->xso.real_dev; in ixgbe_ipsec_add_sa() 753 struct net_device *dev = xs->xso.real_dev; in ixgbe_ipsec_del_sa()
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_span.c | 633 struct net_device *real_dev; in mlxsw_sp_span_entry_vlan_parms() local 639 real_dev = mlxsw_sp_span_entry_vlan(to_dev, &vid); in mlxsw_sp_span_entry_vlan_parms() 640 sparmsp->dest_port = netdev_priv(real_dev); in mlxsw_sp_span_entry_vlan_parms()
|
D | spectrum.c | 4146 struct net_device *real_dev = vlan_dev_real_dev(vlan_dev); in mlxsw_sp_netdevice_vlan_event() local 4149 if (mlxsw_sp_port_dev_check(real_dev)) in mlxsw_sp_netdevice_vlan_event() 4150 return mlxsw_sp_netdevice_port_vlan_event(vlan_dev, real_dev, in mlxsw_sp_netdevice_vlan_event() 4152 else if (netif_is_lag_master(real_dev)) in mlxsw_sp_netdevice_vlan_event() 4154 real_dev, event, in mlxsw_sp_netdevice_vlan_event() 4156 else if (netif_is_bridge_master(real_dev)) in mlxsw_sp_netdevice_vlan_event() 4157 return mlxsw_sp_netdevice_bridge_vlan_event(vlan_dev, real_dev, in mlxsw_sp_netdevice_vlan_event()
|
D | spectrum_router.c | 6855 struct net_device *real_dev = vlan_dev_real_dev(vlan_dev); in mlxsw_sp_inetaddr_vlan_event() local 6861 if (mlxsw_sp_port_dev_check(real_dev)) in mlxsw_sp_inetaddr_vlan_event() 6862 return mlxsw_sp_inetaddr_port_vlan_event(vlan_dev, real_dev, in mlxsw_sp_inetaddr_vlan_event() 6864 else if (netif_is_lag_master(real_dev)) in mlxsw_sp_inetaddr_vlan_event() 6865 return __mlxsw_sp_inetaddr_lag_event(vlan_dev, real_dev, event, in mlxsw_sp_inetaddr_vlan_event() 6867 else if (netif_is_bridge_master(real_dev) && br_vlan_enabled(real_dev)) in mlxsw_sp_inetaddr_vlan_event()
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_tc.c | 1247 if (vlan->real_dev != real_dst_dev) { in bnxt_tc_resolve_tunnel_hdrs()
|