Lines Matching refs:ndev
684 struct net_device *ndev; member
1659 static void keystone_get_drvinfo(struct net_device *ndev, in keystone_get_drvinfo() argument
1666 static u32 keystone_get_msglevel(struct net_device *ndev) in keystone_get_msglevel() argument
1668 struct netcp_intf *netcp = netdev_priv(ndev); in keystone_get_msglevel()
1673 static void keystone_set_msglevel(struct net_device *ndev, u32 value) in keystone_set_msglevel() argument
1675 struct netcp_intf *netcp = netdev_priv(ndev); in keystone_set_msglevel()
1680 static void keystone_get_stat_strings(struct net_device *ndev, in keystone_get_stat_strings() argument
1683 struct netcp_intf *netcp = netdev_priv(ndev); in keystone_get_stat_strings()
1706 static int keystone_get_sset_count(struct net_device *ndev, int stringset) in keystone_get_sset_count() argument
1708 struct netcp_intf *netcp = netdev_priv(ndev); in keystone_get_sset_count()
1822 static void keystone_get_ethtool_stats(struct net_device *ndev, in keystone_get_ethtool_stats() argument
1826 struct netcp_intf *netcp = netdev_priv(ndev); in keystone_get_ethtool_stats()
1843 static int keystone_get_settings(struct net_device *ndev, in keystone_get_settings() argument
1846 struct netcp_intf *netcp = netdev_priv(ndev); in keystone_get_settings()
1847 struct phy_device *phy = ndev->phydev; in keystone_get_settings()
1868 static int keystone_set_settings(struct net_device *ndev, in keystone_set_settings() argument
1871 struct netcp_intf *netcp = netdev_priv(ndev); in keystone_set_settings()
1872 struct phy_device *phy = ndev->phydev; in keystone_set_settings()
1926 struct net_device *ndev = gbe_intf->ndev; in gbe_set_slave_mac() local
1928 writel(mac_hi(ndev->dev_addr), GBE_REG_ADDR(slave, port_regs, sa_hi)); in gbe_set_slave_mac()
1929 writel(mac_lo(ndev->dev_addr), GBE_REG_ADDR(slave, port_regs, sa_lo)); in gbe_set_slave_mac()
1941 struct net_device *ndev, in netcp_ethss_link_state_action() argument
1965 if (ndev && slave->open && in netcp_ethss_link_state_action()
1968 netif_carrier_on(ndev); in netcp_ethss_link_state_action()
1975 if (ndev && in netcp_ethss_link_state_action()
1978 netif_carrier_off(ndev); in netcp_ethss_link_state_action()
1992 struct net_device *ndev) in netcp_ethss_update_link_state() argument
2009 netcp_ethss_link_state_action(gbe_dev, ndev, slave, in netcp_ethss_update_link_state()
2013 static void xgbe_adjust_link(struct net_device *ndev) in xgbe_adjust_link() argument
2015 struct netcp_intf *netcp = netdev_priv(ndev); in xgbe_adjust_link()
2023 ndev); in xgbe_adjust_link()
2026 static void gbe_adjust_link(struct net_device *ndev) in gbe_adjust_link() argument
2028 struct netcp_intf *netcp = netdev_priv(ndev); in gbe_adjust_link()
2036 ndev); in gbe_adjust_link()
2039 static void gbe_adjust_link_sec_slaves(struct net_device *ndev) in gbe_adjust_link_sec_slaves() argument
2041 struct gbe_priv *gbe_dev = netdev_priv(ndev); in gbe_adjust_link_sec_slaves()
2116 cpsw_ale_del_mcast(gbe_dev->ale, intf->ndev->broadcast, in gbe_slave_stop()
2154 cpsw_ale_add_mcast(priv->ale, gbe_intf->ndev->broadcast, in gbe_slave_open()
2171 slave->phy = of_phy_connect(gbe_intf->ndev, in gbe_slave_open()
2383 gbe_intf->ndev); in netcp_ethss_timer()
2413 static int gbe_open(void *intf_priv, struct net_device *ndev) in gbe_open() argument
2417 struct netcp_intf *netcp = netdev_priv(ndev); in gbe_open()
2464 netcp_ethss_update_link_state(gbe_dev, slave, ndev); in gbe_open()
2472 static int gbe_close(void *intf_priv, struct net_device *ndev) in gbe_close() argument
2475 struct netcp_intf *netcp = netdev_priv(ndev); in gbe_close()
3207 static int gbe_attach(void *inst_priv, struct net_device *ndev, in gbe_attach() argument
3223 gbe_intf->ndev = ndev; in gbe_attach()
3241 ndev->ethtool_ops = &keystone_ethtool_ops; in gbe_attach()
3258 gbe_intf->ndev->ethtool_ops = NULL; in gbe_release()