Lines Matching refs:ndev

685 	struct net_device	*ndev;  member
1489 static void keystone_get_drvinfo(struct net_device *ndev, in keystone_get_drvinfo() argument
1496 static u32 keystone_get_msglevel(struct net_device *ndev) in keystone_get_msglevel() argument
1498 struct netcp_intf *netcp = netdev_priv(ndev); in keystone_get_msglevel()
1503 static void keystone_set_msglevel(struct net_device *ndev, u32 value) in keystone_set_msglevel() argument
1505 struct netcp_intf *netcp = netdev_priv(ndev); in keystone_set_msglevel()
1510 static void keystone_get_stat_strings(struct net_device *ndev, in keystone_get_stat_strings() argument
1513 struct netcp_intf *netcp = netdev_priv(ndev); in keystone_get_stat_strings()
1536 static int keystone_get_sset_count(struct net_device *ndev, int stringset) in keystone_get_sset_count() argument
1538 struct netcp_intf *netcp = netdev_priv(ndev); in keystone_get_sset_count()
1625 static void keystone_get_ethtool_stats(struct net_device *ndev, in keystone_get_ethtool_stats() argument
1629 struct netcp_intf *netcp = netdev_priv(ndev); in keystone_get_ethtool_stats()
1646 static int keystone_get_settings(struct net_device *ndev, in keystone_get_settings() argument
1649 struct netcp_intf *netcp = netdev_priv(ndev); in keystone_get_settings()
1650 struct phy_device *phy = ndev->phydev; in keystone_get_settings()
1671 static int keystone_set_settings(struct net_device *ndev, in keystone_set_settings() argument
1674 struct netcp_intf *netcp = netdev_priv(ndev); in keystone_set_settings()
1675 struct phy_device *phy = ndev->phydev; in keystone_set_settings()
1729 struct net_device *ndev = gbe_intf->ndev; in gbe_set_slave_mac() local
1731 writel(mac_hi(ndev->dev_addr), GBE_REG_ADDR(slave, port_regs, sa_hi)); in gbe_set_slave_mac()
1732 writel(mac_lo(ndev->dev_addr), GBE_REG_ADDR(slave, port_regs, sa_lo)); in gbe_set_slave_mac()
1744 struct net_device *ndev, in netcp_ethss_link_state_action() argument
1768 if (ndev && slave->open && in netcp_ethss_link_state_action()
1771 netif_carrier_on(ndev); in netcp_ethss_link_state_action()
1778 if (ndev && in netcp_ethss_link_state_action()
1781 netif_carrier_off(ndev); in netcp_ethss_link_state_action()
1795 struct net_device *ndev) in netcp_ethss_update_link_state() argument
1817 netcp_ethss_link_state_action(gbe_dev, ndev, slave, in netcp_ethss_update_link_state()
1821 static void xgbe_adjust_link(struct net_device *ndev) in xgbe_adjust_link() argument
1823 struct netcp_intf *netcp = netdev_priv(ndev); in xgbe_adjust_link()
1831 ndev); in xgbe_adjust_link()
1834 static void gbe_adjust_link(struct net_device *ndev) in gbe_adjust_link() argument
1836 struct netcp_intf *netcp = netdev_priv(ndev); in gbe_adjust_link()
1844 ndev); in gbe_adjust_link()
1847 static void gbe_adjust_link_sec_slaves(struct net_device *ndev) in gbe_adjust_link_sec_slaves() argument
1849 struct gbe_priv *gbe_dev = netdev_priv(ndev); in gbe_adjust_link_sec_slaves()
1913 cpsw_ale_del_mcast(gbe_dev->ale, intf->ndev->broadcast, in gbe_slave_stop()
1955 cpsw_ale_add_mcast(priv->ale, gbe_intf->ndev->broadcast, in gbe_slave_open()
1972 slave->phy = of_phy_connect(gbe_intf->ndev, in gbe_slave_open()
2184 gbe_intf->ndev); in netcp_ethss_timer()
2213 static int gbe_open(void *intf_priv, struct net_device *ndev) in gbe_open() argument
2217 struct netcp_intf *netcp = netdev_priv(ndev); in gbe_open()
2264 netcp_ethss_update_link_state(gbe_dev, slave, ndev); in gbe_open()
2272 static int gbe_close(void *intf_priv, struct net_device *ndev) in gbe_close() argument
2275 struct netcp_intf *netcp = netdev_priv(ndev); in gbe_close()
2957 static int gbe_attach(void *inst_priv, struct net_device *ndev, in gbe_attach() argument
2973 gbe_intf->ndev = ndev; in gbe_attach()
2991 ndev->ethtool_ops = &keystone_ethtool_ops; in gbe_attach()
3008 gbe_intf->ndev->ethtool_ops = NULL; in gbe_release()