Lines Matching defs:netdev
1271 static void lan78xx_set_multicast(struct net_device *netdev)
1273 struct lan78xx_net *dev = netdev_priv(netdev);
1314 netdev_for_each_mc_addr(ha, netdev) {
1548 static int lan78xx_ethtool_get_eeprom_len(struct net_device *netdev)
1553 static int lan78xx_ethtool_get_eeprom(struct net_device *netdev,
1556 struct lan78xx_net *dev = netdev_priv(netdev);
1572 static int lan78xx_ethtool_set_eeprom(struct net_device *netdev,
1575 struct lan78xx_net *dev = netdev_priv(netdev);
1598 static void lan78xx_get_strings(struct net_device *netdev, u32 stringset,
1605 static int lan78xx_get_sset_count(struct net_device *netdev, int sset)
1613 static void lan78xx_get_stats(struct net_device *netdev,
1616 struct lan78xx_net *dev = netdev_priv(netdev);
1625 static void lan78xx_get_wol(struct net_device *netdev,
1628 struct lan78xx_net *dev = netdev_priv(netdev);
1653 static int lan78xx_set_wol(struct net_device *netdev,
1656 struct lan78xx_net *dev = netdev_priv(netdev);
1671 phy_ethtool_set_wol(netdev->phydev, wol);
1890 static int lan78xx_get_regs_len(struct net_device *netdev)
1892 if (!netdev->phydev)
1899 lan78xx_get_regs(struct net_device *netdev, struct ethtool_regs *regs,
1904 struct lan78xx_net *dev = netdev_priv(netdev);
1910 if (!netdev->phydev)
1915 data[i] = phy_read(netdev->phydev, j);
2515 static int lan78xx_change_mtu(struct net_device *netdev, int new_mtu)
2517 struct lan78xx_net *dev = netdev_priv(netdev);
2531 netdev->mtu = new_mtu;
2538 static int lan78xx_set_mac_addr(struct net_device *netdev, void *p)
2540 struct lan78xx_net *dev = netdev_priv(netdev);
2544 if (netif_running(netdev))
2550 eth_hw_addr_set(netdev, addr->sa_data);
2552 addr_lo = netdev->dev_addr[0] |
2553 netdev->dev_addr[1] << 8 |
2554 netdev->dev_addr[2] << 16 |
2555 netdev->dev_addr[3] << 24;
2556 addr_hi = netdev->dev_addr[4] |
2557 netdev->dev_addr[5] << 8;
2570 static int lan78xx_set_features(struct net_device *netdev,
2573 struct lan78xx_net *dev = netdev_priv(netdev);
2614 static int lan78xx_vlan_rx_add_vid(struct net_device *netdev,
2617 struct lan78xx_net *dev = netdev_priv(netdev);
2633 static int lan78xx_vlan_rx_kill_vid(struct net_device *netdev,
2636 struct lan78xx_net *dev = netdev_priv(netdev);
4275 struct net_device *netdev,
4278 struct lan78xx_net *dev = netdev_priv(netdev);
4317 struct net_device *netdev;
4327 netdev = alloc_etherdev(sizeof(struct lan78xx_net));
4328 if (!netdev) {
4335 SET_NETDEV_DEV(netdev, &intf->dev);
4337 dev = netdev_priv(netdev);
4340 dev->net = netdev;
4365 netdev->max_mtu = MAX_SINGLE_PACKET_SIZE;
4367 netif_set_tso_max_size(netdev, LAN78XX_TSO_SIZE(dev));
4369 netif_napi_add(netdev, &dev->napi, lan78xx_poll);
4374 netdev->netdev_ops = &lan78xx_netdev_ops;
4375 netdev->watchdog_timeo = TX_TIMEOUT_JIFFIES;
4376 netdev->ethtool_ops = &lan78xx_ethtool_ops;
4449 ret = register_netdev(netdev);
4451 netif_err(dev, probe, netdev, "couldn't register the device\n");
4468 phy_disconnect(netdev->phydev);
4481 free_netdev(netdev);