Lines Matching refs:lif
189 if (ionic->lif && in ionic_sriov_configure()
190 test_bit(IONIC_LIF_F_FW_RESET, ionic->lif->state)) in ionic_sriov_configure()
351 err = ionic_lif_init(ionic->lif); in ionic_probe()
372 err = ionic_lif_register(ionic->lif); in ionic_probe()
388 ionic_lif_deinit(ionic->lif); in ionic_probe()
390 ionic_lif_free(ionic->lif); in ionic_probe()
391 ionic->lif = NULL; in ionic_probe()
411 if (ionic->lif) { in ionic_remove()
413 if (test_and_clear_bit(IONIC_LIF_F_FW_RESET, ionic->lif->state)) in ionic_remove()
414 set_bit(IONIC_LIF_F_FW_STOPPING, ionic->lif->state); in ionic_remove()
416 if (ionic->lif->doorbell_wa) in ionic_remove()
418 ionic_lif_unregister(ionic->lif); in ionic_remove()
420 ionic_lif_deinit(ionic->lif); in ionic_remove()
421 ionic_lif_free(ionic->lif); in ionic_remove()
422 ionic->lif = NULL; in ionic_remove()
438 struct ionic_lif *lif = ionic->lif; in ionic_reset_prepare() local
442 set_bit(IONIC_LIF_F_FW_RESET, lif->state); in ionic_reset_prepare()
445 cancel_work_sync(&lif->deferred.work); in ionic_reset_prepare()
447 mutex_lock(&lif->queue_lock); in ionic_reset_prepare()
448 ionic_stop_queues_reconfig(lif); in ionic_reset_prepare()
449 ionic_txrx_free(lif); in ionic_reset_prepare()
450 ionic_lif_deinit(lif); in ionic_reset_prepare()
451 ionic_qcqs_free(lif); in ionic_reset_prepare()
452 ionic_debugfs_del_lif(lif); in ionic_reset_prepare()
453 mutex_unlock(&lif->queue_lock); in ionic_reset_prepare()
463 struct ionic_lif *lif = ionic->lif; in ionic_reset_done() local
471 ionic_debugfs_add_lif(ionic->lif); in ionic_reset_done()
473 err = ionic_restart_lif(lif); in ionic_reset_done()
498 struct ionic_lif *lif = ionic->lif; in ionic_pci_error_resume() local
500 if (lif && test_bit(IONIC_LIF_F_FW_RESET, lif->state)) in ionic_pci_error_resume()