/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/fw/ |
D | dbg.h | 101 int iwl_fw_dbg_collect_desc(struct iwl_fw_runtime *fwrt, 104 int iwl_fw_dbg_error_collect(struct iwl_fw_runtime *fwrt, 106 int iwl_fw_dbg_ini_collect(struct iwl_fw_runtime *fwrt, 108 int iwl_fw_dbg_collect(struct iwl_fw_runtime *fwrt, 111 int iwl_fw_dbg_collect_trig(struct iwl_fw_runtime *fwrt, 114 int iwl_fw_start_dbg_conf(struct iwl_fw_runtime *fwrt, u8 id); 144 iwl_fw_dbg_trigger_stop_conf_match(struct iwl_fw_runtime *fwrt, in iwl_fw_dbg_trigger_stop_conf_match() argument 148 (fwrt->dump.conf == FW_DBG_INVALID || in iwl_fw_dbg_trigger_stop_conf_match() 149 (BIT(fwrt->dump.conf) & le32_to_cpu(trig->stop_conf_ids)))); in iwl_fw_dbg_trigger_stop_conf_match() 153 iwl_fw_dbg_no_trig_window(struct iwl_fw_runtime *fwrt, u32 id, u32 dis_usec) in iwl_fw_dbg_no_trig_window() argument [all …]
|
D | paging.c | 68 void iwl_free_fw_paging(struct iwl_fw_runtime *fwrt) in iwl_free_fw_paging() argument 72 if (!fwrt->fw_paging_db[0].fw_paging_block) in iwl_free_fw_paging() 76 struct iwl_fw_paging *paging = &fwrt->fw_paging_db[i]; in iwl_free_fw_paging() 79 IWL_DEBUG_FW(fwrt, in iwl_free_fw_paging() 85 dma_unmap_page(fwrt->trans->dev, paging->fw_paging_phys, in iwl_free_fw_paging() 93 memset(fwrt->fw_paging_db, 0, sizeof(fwrt->fw_paging_db)); in iwl_free_fw_paging() 97 static int iwl_alloc_fw_paging_mem(struct iwl_fw_runtime *fwrt, in iwl_alloc_fw_paging_mem() argument 104 if (fwrt->fw_paging_db[0].fw_paging_block) in iwl_alloc_fw_paging_mem() 111 fwrt->num_of_paging_blk = in iwl_alloc_fw_paging_mem() 113 fwrt->num_of_pages_in_last_blk = in iwl_alloc_fw_paging_mem() [all …]
|
D | dbg.c | 89 static void iwl_read_radio_regs(struct iwl_fw_runtime *fwrt, in iwl_read_radio_regs() argument 96 IWL_DEBUG_INFO(fwrt, "WRT radio registers dump\n"); in iwl_read_radio_regs() 98 if (!iwl_trans_grab_nic_access(fwrt->trans, &flags)) in iwl_read_radio_regs() 108 iwl_write_prph_no_grab(fwrt->trans, RSP_RADIO_CMD, rd_cmd); in iwl_read_radio_regs() 109 *pos = (u8)iwl_read_prph_no_grab(fwrt->trans, RSP_RADIO_RDDAT); in iwl_read_radio_regs() 116 iwl_trans_release_nic_access(fwrt->trans, &flags); in iwl_read_radio_regs() 119 static void iwl_fwrt_dump_rxf(struct iwl_fw_runtime *fwrt, in iwl_fwrt_dump_rxf() argument 142 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf() 145 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf() 148 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf() [all …]
|
D | init.c | 68 void iwl_fw_runtime_init(struct iwl_fw_runtime *fwrt, struct iwl_trans *trans, in iwl_fw_runtime_init() argument 75 memset(fwrt, 0, sizeof(*fwrt)); in iwl_fw_runtime_init() 76 fwrt->trans = trans; in iwl_fw_runtime_init() 77 fwrt->fw = fw; in iwl_fw_runtime_init() 78 fwrt->dev = trans->dev; in iwl_fw_runtime_init() 79 fwrt->dump.conf = FW_DBG_INVALID; in iwl_fw_runtime_init() 80 fwrt->ops = ops; in iwl_fw_runtime_init() 81 fwrt->ops_ctx = ops_ctx; in iwl_fw_runtime_init() 83 fwrt->dump.wks[i].idx = i; in iwl_fw_runtime_init() 84 INIT_DELAYED_WORK(&fwrt->dump.wks[i].wk, iwl_fw_error_dump_wk); in iwl_fw_runtime_init() [all …]
|
D | smem.c | 66 static void iwl_parse_shared_mem_22000(struct iwl_fw_runtime *fwrt, in iwl_parse_shared_mem_22000() argument 72 u8 api_ver = iwl_fw_lookup_notif_ver(fwrt->fw, SYSTEM_GROUP, in iwl_parse_shared_mem_22000() 78 fwrt->smem_cfg.num_lmacs = lmac_num; in iwl_parse_shared_mem_22000() 79 fwrt->smem_cfg.num_txfifo_entries = in iwl_parse_shared_mem_22000() 81 fwrt->smem_cfg.rxfifo2_size = le32_to_cpu(mem_cfg->rxfifo2_size); in iwl_parse_shared_mem_22000() 85 fwrt->smem_cfg.rxfifo2_control_size = in iwl_parse_shared_mem_22000() 94 fwrt->smem_cfg.lmac[lmac].txfifo_size[i] = in iwl_parse_shared_mem_22000() 96 fwrt->smem_cfg.lmac[lmac].rxfifo1_size = in iwl_parse_shared_mem_22000() 101 static void iwl_parse_shared_mem(struct iwl_fw_runtime *fwrt, in iwl_parse_shared_mem() argument 107 fwrt->smem_cfg.num_lmacs = 1; in iwl_parse_shared_mem() [all …]
|
D | debugfs.c | 175 debugfs_create_file(alias, mode, parent, fwrt, \ 181 static int iwl_fw_send_timestamp_marker_cmd(struct iwl_fw_runtime *fwrt) in iwl_fw_send_timestamp_marker_cmd() argument 190 .timestamp = cpu_to_le64(fwrt->timestamp.seq++), in iwl_fw_send_timestamp_marker_cmd() 200 return iwl_trans_send_cmd(fwrt->trans, &hcmd); in iwl_fw_send_timestamp_marker_cmd() 206 struct iwl_fw_runtime *fwrt = in iwl_fw_timestamp_marker_wk() local 208 unsigned long delay = fwrt->timestamp.delay; in iwl_fw_timestamp_marker_wk() 210 ret = iwl_fw_send_timestamp_marker_cmd(fwrt); in iwl_fw_timestamp_marker_wk() 212 schedule_delayed_work(&fwrt->timestamp.wk, in iwl_fw_timestamp_marker_wk() 215 IWL_INFO(fwrt, in iwl_fw_timestamp_marker_wk() 220 void iwl_fw_trigger_timestamp(struct iwl_fw_runtime *fwrt, u32 delay) in iwl_fw_trigger_timestamp() argument [all …]
|
D | acpi.c | 231 int iwl_acpi_get_tas(struct iwl_fw_runtime *fwrt, in iwl_acpi_get_tas() argument 239 data = iwl_acpi_get_object(fwrt->dev, ACPI_WTAS_METHOD); in iwl_acpi_get_tas() 243 wifi_pkg = iwl_acpi_get_wifi_pkg(fwrt->dev, data, in iwl_acpi_get_tas() 261 IWL_DEBUG_RADIO(fwrt, "TAS not enabled\n"); in iwl_acpi_get_tas() 269 IWL_DEBUG_RADIO(fwrt, "TAS invalid array size %llu\n", in iwl_acpi_get_tas() 276 IWL_DEBUG_RADIO(fwrt, "TAS array size %d\n", *block_list_size); in iwl_acpi_get_tas() 278 IWL_DEBUG_RADIO(fwrt, "TAS invalid array size value %u\n", in iwl_acpi_get_tas() 289 IWL_DEBUG_RADIO(fwrt, in iwl_acpi_get_tas() 297 IWL_DEBUG_RADIO(fwrt, "TAS block list country %d\n", country); in iwl_acpi_get_tas() 422 static int iwl_sar_fill_table(struct iwl_fw_runtime *fwrt, in iwl_sar_fill_table() argument [all …]
|
D | runtime.h | 215 void iwl_fw_runtime_init(struct iwl_fw_runtime *fwrt, struct iwl_trans *trans, 220 static inline void iwl_fw_runtime_free(struct iwl_fw_runtime *fwrt) in iwl_fw_runtime_free() argument 224 kfree(fwrt->dump.d3_debug_data); in iwl_fw_runtime_free() 225 fwrt->dump.d3_debug_data = NULL; in iwl_fw_runtime_free() 227 iwl_dbg_tlv_del_timers(fwrt->trans); in iwl_fw_runtime_free() 229 cancel_delayed_work_sync(&fwrt->dump.wks[i].wk); in iwl_fw_runtime_free() 232 void iwl_fw_runtime_suspend(struct iwl_fw_runtime *fwrt); 234 void iwl_fw_runtime_resume(struct iwl_fw_runtime *fwrt); 236 static inline void iwl_fw_set_current_image(struct iwl_fw_runtime *fwrt, in iwl_fw_set_current_image() argument 239 fwrt->cur_fw_img = cur_fw_img; in iwl_fw_set_current_image() [all …]
|
D | acpi.h | 185 int iwl_sar_select_profile(struct iwl_fw_runtime *fwrt, 189 int iwl_sar_get_wrds_table(struct iwl_fw_runtime *fwrt); 191 int iwl_sar_get_ewrd_table(struct iwl_fw_runtime *fwrt); 193 int iwl_sar_get_wgds_table(struct iwl_fw_runtime *fwrt); 195 bool iwl_sar_geo_support(struct iwl_fw_runtime *fwrt); 197 int iwl_sar_geo_init(struct iwl_fw_runtime *fwrt, 200 int iwl_acpi_get_tas(struct iwl_fw_runtime *fwrt, __le32 *block_list_array, 244 static inline int iwl_sar_select_profile(struct iwl_fw_runtime *fwrt, in iwl_sar_select_profile() argument 251 static inline int iwl_sar_get_wrds_table(struct iwl_fw_runtime *fwrt) in iwl_sar_get_wrds_table() argument 256 static inline int iwl_sar_get_ewrd_table(struct iwl_fw_runtime *fwrt) in iwl_sar_get_ewrd_table() argument [all …]
|
D | debugfs.h | 66 void iwl_fwrt_dbgfs_register(struct iwl_fw_runtime *fwrt, 70 static inline void iwl_fwrt_dbgfs_register(struct iwl_fw_runtime *fwrt, in iwl_fwrt_dbgfs_register() argument
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-dbg-tlv.c | 108 struct iwl_fw_runtime *fwrt; member 513 static int iwl_dbg_tlv_alloc_fragment(struct iwl_fw_runtime *fwrt, in iwl_dbg_tlv_alloc_fragment() argument 530 block = dma_alloc_coherent(fwrt->dev, pages * PAGE_SIZE, in iwl_dbg_tlv_alloc_fragment() 536 IWL_WARN(fwrt, "WRT: Failed to allocate fragment size %lu\n", in iwl_dbg_tlv_alloc_fragment() 552 static int iwl_dbg_tlv_alloc_fragments(struct iwl_fw_runtime *fwrt, in iwl_dbg_tlv_alloc_fragments() argument 564 fw_mon_cfg = &fwrt->trans->dbg.fw_mon_cfg[alloc_id]; in iwl_dbg_tlv_alloc_fragments() 565 fw_mon = &fwrt->trans->dbg.fw_mon_ini[alloc_id]; in iwl_dbg_tlv_alloc_fragments() 573 if (!fw_has_capa(&fwrt->fw->ucode_capa, in iwl_dbg_tlv_alloc_fragments() 593 IWL_DEBUG_FW(fwrt, in iwl_dbg_tlv_alloc_fragments() 597 pages = iwl_dbg_tlv_alloc_fragment(fwrt, &fw_mon->frags[i], in iwl_dbg_tlv_alloc_fragments() [all …]
|
D | iwl-dbg-tlv.h | 105 void iwl_dbg_tlv_time_point(struct iwl_fw_runtime *fwrt,
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | fw.c | 291 (mvm->fwrt.cur_fw_img == IWL_UCODE_INIT) ? in iwl_alive_fn() 311 iwl_fwrt_update_fw_versions(&mvm->fwrt, lmac1, umac); in iwl_alive_fn() 346 enum iwl_ucode_type old_type = mvm->fwrt.cur_fw_img; in iwl_mvm_load_ucode_wait_alive() 360 iwl_fw_set_current_image(&mvm->fwrt, ucode_type); in iwl_mvm_load_ucode_wait_alive() 374 iwl_fw_set_current_image(&mvm->fwrt, old_type); in iwl_mvm_load_ucode_wait_alive() 414 iwl_fw_dbg_error_collect(&mvm->fwrt, in iwl_mvm_load_ucode_wait_alive() 417 iwl_fw_set_current_image(&mvm->fwrt, old_type); in iwl_mvm_load_ucode_wait_alive() 423 iwl_fw_set_current_image(&mvm->fwrt, old_type); in iwl_mvm_load_ucode_wait_alive() 430 iwl_fw_set_current_image(&mvm->fwrt, old_type); in iwl_mvm_load_ucode_wait_alive() 457 iwl_fw_set_dbg_rec_on(&mvm->fwrt); in iwl_mvm_load_ucode_wait_alive() [all …]
|
D | ops.c | 173 if (iwl_fw_dbg_is_d3_debug_enabled(&mvm->fwrt) || in iwl_mvm_nic_config() 658 iwl_fw_runtime_init(&mvm->fwrt, trans, fw, &iwl_mvm_fwrt_ops, mvm, in iwl_op_mode_mvm_start() 704 iwl_fw_set_current_image(&mvm->fwrt, IWL_UCODE_REGULAR); in iwl_op_mode_mvm_start() 706 iwl_fw_set_current_image(&mvm->fwrt, IWL_UCODE_INIT); in iwl_op_mode_mvm_start() 849 iwl_fw_dbg_error_collect(&mvm->fwrt, FW_DBG_TRIGGER_DRIVER); in iwl_op_mode_mvm_start() 892 iwl_fw_flush_dumps(&mvm->fwrt); in iwl_op_mode_mvm_start() 893 iwl_fw_runtime_free(&mvm->fwrt); in iwl_op_mode_mvm_start() 934 iwl_fw_runtime_free(&mvm->fwrt); in iwl_op_mode_mvm_stop() 996 trig = iwl_fw_dbg_trigger_on(&mvm->fwrt, NULL, in iwl_mvm_rx_check_trigger() 1012 iwl_fw_dbg_collect_trig(&mvm->fwrt, trig, in iwl_mvm_rx_check_trigger() [all …]
|
D | utils.c | 436 mvm->fwrt.dump.umac_err_id = table.error_id; in iwl_mvm_dump_umac_error_log() 467 if (mvm->fwrt.cur_fw_img == IWL_UCODE_INIT) { in iwl_mvm_dump_lmac_error_log() 479 (mvm->fwrt.cur_fw_img == IWL_UCODE_INIT) in iwl_mvm_dump_lmac_error_log() 502 mvm->fwrt.dump.lmac_err_id[lmac_num] = table.error_id; in iwl_mvm_dump_lmac_error_log() 586 iwl_fw_error_print_fseq_regs(&mvm->fwrt); in iwl_mvm_dump_nic_error_log() 983 trig = iwl_fw_dbg_trigger_on(&mvm->fwrt, ieee80211_vif_to_wdev(vif), in iwl_mvm_connection_loss() 994 iwl_fw_dbg_collect_trig(&mvm->fwrt, trig, "%s", errmsg); in iwl_mvm_connection_loss() 1008 trig = iwl_fw_dbg_trigger_on(&mvm->fwrt, ieee80211_vif_to_wdev(vif), in iwl_mvm_event_frame_timeout_callback() 1018 iwl_fw_dbg_collect_trig(&mvm->fwrt, trig, in iwl_mvm_event_frame_timeout_callback()
|
D | debugfs.c | 85 mvm->fwrt.cur_fw_img != IWL_UCODE_REGULAR) in iwl_dbgfs_ctdp_budget_read() 109 mvm->fwrt.cur_fw_img != IWL_UCODE_REGULAR) in iwl_dbgfs_stop_ctdp_write() 123 mvm->fwrt.cur_fw_img != IWL_UCODE_REGULAR) in iwl_dbgfs_force_ctkill_write() 138 mvm->fwrt.cur_fw_img != IWL_UCODE_REGULAR) in iwl_dbgfs_tx_flush_write() 172 mvm->fwrt.cur_fw_img != IWL_UCODE_REGULAR) in iwl_dbgfs_sta_drain_write() 209 img = &mvm->fw->img[mvm->fwrt.cur_fw_img]; in iwl_dbgfs_sram_read() 241 img = &mvm->fw->img[mvm->fwrt.cur_fw_img]; in iwl_dbgfs_sram_write() 379 value = &mvm->fwrt.geo_profiles[tbl_idx - 1].values[0]; in iwl_dbgfs_sar_geo_profile_read() 758 mvm->fwrt.fw->human_readable); in iwl_dbgfs_fw_ver_read() 760 mvm->fwrt.trans->name); in iwl_dbgfs_fw_ver_read() [all …]
|
D | d3.c | 1136 iwl_fw_dbg_stop_restart_recording(&mvm->fwrt, NULL, true); in __iwl_mvm_suspend() 1181 iwl_fw_runtime_suspend(&mvm->fwrt); in iwl_mvm_suspend() 2112 iwl_fw_dbg_read_d3_debug_data(&mvm->fwrt); in __iwl_mvm_resume() 2117 iwl_dbg_tlv_time_point(&mvm->fwrt, in __iwl_mvm_resume() 2119 iwl_fw_dbg_collect_desc(&mvm->fwrt, &iwl_dump_desc_assert, in __iwl_mvm_resume() 2125 iwl_dbg_tlv_time_point(&mvm->fwrt, IWL_FW_INI_TIME_POINT_HOST_D3_END, in __iwl_mvm_resume() 2260 iwl_fw_runtime_resume(&mvm->fwrt); in iwl_mvm_resume() 2289 iwl_fw_runtime_suspend(&mvm->fwrt); in iwl_mvm_d3_test_open() 2346 iwl_fw_dbg_read_d3_debug_data(&mvm->fwrt); in iwl_mvm_d3_test_release() 2354 iwl_fw_runtime_resume(&mvm->fwrt); in iwl_mvm_d3_test_release()
|
D | rx.c | 457 trig = iwl_fw_dbg_trigger_on(&mvm->fwrt, in iwl_mvm_rx_rx_mpdu() 469 iwl_fw_dbg_collect_trig(&mvm->fwrt, trig, in iwl_mvm_rx_rx_mpdu() 674 trig = iwl_fw_dbg_trigger_on(&mvm->fwrt, NULL, FW_DBG_TRIGGER_STATS); in iwl_mvm_rx_stats_check_trigger() 689 iwl_fw_dbg_collect_trig(&mvm->fwrt, trig, NULL); in iwl_mvm_rx_stats_check_trigger()
|
D | tt.c | 684 mvm->fwrt.cur_fw_img != IWL_UCODE_REGULAR) { in iwl_mvm_tzone_get_temp() 735 mvm->fwrt.cur_fw_img != IWL_UCODE_REGULAR) { in iwl_mvm_tzone_set_trip_temp() 859 mvm->fwrt.cur_fw_img != IWL_UCODE_REGULAR) { in iwl_mvm_tcool_set_cur_state()
|
D | mvm.h | 884 struct iwl_fw_runtime fwrt; member 1954 iwl_fw_cancel_timestamp(&mvm->fwrt); in iwl_mvm_stop_device() 1956 iwl_fw_dbg_stop_sync(&mvm->fwrt); in iwl_mvm_stop_device() 1958 iwl_free_fw_paging(&mvm->fwrt); in iwl_mvm_stop_device() 1959 iwl_fw_dump_conf_clear(&mvm->fwrt); in iwl_mvm_stop_device()
|
D | tx.c | 82 trig = iwl_fw_dbg_trigger_on(&mvm->fwrt, NULL, FW_DBG_TRIGGER_BA); in iwl_mvm_bar_check_trigger() 91 iwl_fw_dbg_collect_trig(&mvm->fwrt, trig, in iwl_mvm_bar_check_trigger() 811 mvm->fwrt.smem_cfg.lmac[lmac].txfifo_size[txf] - 256); in iwl_mvm_max_amsdu_size() 1396 trig = iwl_fw_dbg_trigger_on(&mvm->fwrt, NULL, in iwl_mvm_tx_status_check_trigger() 1411 iwl_fw_dbg_collect_trig(&mvm->fwrt, trig, in iwl_mvm_tx_status_check_trigger()
|
D | mac80211.c | 940 iwl_fw_dbg_collect_trig(&(_mvm)->fwrt, _trig, _fmt); \ 951 trig = iwl_fw_dbg_trigger_on(&mvm->fwrt, ieee80211_vif_to_wdev(vif), in iwl_mvm_ampdu_check_trigger() 1122 mvm->fwrt.dump.conf = FW_DBG_INVALID; in iwl_mvm_restart_cleanup() 1147 iwl_dbg_tlv_time_point(&mvm->fwrt, IWL_FW_INI_TIME_POINT_POST_INIT, in __iwl_mvm_mac_start() 1149 iwl_dbg_tlv_time_point(&mvm->fwrt, IWL_FW_INI_TIME_POINT_PERIODIC, in __iwl_mvm_mac_start() 3043 trig = iwl_fw_dbg_trigger_on(&mvm->fwrt, ieee80211_vif_to_wdev(vif), in iwl_mvm_tdls_check_trigger() 3057 iwl_fw_dbg_collect_trig(&mvm->fwrt, trig, in iwl_mvm_tdls_check_trigger() 4631 iwl_fw_dbg_trigger_simple_stop(&mvm->fwrt, in iwl_mvm_pre_channel_switch() 5062 iwl_fw_dbg_collect_trig(&(mvm)->fwrt, trig, _fmt); \ in iwl_mvm_event_mlme_callback() 5068 trig = iwl_fw_dbg_trigger_on(&mvm->fwrt, ieee80211_vif_to_wdev(vif), in iwl_mvm_event_mlme_callback() [all …]
|
D | mac-ctxt.c | 1438 iwl_dbg_tlv_time_point(&mvm->fwrt, in iwl_mvm_rx_missed_beacons_notif() 1441 trigger = iwl_fw_dbg_trigger_on(&mvm->fwrt, ieee80211_vif_to_wdev(vif), in iwl_mvm_rx_missed_beacons_notif() 1455 iwl_fw_dbg_collect_trig(&mvm->fwrt, trigger, NULL); in iwl_mvm_rx_missed_beacons_notif()
|
D | time-event.c | 268 trig = iwl_fw_dbg_trigger_on(&mvm->fwrt, in iwl_mvm_te_check_trigger() 288 iwl_fw_dbg_collect_trig(&mvm->fwrt, trig, in iwl_mvm_te_check_trigger()
|
D | rxmq.c | 1848 trig = iwl_fw_dbg_trigger_on(&mvm->fwrt, in iwl_mvm_rx_mpdu_mq() 1860 iwl_fw_dbg_collect_trig(&mvm->fwrt, trig, in iwl_mvm_rx_mpdu_mq()
|