Lines Matching refs:netdev
107 static int lio_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in lio_get_settings() argument
109 struct lio *lio = GET_LIO(netdev); in lio_get_settings()
142 lio_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo) in lio_get_drvinfo() argument
147 lio = GET_LIO(netdev); in lio_get_drvinfo()
181 static int lio_get_eeprom_len(struct net_device *netdev) in lio_get_eeprom_len() argument
184 struct lio *lio = GET_LIO(netdev); in lio_get_eeprom_len()
198 lio_get_eeprom(struct net_device *netdev, struct ethtool_eeprom *eeprom, in lio_get_eeprom() argument
201 struct lio *lio = GET_LIO(netdev); in lio_get_eeprom()
220 static int octnet_gpio_access(struct net_device *netdev, int addr, int val) in octnet_gpio_access() argument
222 struct lio *lio = GET_LIO(netdev); in octnet_gpio_access()
236 nctrl.netpndev = (u64)netdev; in octnet_gpio_access()
352 static int lio_set_phys_id(struct net_device *netdev, in lio_set_phys_id() argument
355 struct lio *lio = GET_LIO(netdev); in lio_set_phys_id()
362 octnet_gpio_access(netdev, VITESSE_PHY_GPIO_CFG, in lio_set_phys_id()
403 octnet_gpio_access(netdev, VITESSE_PHY_GPIO_CFG, in lio_set_phys_id()
415 octnet_gpio_access(netdev, VITESSE_PHY_GPIO_CFG, in lio_set_phys_id()
426 octnet_gpio_access(netdev, VITESSE_PHY_GPIO_CFG, in lio_set_phys_id()
455 lio_ethtool_get_ringparam(struct net_device *netdev, in lio_ethtool_get_ringparam() argument
458 struct lio *lio = GET_LIO(netdev); in lio_ethtool_get_ringparam()
492 static u32 lio_get_msglevel(struct net_device *netdev) in lio_get_msglevel() argument
494 struct lio *lio = GET_LIO(netdev); in lio_get_msglevel()
499 static void lio_set_msglevel(struct net_device *netdev, u32 msglvl) in lio_set_msglevel() argument
501 struct lio *lio = GET_LIO(netdev); in lio_set_msglevel()
505 liquidio_set_feature(netdev, in lio_set_msglevel()
508 liquidio_set_feature(netdev, in lio_set_msglevel()
516 lio_get_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *pause) in lio_get_pauseparam() argument
526 lio_get_ethtool_stats(struct net_device *netdev, in lio_get_ethtool_stats() argument
529 struct lio *lio = GET_LIO(netdev); in lio_get_ethtool_stats()
579 static void lio_get_strings(struct net_device *netdev, u32 stringset, u8 *data) in lio_get_strings() argument
581 struct lio *lio = GET_LIO(netdev); in lio_get_strings()
607 static int lio_get_sset_count(struct net_device *netdev, int sset) in lio_get_sset_count() argument
609 struct lio *lio = GET_LIO(netdev); in lio_get_sset_count()
616 static int lio_get_intr_coalesce(struct net_device *netdev, in lio_get_intr_coalesce() argument
619 struct lio *lio = GET_LIO(netdev); in lio_get_intr_coalesce()
661 netif_info(lio, drv, lio->netdev, "Unknown Chip !!\n"); in lio_get_intr_coalesce()
851 static int lio_set_intr_coalesce(struct net_device *netdev, in lio_set_intr_coalesce() argument
854 struct lio *lio = GET_LIO(netdev); in lio_set_intr_coalesce()
920 static int lio_get_ts_info(struct net_device *netdev, in lio_get_ts_info() argument
923 struct lio *lio = GET_LIO(netdev); in lio_get_ts_info()
947 static int lio_set_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in lio_set_settings() argument
949 struct lio *lio = GET_LIO(netdev); in lio_set_settings()
982 nctrl.netpndev = (u64)netdev; in lio_set_settings()
1014 static int lio_nway_reset(struct net_device *netdev) in lio_nway_reset() argument
1016 if (netif_running(netdev)) { in lio_nway_reset()
1023 lio_set_settings(netdev, &ecmd); in lio_nway_reset()
1213 void liquidio_set_ethtool_ops(struct net_device *netdev) in liquidio_set_ethtool_ops() argument
1215 netdev->ethtool_ops = &lio_ethtool_ops; in liquidio_set_ethtool_ops()