Lines Matching full:nic
382 struct aq_nic_s *nic = pci_get_drvdata(to_pci_dev(dev)); in aq_suspend_common() local
386 nic->power_state = AQ_HW_POWER_STATE_D3; in aq_suspend_common()
387 netif_device_detach(nic->ndev); in aq_suspend_common()
388 netif_tx_stop_all_queues(nic->ndev); in aq_suspend_common()
390 if (netif_running(nic->ndev)) in aq_suspend_common()
391 aq_nic_stop(nic); in aq_suspend_common()
393 aq_nic_deinit(nic, !nic->aq_hw->aq_nic_cfg->wol); in aq_suspend_common()
394 aq_nic_set_power(nic); in aq_suspend_common()
404 struct aq_nic_s *nic; in atl_resume_common() local
407 nic = pci_get_drvdata(pdev); in atl_resume_common()
414 if (netif_running(nic->ndev)) { in atl_resume_common()
415 ret = aq_nic_init(nic); in atl_resume_common()
419 ret = aq_nic_start(nic); in atl_resume_common()
424 netif_device_attach(nic->ndev); in atl_resume_common()
425 netif_tx_start_all_queues(nic->ndev); in atl_resume_common()
429 aq_nic_deinit(nic, true); in atl_resume_common()