Lines Matching refs:trans
101 struct iwl_trans *trans = fwrt->trans; in iwl_fwrt_dump_umac_error_log() local
103 u32 base = fwrt->trans->dbg.umac_error_event_table; in iwl_fwrt_dump_umac_error_log()
107 !(fwrt->trans->dbg.error_event_table_tlv_status & in iwl_fwrt_dump_umac_error_log()
111 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_fwrt_dump_umac_error_log()
117 IWL_ERR(trans, "Start IWL Error Log Dump:\n"); in iwl_fwrt_dump_umac_error_log()
118 IWL_ERR(trans, "Transport status: 0x%08lX, valid: %d\n", in iwl_fwrt_dump_umac_error_log()
119 fwrt->trans->status, table.valid); in iwl_fwrt_dump_umac_error_log()
124 iwl_pnvm_get_fs_name(trans, pnvm_name, sizeof(pnvm_name)); in iwl_fwrt_dump_umac_error_log()
148 struct iwl_trans *trans = fwrt->trans; in iwl_fwrt_dump_lmac_error_log() local
150 u32 val, base = fwrt->trans->dbg.lmac_error_event_table[lmac_num]; in iwl_fwrt_dump_lmac_error_log()
160 if ((fwrt->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_BZ && !base) || in iwl_fwrt_dump_lmac_error_log()
161 (fwrt->trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_BZ && base < 0x400000)) { in iwl_fwrt_dump_lmac_error_log()
171 val = iwl_trans_read_mem32(trans, base); in iwl_fwrt_dump_lmac_error_log()
175 IWL_ERR(trans, "HW error, resetting before reading\n"); in iwl_fwrt_dump_lmac_error_log()
178 err = iwl_trans_sw_reset(trans, true); in iwl_fwrt_dump_lmac_error_log()
182 err = iwl_finish_nic_init(trans); in iwl_fwrt_dump_lmac_error_log()
187 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_fwrt_dump_lmac_error_log()
193 IWL_ERR(trans, "Start IWL Error Log Dump:\n"); in iwl_fwrt_dump_lmac_error_log()
194 IWL_ERR(trans, "Transport status: 0x%08lX, valid: %d\n", in iwl_fwrt_dump_lmac_error_log()
195 fwrt->trans->status, table.valid); in iwl_fwrt_dump_lmac_error_log()
265 struct iwl_trans *trans = fwrt->trans; in iwl_fwrt_dump_tcm_error_log() local
267 u32 base = fwrt->trans->dbg.tcm_error_event_table[idx]; in iwl_fwrt_dump_tcm_error_log()
272 if (!base || !(fwrt->trans->dbg.error_event_table_tlv_status & flag)) in iwl_fwrt_dump_tcm_error_log()
275 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_fwrt_dump_tcm_error_log()
329 struct iwl_trans *trans = fwrt->trans; in iwl_fwrt_dump_rcm_error_log() local
331 u32 base = fwrt->trans->dbg.rcm_error_event_table[idx]; in iwl_fwrt_dump_rcm_error_log()
335 if (!base || !(fwrt->trans->dbg.error_event_table_tlv_status & flag)) in iwl_fwrt_dump_rcm_error_log()
338 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_fwrt_dump_rcm_error_log()
366 struct iwl_trans *trans = fwrt->trans; in iwl_fwrt_dump_iml_error_log() local
369 if (fwrt->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000) { in iwl_fwrt_dump_iml_error_log()
372 } else if (fwrt->trans->trans_cfg->device_family >= in iwl_fwrt_dump_iml_error_log()
380 error = iwl_read_umac_prph(trans, error); in iwl_fwrt_dump_iml_error_log()
382 IWL_ERR(trans, "IML/ROM dump:\n"); in iwl_fwrt_dump_iml_error_log()
385 IWL_ERR(trans, "0x%04X | IML/ROM SYSASSERT\n", error >> 16); in iwl_fwrt_dump_iml_error_log()
389 iwl_read_umac_prph(trans, data1)); in iwl_fwrt_dump_iml_error_log()
391 if (fwrt->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000) in iwl_fwrt_dump_iml_error_log()
393 iwl_read_umac_prph(trans, SB_MODIFY_CFG_FLAG)); in iwl_fwrt_dump_iml_error_log()
400 struct iwl_trans *trans = fwrt->trans; in iwl_fwrt_dump_fseq_regs() local
420 if (!iwl_trans_grab_nic_access(trans)) in iwl_fwrt_dump_fseq_regs()
427 iwl_read_prph_no_grab(trans, fseq_regs[i].addr), in iwl_fwrt_dump_fseq_regs()
430 iwl_trans_release_nic_access(trans); in iwl_fwrt_dump_fseq_regs()
435 if (!test_bit(STATUS_DEVICE_ENABLED, &fwrt->trans->status)) { in iwl_fwrt_dump_error_logs()
442 if (fwrt->trans->dbg.lmac_error_event_table[1]) in iwl_fwrt_dump_error_logs()
452 if (fwrt->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_BZ) { in iwl_fwrt_dump_error_logs()
453 u32 scratch = iwl_read32(fwrt->trans, CSR_FUNC_SCRATCH); in iwl_fwrt_dump_error_logs()