Lines Matching refs:trans
156 reg_val |= CSR_HW_REV_STEP(mvm->trans->hw_rev) << in iwl_mvm_nic_config()
158 reg_val |= CSR_HW_REV_DASH(mvm->trans->hw_rev) << in iwl_mvm_nic_config()
176 if (mvm->trans->cfg->device_family != IWL_DEVICE_FAMILY_8000) in iwl_mvm_nic_config()
179 iwl_trans_set_bits_mask(mvm->trans, CSR_HW_IF_CONFIG_REG, in iwl_mvm_nic_config()
197 if (mvm->trans->cfg->device_family != IWL_DEVICE_FAMILY_8000) in iwl_mvm_nic_config()
198 iwl_set_bits_mask_prph(mvm->trans, APMG_PS_CTRL_REG, in iwl_mvm_nic_config()
369 static u32 calc_min_backoff(struct iwl_trans *trans, const struct iwl_cfg *cfg) in calc_min_backoff() argument
377 if (trans->dflt_pwr_limit >= pwr_tx_backoff->pwr) in calc_min_backoff()
389 iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg, in iwl_op_mode_mvm_start() argument
428 mvm->dev = trans->dev; in iwl_op_mode_mvm_start()
429 mvm->trans = trans; in iwl_op_mode_mvm_start()
467 SET_IEEE80211_DEV(mvm->hw, mvm->trans->dev); in iwl_op_mode_mvm_start()
498 iwl_trans_configure(mvm->trans, &trans_cfg); in iwl_op_mode_mvm_start()
500 trans->rx_mpdu_cmd = REPLY_RX_MPDU_CMD; in iwl_op_mode_mvm_start()
501 trans->rx_mpdu_cmd_hdr_size = sizeof(struct iwl_rx_mpdu_res_start); in iwl_op_mode_mvm_start()
502 trans->dbg_dest_tlv = mvm->fw->dbg_dest_tlv; in iwl_op_mode_mvm_start()
503 trans->dbg_dest_reg_num = mvm->fw->dbg_dest_reg_num; in iwl_op_mode_mvm_start()
504 memcpy(trans->dbg_conf_tlv, mvm->fw->dbg_conf_tlv, in iwl_op_mode_mvm_start()
505 sizeof(trans->dbg_conf_tlv)); in iwl_op_mode_mvm_start()
506 trans->dbg_trigger_tlv = mvm->fw->dbg_trigger_tlv; in iwl_op_mode_mvm_start()
512 mvm->phy_db = iwl_phy_db_init(trans); in iwl_op_mode_mvm_start()
519 mvm->cfg->name, mvm->trans->hw_rev); in iwl_op_mode_mvm_start()
521 min_backoff = calc_min_backoff(trans, cfg); in iwl_op_mode_mvm_start()
526 } else if (trans->cfg->device_family == IWL_DEVICE_FAMILY_8000) { in iwl_op_mode_mvm_start()
527 if (CSR_HW_REV_STEP(trans->hw_rev) == SILICON_B_STEP) in iwl_op_mode_mvm_start()
548 err = iwl_trans_start_hw(mvm->trans); in iwl_op_mode_mvm_start()
555 iwl_trans_stop_device(trans); in iwl_op_mode_mvm_start()
596 iwl_trans_op_mode_leave(trans); in iwl_op_mode_mvm_start()
625 iwl_trans_op_mode_leave(mvm->trans); in iwl_op_mode_mvm_stop()
840 iwl_trans_free_tx_cmd(mvm->trans, info->driver_data[1]); in iwl_mvm_free_skb()
872 iwl_set_bits_prph(mvm->trans, MON_BUFF_SAMPLE_CTL, 0x100); in iwl_mvm_fw_error_dump_wk()
874 iwl_write_prph(mvm->trans, DBGC_IN_SAMPLE, 0); in iwl_mvm_fw_error_dump_wk()
882 WARN_ON_ONCE((!test_bit(STATUS_FW_ERROR, &mvm->trans->status)) && in iwl_mvm_fw_error_dump_wk()
937 reprobe->dev = mvm->trans->dev; in iwl_mvm_nic_restart()
1122 IWL_DEBUG_RPM(mvm->trans, "abort d0i3 due to taken ref\n"); in iwl_mvm_enter_d0i3()