• Home
  • Raw
  • Download

Lines Matching refs:netdev

175 	struct net_device *netdev;  in xgbe_alloc_pdata()  local
177 netdev = alloc_etherdev_mq(sizeof(struct xgbe_prv_data), in xgbe_alloc_pdata()
179 if (!netdev) { in xgbe_alloc_pdata()
183 SET_NETDEV_DEV(netdev, dev); in xgbe_alloc_pdata()
184 pdata = netdev_priv(netdev); in xgbe_alloc_pdata()
185 pdata->netdev = netdev; in xgbe_alloc_pdata()
206 struct net_device *netdev = pdata->netdev; in xgbe_free_pdata() local
208 free_netdev(netdev); in xgbe_free_pdata()
264 struct net_device *netdev = pdata->netdev; in xgbe_config_netdev() local
268 netdev->irq = pdata->dev_irq; in xgbe_config_netdev()
269 netdev->base_addr = (unsigned long)pdata->xgmac_regs; in xgbe_config_netdev()
270 memcpy(netdev->dev_addr, pdata->mac_addr, netdev->addr_len); in xgbe_config_netdev()
338 netdev->netdev_ops = xgbe_get_netdev_ops(); in xgbe_config_netdev()
339 netdev->ethtool_ops = xgbe_get_ethtool_ops(); in xgbe_config_netdev()
341 netdev->dcbnl_ops = xgbe_get_dcbnl_ops(); in xgbe_config_netdev()
345 netdev->hw_features = NETIF_F_SG | in xgbe_config_netdev()
357 netdev->hw_features |= NETIF_F_RXHASH; in xgbe_config_netdev()
360 netdev->hw_enc_features = NETIF_F_SG | in xgbe_config_netdev()
370 netdev->hw_features |= NETIF_F_GSO_UDP_TUNNEL | in xgbe_config_netdev()
373 netdev->udp_tunnel_nic_info = xgbe_get_udp_tunnel_info(); in xgbe_config_netdev()
376 netdev->vlan_features |= NETIF_F_SG | in xgbe_config_netdev()
382 netdev->features |= netdev->hw_features; in xgbe_config_netdev()
383 pdata->netdev_features = netdev->features; in xgbe_config_netdev()
385 netdev->priv_flags |= IFF_UNICAST_FLT; in xgbe_config_netdev()
386 netdev->min_mtu = 0; in xgbe_config_netdev()
387 netdev->max_mtu = XGMAC_JUMBO_PACKET_MTU; in xgbe_config_netdev()
390 netdev->watchdog_timeo = 0; in xgbe_config_netdev()
395 netif_carrier_off(netdev); in xgbe_config_netdev()
396 ret = register_netdev(netdev); in xgbe_config_netdev()
407 netif_dbg(pdata, drv, pdata->netdev, "%u Tx software queues\n", in xgbe_config_netdev()
409 netif_dbg(pdata, drv, pdata->netdev, "%u Rx software queues\n", in xgbe_config_netdev()
417 struct net_device *netdev = pdata->netdev; in xgbe_deconfig_netdev() local
424 unregister_netdev(netdev); in xgbe_deconfig_netdev()
432 struct net_device *netdev = netdev_notifier_info_to_dev(data); in xgbe_netdev_event() local
433 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_netdev_event()
435 if (netdev->netdev_ops != xgbe_get_netdev_ops()) in xgbe_netdev_event()