Lines Matching refs:trans_pcie

100 	struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans);  in iwl_trans_pcie_fw_reset_handshake()  local
103 trans_pcie->fw_reset_state = FW_RESET_REQUESTED; in iwl_trans_pcie_fw_reset_handshake()
116 ret = wait_event_timeout(trans_pcie->fw_reset_waitq, in iwl_trans_pcie_fw_reset_handshake()
117 trans_pcie->fw_reset_state != FW_RESET_REQUESTED, in iwl_trans_pcie_fw_reset_handshake()
119 if (!ret || trans_pcie->fw_reset_state == FW_RESET_ERROR) { in iwl_trans_pcie_fw_reset_handshake()
137 trans_pcie->fw_reset_state = FW_RESET_IDLE; in iwl_trans_pcie_fw_reset_handshake()
142 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in _iwl_trans_pcie_gen2_stop_device() local
144 lockdep_assert_held(&trans_pcie->mutex); in _iwl_trans_pcie_gen2_stop_device()
146 if (trans_pcie->is_down) in _iwl_trans_pcie_gen2_stop_device()
150 trans_pcie->fw_reset_handshake) in _iwl_trans_pcie_gen2_stop_device()
153 trans_pcie->is_down = true; in _iwl_trans_pcie_gen2_stop_device()
196 iwl_pcie_conf_msix_hw(trans_pcie); in _iwl_trans_pcie_gen2_stop_device()
221 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_trans_pcie_gen2_stop_device() local
228 mutex_lock(&trans_pcie->mutex); in iwl_trans_pcie_gen2_stop_device()
229 trans_pcie->opmode_down = true; in iwl_trans_pcie_gen2_stop_device()
233 mutex_unlock(&trans_pcie->mutex); in iwl_trans_pcie_gen2_stop_device()
238 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_gen2_nic_init() local
244 spin_lock_bh(&trans_pcie->irq_lock); in iwl_pcie_gen2_nic_init()
246 spin_unlock_bh(&trans_pcie->irq_lock); in iwl_pcie_gen2_nic_init()
257 if (iwl_txq_gen2_init(trans, trans_pcie->txqs.cmd.q_id, queue_size)) in iwl_pcie_gen2_nic_init()
269 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_get_rf_name() local
270 char *buf = trans_pcie->rf_name; in iwl_pcie_get_rf_name()
271 size_t buflen = sizeof(trans_pcie->rf_name); in iwl_pcie_get_rf_name()
348 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_trans_pcie_gen2_fw_alive() local
353 memset(trans_pcie->txqs.queue_stopped, 0, in iwl_trans_pcie_gen2_fw_alive()
354 sizeof(trans_pcie->txqs.queue_stopped)); in iwl_trans_pcie_gen2_fw_alive()
355 memset(trans_pcie->txqs.queue_used, 0, in iwl_trans_pcie_gen2_fw_alive()
356 sizeof(trans_pcie->txqs.queue_used)); in iwl_trans_pcie_gen2_fw_alive()
371 mutex_lock(&trans_pcie->mutex); in iwl_trans_pcie_gen2_fw_alive()
375 mutex_unlock(&trans_pcie->mutex); in iwl_trans_pcie_gen2_fw_alive()
431 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_pcie_spin_for_iml() local
436 if (WARN_ON(!trans_pcie->iml)) in iwl_pcie_spin_for_iml()
468 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); in iwl_trans_pcie_gen2_start_fw() local
492 mutex_lock(&trans_pcie->mutex); in iwl_trans_pcie_gen2_start_fw()
502 if (trans_pcie->is_down) { in iwl_trans_pcie_gen2_start_fw()
553 mutex_unlock(&trans_pcie->mutex); in iwl_trans_pcie_gen2_start_fw()