Lines Matching refs:netdev

35 static int lio_reset_queues(struct net_device *netdev, uint32_t num_qs);
215 static int lio_get_link_ksettings(struct net_device *netdev, in lio_get_link_ksettings() argument
218 struct lio *lio = GET_LIO(netdev); in lio_get_link_ksettings()
394 static int lio_set_link_ksettings(struct net_device *netdev, in lio_set_link_ksettings() argument
398 struct lio *lio = GET_LIO(netdev); in lio_set_link_ksettings()
436 lio_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo) in lio_get_drvinfo() argument
441 lio = GET_LIO(netdev); in lio_get_drvinfo()
452 lio_get_vf_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo) in lio_get_vf_drvinfo() argument
457 lio = GET_LIO(netdev); in lio_get_vf_drvinfo()
468 lio_send_queue_count_update(struct net_device *netdev, uint32_t num_queues) in lio_send_queue_count_update() argument
470 struct lio *lio = GET_LIO(netdev); in lio_send_queue_count_update()
482 nctrl.netpndev = (u64)netdev; in lio_send_queue_count_update()
666 static int lio_get_eeprom_len(struct net_device *netdev) in lio_get_eeprom_len() argument
669 struct lio *lio = GET_LIO(netdev); in lio_get_eeprom_len()
683 lio_get_eeprom(struct net_device *netdev, struct ethtool_eeprom *eeprom, in lio_get_eeprom() argument
686 struct lio *lio = GET_LIO(netdev); in lio_get_eeprom()
703 static int octnet_gpio_access(struct net_device *netdev, int addr, int val) in octnet_gpio_access() argument
705 struct lio *lio = GET_LIO(netdev); in octnet_gpio_access()
717 nctrl.netpndev = (u64)netdev; in octnet_gpio_access()
730 static int octnet_id_active(struct net_device *netdev, int val) in octnet_id_active() argument
732 struct lio *lio = GET_LIO(netdev); in octnet_id_active()
743 nctrl.netpndev = (u64)netdev; in octnet_id_active()
828 static int lio_set_phys_id(struct net_device *netdev, in lio_set_phys_id() argument
831 struct lio *lio = GET_LIO(netdev); in lio_set_phys_id()
845 octnet_gpio_access(netdev, VITESSE_PHY_GPIO_CFG, in lio_set_phys_id()
878 octnet_id_active(netdev, LED_IDENTIFICATION_ON); in lio_set_phys_id()
893 octnet_id_active(netdev, LED_IDENTIFICATION_ON); in lio_set_phys_id()
895 octnet_gpio_access(netdev, VITESSE_PHY_GPIO_CFG, in lio_set_phys_id()
906 octnet_id_active(netdev, LED_IDENTIFICATION_OFF); in lio_set_phys_id()
908 octnet_gpio_access(netdev, VITESSE_PHY_GPIO_CFG, in lio_set_phys_id()
917 octnet_gpio_access(netdev, VITESSE_PHY_GPIO_CFG, in lio_set_phys_id()
933 octnet_id_active(netdev, LED_IDENTIFICATION_OFF); in lio_set_phys_id()
949 lio_ethtool_get_ringparam(struct net_device *netdev, in lio_ethtool_get_ringparam() argument
954 struct lio *lio = GET_LIO(netdev); in lio_ethtool_get_ringparam()
1083 static int lio_reset_queues(struct net_device *netdev, uint32_t num_qs) in lio_reset_queues() argument
1085 struct lio *lio = GET_LIO(netdev); in lio_reset_queues()
1109 list_for_each_entry_safe(napi, n, &netdev->napi_list, dev_list) in lio_reset_queues()
1113 ret = netif_set_real_num_rx_queues(netdev, num_qs); in lio_reset_queues()
1120 ret = netif_set_real_num_tx_queues(netdev, num_qs); in lio_reset_queues()
1140 cleanup_rx_oom_poll_fn(netdev); in lio_reset_queues()
1241 if (setup_rx_oom_poll_fn(netdev)) { in lio_reset_queues()
1250 if (lio_send_queue_count_update(netdev, num_qs)) in lio_reset_queues()
1258 lio_ethtool_set_ringparam(struct net_device *netdev, in lio_ethtool_set_ringparam() argument
1264 struct lio *lio = GET_LIO(netdev); in lio_ethtool_set_ringparam()
1287 if (netif_running(netdev)) { in lio_ethtool_set_ringparam()
1288 netdev->netdev_ops->ndo_stop(netdev); in lio_ethtool_set_ringparam()
1300 if (lio_reset_queues(netdev, oct->num_iqs)) in lio_ethtool_set_ringparam()
1304 netdev->netdev_ops->ndo_open(netdev); in lio_ethtool_set_ringparam()
1320 static u32 lio_get_msglevel(struct net_device *netdev) in lio_get_msglevel() argument
1322 struct lio *lio = GET_LIO(netdev); in lio_get_msglevel()
1327 static void lio_set_msglevel(struct net_device *netdev, u32 msglvl) in lio_set_msglevel() argument
1329 struct lio *lio = GET_LIO(netdev); in lio_set_msglevel()
1333 liquidio_set_feature(netdev, in lio_set_msglevel()
1336 liquidio_set_feature(netdev, in lio_set_msglevel()
1343 static void lio_vf_set_msglevel(struct net_device *netdev, u32 msglvl) in lio_vf_set_msglevel() argument
1345 struct lio *lio = GET_LIO(netdev); in lio_vf_set_msglevel()
1351 lio_get_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *pause) in lio_get_pauseparam() argument
1356 struct lio *lio = GET_LIO(netdev); in lio_get_pauseparam()
1366 lio_set_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *pause) in lio_set_pauseparam() argument
1371 struct lio *lio = GET_LIO(netdev); in lio_set_pauseparam()
1396 nctrl.netpndev = (u64)netdev; in lio_set_pauseparam()
1429 lio_get_ethtool_stats(struct net_device *netdev, in lio_get_ethtool_stats() argument
1433 struct lio *lio = GET_LIO(netdev); in lio_get_ethtool_stats()
1441 netdev->netdev_ops->ndo_get_stats64(netdev, &lstats); in lio_get_ethtool_stats()
1717 static void lio_vf_get_ethtool_stats(struct net_device *netdev, in lio_vf_get_ethtool_stats() argument
1723 struct lio *lio = GET_LIO(netdev); in lio_vf_get_ethtool_stats()
1730 netdev->netdev_ops->ndo_get_stats64(netdev, &lstats); in lio_vf_get_ethtool_stats()
1847 netif_info(lio, drv, lio->netdev, "Unknown Chip !!\n"); in lio_get_priv_flags_strings()
1852 static void lio_get_strings(struct net_device *netdev, u32 stringset, u8 *data) in lio_get_strings() argument
1854 struct lio *lio = GET_LIO(netdev); in lio_get_strings()
1894 netif_info(lio, drv, lio->netdev, "Unknown Stringset !!\n"); in lio_get_strings()
1899 static void lio_vf_get_strings(struct net_device *netdev, u32 stringset, in lio_vf_get_strings() argument
1903 struct lio *lio = GET_LIO(netdev); in lio_vf_get_strings()
1942 netif_info(lio, drv, lio->netdev, "Unknown Stringset !!\n"); in lio_vf_get_strings()
1959 netif_info(lio, drv, lio->netdev, "Unknown Chip !!\n"); in lio_get_priv_flags_ss_count()
1964 static int lio_get_sset_count(struct net_device *netdev, int sset) in lio_get_sset_count() argument
1966 struct lio *lio = GET_LIO(netdev); in lio_get_sset_count()
1981 static int lio_vf_get_sset_count(struct net_device *netdev, int sset) in lio_vf_get_sset_count() argument
1983 struct lio *lio = GET_LIO(netdev); in lio_vf_get_sset_count()
2115 static int lio_get_intr_coalesce(struct net_device *netdev, in lio_get_intr_coalesce() argument
2120 struct lio *lio = GET_LIO(netdev); in lio_get_intr_coalesce()
2157 netif_info(lio, drv, lio->netdev, "Unknown Chip !!\n"); in lio_get_intr_coalesce()
2421 static int lio_set_intr_coalesce(struct net_device *netdev, in lio_set_intr_coalesce() argument
2426 struct lio *lio = GET_LIO(netdev); in lio_set_intr_coalesce()
2497 static int lio_get_ts_info(struct net_device *netdev, in lio_get_ts_info() argument
2500 struct lio *lio = GET_LIO(netdev); in lio_get_ts_info()
3044 static u32 lio_get_priv_flags(struct net_device *netdev) in lio_get_priv_flags() argument
3046 struct lio *lio = GET_LIO(netdev); in lio_get_priv_flags()
3051 static int lio_set_priv_flags(struct net_device *netdev, u32 flags) in lio_set_priv_flags() argument
3053 struct lio *lio = GET_LIO(netdev); in lio_set_priv_flags()
3061 static int lio_get_fecparam(struct net_device *netdev, in lio_get_fecparam() argument
3064 struct lio *lio = GET_LIO(netdev); in lio_get_fecparam()
3086 static int lio_set_fecparam(struct net_device *netdev, in lio_set_fecparam() argument
3089 struct lio *lio = GET_LIO(netdev); in lio_set_fecparam()
3173 void liquidio_set_ethtool_ops(struct net_device *netdev) in liquidio_set_ethtool_ops() argument
3175 struct lio *lio = GET_LIO(netdev); in liquidio_set_ethtool_ops()
3179 netdev->ethtool_ops = &lio_vf_ethtool_ops; in liquidio_set_ethtool_ops()
3181 netdev->ethtool_ops = &lio_ethtool_ops; in liquidio_set_ethtool_ops()