Lines Matching refs:netdev

781 static int hns_nic_ring_open(struct net_device *netdev, int idx)  in hns_nic_ring_open()  argument
783 struct hns_nic_priv *priv = netdev_priv(netdev); in hns_nic_ring_open()
815 void hns_nic_update_stats(struct net_device *netdev) in hns_nic_update_stats() argument
817 struct hns_nic_priv *priv = netdev_priv(netdev); in hns_nic_update_stats()
820 h->dev->ops->update_stats(h, &netdev->stats); in hns_nic_update_stats()
840 static void hns_nic_ring_close(struct net_device *netdev, int idx) in hns_nic_ring_close() argument
842 struct hns_nic_priv *priv = netdev_priv(netdev); in hns_nic_ring_close()
867 "%s-%s%d", priv->netdev->name, in hns_nic_init_irq()
875 netdev_err(priv->netdev, "request irq(%d) fail\n", in hns_nic_init_irq()
993 void hns_nic_net_reinit(struct net_device *netdev) in hns_nic_net_reinit() argument
995 struct hns_nic_priv *priv = netdev_priv(netdev); in hns_nic_net_reinit()
997 priv->netdev->trans_start = jiffies; in hns_nic_net_reinit()
1001 hns_nic_net_down(netdev); in hns_nic_net_reinit()
1002 hns_nic_net_reset(netdev); in hns_nic_net_reinit()
1003 (void)hns_nic_net_up(netdev); in hns_nic_net_reinit()
1058 static int hns_nic_do_ioctl(struct net_device *netdev, struct ifreq *ifr, in hns_nic_do_ioctl() argument
1061 struct hns_nic_priv *priv = netdev_priv(netdev); in hns_nic_do_ioctl()
1064 if (!netif_running(netdev)) in hns_nic_do_ioctl()
1241 static void hns_nic_update_link_status(struct net_device *netdev) in hns_nic_update_link_status() argument
1243 struct hns_nic_priv *priv = netdev_priv(netdev); in hns_nic_update_link_status()
1258 netif_carrier_on(netdev); in hns_nic_update_link_status()
1259 netif_tx_wake_all_queues(netdev); in hns_nic_update_link_status()
1260 netdev_info(netdev, "link up\n"); in hns_nic_update_link_status()
1262 netif_carrier_off(netdev); in hns_nic_update_link_status()
1263 netdev_info(netdev, "link down\n"); in hns_nic_update_link_status()
1318 netdev_info(priv->netdev, "Reset %s port\n", in hns_nic_reset_subtask()
1323 priv->netdev->trans_start = jiffies; in hns_nic_reset_subtask()
1326 hns_nic_net_reinit(priv->netdev); in hns_nic_reset_subtask()
1345 hns_nic_update_link_status(priv->netdev); in hns_nic_service_task()
1347 hns_nic_update_stats(priv->netdev); in hns_nic_service_task()
1379 netdev_warn(priv->netdev, in hns_tx_timeout_reset()
1394 netdev_err(priv->netdev, "too much queue (%d)\n", h->q_num); in hns_nic_init_ring_data()
1410 netif_napi_add(priv->netdev, &rd->napi, in hns_nic_init_ring_data()
1422 netif_napi_add(priv->netdev, &rd->napi, in hns_nic_init_ring_data()
1455 h = hnae_get_handle(&priv->netdev->dev, in hns_nic_try_get_ae()
1502 if (!hns_nic_try_get_ae(priv->netdev)) { in hns_nic_notifier_action()
1525 priv->netdev = ndev; in hns_nic_dev_probe()
1571 if (hns_nic_try_get_ae(priv->netdev)) { in hns_nic_dev_probe()