Home
last modified time | relevance | path

Searched refs:mvm (Results 1 – 25 of 49) sorted by relevance

12

/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dfw.c37 static int iwl_send_tx_ant_cfg(struct iwl_mvm *mvm, u8 valid_tx_ant) in iwl_send_tx_ant_cfg() argument
43 IWL_DEBUG_FW(mvm, "select valid tx ant: %u\n", valid_tx_ant); in iwl_send_tx_ant_cfg()
44 return iwl_mvm_send_cmd_pdu(mvm, TX_ANT_CONFIGURATION_CMD, 0, in iwl_send_tx_ant_cfg()
48 static int iwl_send_rss_cfg_cmd(struct iwl_mvm *mvm) in iwl_send_rss_cfg_cmd() argument
61 if (mvm->trans->num_rx_queues == 1) in iwl_send_rss_cfg_cmd()
67 1 + (i % (mvm->trans->num_rx_queues - 1)); in iwl_send_rss_cfg_cmd()
70 return iwl_mvm_send_cmd_pdu(mvm, RSS_CONFIG_CMD, 0, sizeof(cmd), &cmd); in iwl_send_rss_cfg_cmd()
73 static int iwl_mvm_send_dqa_cmd(struct iwl_mvm *mvm) in iwl_mvm_send_dqa_cmd() argument
81 ret = iwl_mvm_send_cmd_pdu(mvm, cmd_id, 0, sizeof(dqa_cmd), &dqa_cmd); in iwl_mvm_send_dqa_cmd()
83 IWL_ERR(mvm, "Failed to send DQA enabling command: %d\n", ret); in iwl_mvm_send_dqa_cmd()
[all …]
H A Dtt.c13 void iwl_mvm_enter_ctkill(struct iwl_mvm *mvm) in iwl_mvm_enter_ctkill() argument
15 struct iwl_mvm_tt_mgmt *tt = &mvm->thermal_throttle; in iwl_mvm_enter_ctkill()
18 if (test_bit(IWL_MVM_STATUS_HW_CTKILL, &mvm->status)) in iwl_mvm_enter_ctkill()
21 IWL_ERR(mvm, "Enter CT Kill\n"); in iwl_mvm_enter_ctkill()
22 iwl_mvm_set_hw_ctkill_state(mvm, true); in iwl_mvm_enter_ctkill()
24 if (!iwl_mvm_is_tt_in_fw(mvm)) { in iwl_mvm_enter_ctkill()
33 if (!mvm->temperature_test) in iwl_mvm_enter_ctkill()
38 static void iwl_mvm_exit_ctkill(struct iwl_mvm *mvm) in iwl_mvm_exit_ctkill() argument
40 if (!test_bit(IWL_MVM_STATUS_HW_CTKILL, &mvm->status)) in iwl_mvm_exit_ctkill()
43 IWL_ERR(mvm, "Exit CT Kill\n"); in iwl_mvm_exit_ctkill()
[all …]
H A Dptp.c23 static void iwl_mvm_ptp_update_new_read(struct iwl_mvm *mvm, u32 gp2) in iwl_mvm_ptp_update_new_read() argument
28 if (gp2 < mvm->ptp_data.last_gp2 && in iwl_mvm_ptp_update_new_read()
29 mvm->ptp_data.last_gp2 - gp2 < IWL_PTP_WRAP_THRESHOLD_USEC) { in iwl_mvm_ptp_update_new_read()
30 IWL_DEBUG_INFO(mvm, in iwl_mvm_ptp_update_new_read()
32 gp2, mvm->ptp_data.last_gp2); in iwl_mvm_ptp_update_new_read()
36 if (gp2 < mvm->ptp_data.last_gp2) { in iwl_mvm_ptp_update_new_read()
37 mvm->ptp_data.wrap_counter++; in iwl_mvm_ptp_update_new_read()
38 IWL_DEBUG_INFO(mvm, in iwl_mvm_ptp_update_new_read()
40 mvm->ptp_data.wrap_counter); in iwl_mvm_ptp_update_new_read()
43 mvm->ptp_data.last_gp2 = gp2; in iwl_mvm_ptp_update_new_read()
[all …]
H A Dops.c84 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); in iwl_mvm_nic_config() local
87 u32 phy_config = iwl_mvm_get_phy_config(mvm); in iwl_mvm_nic_config()
96 IWL_DEBUG_INFO(mvm, "Radio type=0x%x-0x%x-0x%x\n", radio_cfg_type, in iwl_mvm_nic_config()
99 if (mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) in iwl_mvm_nic_config()
103 reg_val = CSR_HW_REV_STEP_DASH(mvm->trans->hw_rev); in iwl_mvm_nic_config()
121 if (mvm->trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_8000) in iwl_mvm_nic_config()
124 if (iwl_fw_dbg_is_d3_debug_enabled(&mvm->fwrt)) in iwl_mvm_nic_config()
127 iwl_trans_set_bits_mask(mvm->trans, CSR_HW_IF_CONFIG_REG, in iwl_mvm_nic_config()
142 if (!mvm->trans->cfg->apmg_not_supported) in iwl_mvm_nic_config()
143 iwl_set_bits_mask_prph(mvm->trans, APMG_PS_CTRL_REG, in iwl_mvm_nic_config()
[all …]
H A Dtime-event.c25 void iwl_mvm_te_clear_data(struct iwl_mvm *mvm, in iwl_mvm_te_clear_data() argument
28 lockdep_assert_held(&mvm->time_event_lock); in iwl_mvm_te_clear_data()
49 struct iwl_mvm *mvm = container_of(wk, struct iwl_mvm, roc_done_wk); in iwl_mvm_roc_done_wk() local
58 clear_bit(IWL_MVM_STATUS_ROC_RUNNING, &mvm->status); in iwl_mvm_roc_done_wk()
69 mutex_lock(&mvm->mutex); in iwl_mvm_roc_done_wk()
70 if (test_and_clear_bit(IWL_MVM_STATUS_NEED_FLUSH_P2P, &mvm->status)) { in iwl_mvm_roc_done_wk()
80 if (!WARN_ON(!mvm->p2p_device_vif)) { in iwl_mvm_roc_done_wk()
81 struct ieee80211_vif *vif = mvm->p2p_device_vif; in iwl_mvm_roc_done_wk()
84 iwl_mvm_flush_sta(mvm, mvmvif->deflink.bcast_sta.sta_id, in iwl_mvm_roc_done_wk()
87 if (mvm->mld_api_is_used) { in iwl_mvm_roc_done_wk()
[all …]
H A Dmac80211.c92 static void iwl_mvm_reset_phy_ctxts(struct iwl_mvm *mvm) in iwl_mvm_reset_phy_ctxts() argument
96 memset(mvm->phy_ctxts, 0, sizeof(mvm->phy_ctxts)); in iwl_mvm_reset_phy_ctxts()
98 mvm->phy_ctxts[i].id = i; in iwl_mvm_reset_phy_ctxts()
99 mvm->phy_ctxts[i].ref = 0; in iwl_mvm_reset_phy_ctxts()
110 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); in iwl_mvm_get_regdomain() local
114 IWL_DEBUG_LAR(mvm, "Getting regdomain data for %s from FW\n", alpha2); in iwl_mvm_get_regdomain()
116 lockdep_assert_held(&mvm->mutex); in iwl_mvm_get_regdomain()
118 resp = iwl_mvm_update_mcc(mvm, alpha2, src_id); in iwl_mvm_get_regdomain()
120 IWL_DEBUG_LAR(mvm, "Could not get update from FW %d\n", in iwl_mvm_get_regdomain()
132 resp_ver = iwl_fw_lookup_notif_ver(mvm->fw, IWL_ALWAYS_LONG_GROUP, in iwl_mvm_get_regdomain()
[all …]
H A Dtdls.c16 void iwl_mvm_teardown_tdls_peers(struct iwl_mvm *mvm) in iwl_mvm_teardown_tdls_peers() argument
22 lockdep_assert_held(&mvm->mutex); in iwl_mvm_teardown_tdls_peers()
24 for (i = 0; i < mvm->fw->ucode_capa.num_stations; i++) { in iwl_mvm_teardown_tdls_peers()
25 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[i], in iwl_mvm_teardown_tdls_peers()
26 lockdep_is_held(&mvm->mutex)); in iwl_mvm_teardown_tdls_peers()
38 int iwl_mvm_tdls_sta_count(struct iwl_mvm *mvm, struct ieee80211_vif *vif) in iwl_mvm_tdls_sta_count() argument
45 lockdep_assert_held(&mvm->mutex); in iwl_mvm_tdls_sta_count()
47 for (i = 0; i < mvm->fw->ucode_capa.num_stations; i++) { in iwl_mvm_tdls_sta_count()
48 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[i], in iwl_mvm_tdls_sta_count()
49 lockdep_is_held(&mvm->mutex)); in iwl_mvm_tdls_sta_count()
[all …]
H A Dsta.c18 static inline int iwl_mvm_add_sta_cmd_size(struct iwl_mvm *mvm) in iwl_mvm_add_sta_cmd_size() argument
20 if (iwl_mvm_has_new_rx_api(mvm) || in iwl_mvm_add_sta_cmd_size()
21 fw_has_api(&mvm->fw->ucode_capa, IWL_UCODE_TLV_API_STA_TYPE)) in iwl_mvm_add_sta_cmd_size()
27 int iwl_mvm_find_free_sta_id(struct iwl_mvm *mvm, enum nl80211_iftype iftype) in iwl_mvm_find_free_sta_id() argument
33 WARN_ON_ONCE(test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status)); in iwl_mvm_find_free_sta_id()
35 lockdep_assert_held(&mvm->mutex); in iwl_mvm_find_free_sta_id()
42 for (sta_id = 0; sta_id < mvm->fw->ucode_capa.num_stations; sta_id++) { in iwl_mvm_find_free_sta_id()
46 if (!rcu_dereference_protected(mvm->fw_id_to_mac_id[sta_id], in iwl_mvm_find_free_sta_id()
47 lockdep_is_held(&mvm->mutex))) in iwl_mvm_find_free_sta_id()
128 int iwl_mvm_sta_send_to_fw(struct iwl_mvm *mvm, struct ieee80211_sta *sta, in iwl_mvm_sta_send_to_fw() argument
[all …]
H A Dmld-mac80211.c10 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); in iwl_mvm_mld_mac_add_interface() local
14 mutex_lock(&mvm->mutex); in iwl_mvm_mld_mac_add_interface()
16 iwl_mvm_mac_init_mvmvif(mvm, mvmvif); in iwl_mvm_mld_mac_add_interface()
18 mvmvif->mvm = mvm; in iwl_mvm_mld_mac_add_interface()
26 if (test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status)) in iwl_mvm_mld_mac_add_interface()
31 ret = iwl_mvm_mac_ctxt_init(mvm, vif); in iwl_mvm_mld_mac_add_interface()
35 rcu_assign_pointer(mvm->vif_id_to_mac[mvmvif->id], vif); in iwl_mvm_mld_mac_add_interface()
43 ret = iwl_mvm_mld_mac_ctxt_add(mvm, vif); in iwl_mvm_mld_mac_add_interface()
48 ret = iwl_mvm_disable_beacon_filter(mvm, vif, 0); in iwl_mvm_mld_mac_add_interface()
52 if (!mvm->bf_allowed_vif && in iwl_mvm_mld_mac_add_interface()
[all …]
H A Dutils.c21 int iwl_mvm_send_cmd(struct iwl_mvm *mvm, struct iwl_host_cmd *cmd) in iwl_mvm_send_cmd() argument
26 if (WARN_ON(mvm->d3_test_active)) in iwl_mvm_send_cmd()
36 lockdep_assert_held(&mvm->mutex); in iwl_mvm_send_cmd()
38 ret = iwl_trans_send_cmd(mvm->trans, cmd); in iwl_mvm_send_cmd()
57 int iwl_mvm_send_cmd_pdu(struct iwl_mvm *mvm, u32 id, in iwl_mvm_send_cmd_pdu() argument
67 return iwl_mvm_send_cmd(mvm, &cmd); in iwl_mvm_send_cmd_pdu()
73 int iwl_mvm_send_cmd_status(struct iwl_mvm *mvm, struct iwl_host_cmd *cmd, in iwl_mvm_send_cmd_status() argument
80 lockdep_assert_held(&mvm->mutex); in iwl_mvm_send_cmd_status()
83 if (WARN_ON(mvm->d3_test_active)) in iwl_mvm_send_cmd_status()
97 ret = iwl_trans_send_cmd(mvm->trans, cmd); in iwl_mvm_send_cmd_status()
[all …]
H A Dmvm.h369 struct iwl_mvm *mvm; member
662 struct iwl_mvm *mvm; member
712 struct iwl_mvm *mvm; member
1251 static inline bool iwl_mvm_is_radio_killed(struct iwl_mvm *mvm) in iwl_mvm_is_radio_killed() argument
1253 return test_bit(IWL_MVM_STATUS_HW_RFKILL, &mvm->status) || in iwl_mvm_is_radio_killed()
1254 test_bit(IWL_MVM_STATUS_HW_CTKILL, &mvm->status); in iwl_mvm_is_radio_killed()
1257 static inline bool iwl_mvm_is_radio_hw_killed(struct iwl_mvm *mvm) in iwl_mvm_is_radio_hw_killed() argument
1259 return test_bit(IWL_MVM_STATUS_HW_RFKILL, &mvm->status); in iwl_mvm_is_radio_hw_killed()
1262 static inline bool iwl_mvm_firmware_running(struct iwl_mvm *mvm) in iwl_mvm_firmware_running() argument
1264 return test_bit(IWL_MVM_STATUS_FIRMWARE_RUNNING, &mvm->status); in iwl_mvm_firmware_running()
[all …]
H A Dnvm.c34 static int iwl_nvm_write_chunk(struct iwl_mvm *mvm, u16 section, in iwl_nvm_write_chunk() argument
55 ret = iwl_mvm_send_cmd(mvm, &cmd); in iwl_nvm_write_chunk()
63 IWL_ERR(mvm, in iwl_nvm_write_chunk()
73 static int iwl_nvm_read_chunk(struct iwl_mvm *mvm, u16 section, in iwl_nvm_read_chunk() argument
94 ret = iwl_mvm_send_cmd(mvm, &cmd); in iwl_nvm_read_chunk()
117 IWL_DEBUG_EEPROM(mvm->trans->dev, in iwl_nvm_read_chunk()
122 IWL_DEBUG_EEPROM(mvm->trans->dev, in iwl_nvm_read_chunk()
124 ret, mvm->trans->name); in iwl_nvm_read_chunk()
131 IWL_ERR(mvm, "NVM ACCESS response with invalid offset %d\n", in iwl_nvm_read_chunk()
146 static int iwl_nvm_write_section(struct iwl_mvm *mvm, u16 section, in iwl_nvm_write_section() argument
[all …]
H A Dled.c11 static void iwl_mvm_send_led_fw_cmd(struct iwl_mvm *mvm, bool on) in iwl_mvm_send_led_fw_cmd() argument
24 if (!iwl_mvm_firmware_running(mvm)) in iwl_mvm_send_led_fw_cmd()
27 err = iwl_mvm_send_cmd(mvm, &cmd); in iwl_mvm_send_led_fw_cmd()
30 IWL_WARN(mvm, "LED command failed: %d\n", err); in iwl_mvm_send_led_fw_cmd()
33 static void iwl_mvm_led_set(struct iwl_mvm *mvm, bool on) in iwl_mvm_led_set() argument
35 if (fw_has_capa(&mvm->fw->ucode_capa, in iwl_mvm_led_set()
37 iwl_mvm_send_led_fw_cmd(mvm, on); in iwl_mvm_led_set()
41 iwl_write32(mvm->trans, CSR_LED_REG, in iwl_mvm_led_set()
48 struct iwl_mvm *mvm = container_of(led_cdev, struct iwl_mvm, led); in iwl_led_brightness_set() local
50 iwl_mvm_led_set(mvm, brightness > 0); in iwl_led_brightness_set()
[all …]
H A Dcoex.c92 iwl_get_coex_type(struct iwl_mvm *mvm, const struct ieee80211_vif *vif) in iwl_get_coex_type() argument
119 if (mvm->cfg->bt_shared_single_ant) { in iwl_get_coex_type()
125 primary_ch_phy_id = le32_to_cpu(mvm->last_bt_ci_cmd.primary_ch_phy_id); in iwl_get_coex_type()
127 le32_to_cpu(mvm->last_bt_ci_cmd.secondary_ch_phy_id); in iwl_get_coex_type()
130 ret = le32_to_cpu(mvm->last_bt_notif.primary_ch_lut); in iwl_get_coex_type()
132 ret = le32_to_cpu(mvm->last_bt_notif.secondary_ch_lut); in iwl_get_coex_type()
140 int iwl_mvm_send_bt_init_conf(struct iwl_mvm *mvm) in iwl_mvm_send_bt_init_conf() argument
145 lockdep_assert_held(&mvm->mutex); in iwl_mvm_send_bt_init_conf()
147 if (unlikely(mvm->bt_force_ant_mode != BT_FORCE_ANT_DIS)) { in iwl_mvm_send_bt_init_conf()
148 switch (mvm->bt_force_ant_mode) { in iwl_mvm_send_bt_init_conf()
[all …]
H A Ddebugfs.c26 struct iwl_mvm *mvm = file->private_data; in iwl_dbgfs_ctdp_budget_read() local
30 if (!iwl_mvm_is_ctdp_supported(mvm)) in iwl_dbgfs_ctdp_budget_read()
33 if (!iwl_mvm_firmware_running(mvm) || in iwl_dbgfs_ctdp_budget_read()
34 mvm->fwrt.cur_fw_img != IWL_UCODE_REGULAR) in iwl_dbgfs_ctdp_budget_read()
37 mutex_lock(&mvm->mutex); in iwl_dbgfs_ctdp_budget_read()
38 budget = iwl_mvm_ctdp_command(mvm, CTDP_CMD_OPERATION_REPORT, 0); in iwl_dbgfs_ctdp_budget_read()
39 mutex_unlock(&mvm->mutex); in iwl_dbgfs_ctdp_budget_read()
49 static ssize_t iwl_dbgfs_stop_ctdp_write(struct iwl_mvm *mvm, char *buf, in iwl_dbgfs_stop_ctdp_write() argument
54 if (!iwl_mvm_is_ctdp_supported(mvm)) in iwl_dbgfs_stop_ctdp_write()
57 if (!iwl_mvm_firmware_running(mvm) || in iwl_dbgfs_stop_ctdp_write()
[all …]
H A Dscan.c109 static inline void *iwl_mvm_get_scan_req_umac_data(struct iwl_mvm *mvm) in iwl_mvm_get_scan_req_umac_data() argument
111 struct iwl_scan_req_umac *cmd = mvm->scan_cmd; in iwl_mvm_get_scan_req_umac_data()
113 if (iwl_mvm_is_adaptive_dwell_v2_supported(mvm)) in iwl_mvm_get_scan_req_umac_data()
116 if (iwl_mvm_is_adaptive_dwell_supported(mvm)) in iwl_mvm_get_scan_req_umac_data()
119 if (iwl_mvm_cdb_scan_api(mvm)) in iwl_mvm_get_scan_req_umac_data()
126 iwl_mvm_get_scan_req_umac_channel(struct iwl_mvm *mvm) in iwl_mvm_get_scan_req_umac_channel() argument
128 struct iwl_scan_req_umac *cmd = mvm->scan_cmd; in iwl_mvm_get_scan_req_umac_channel()
130 if (iwl_mvm_is_adaptive_dwell_v2_supported(mvm)) in iwl_mvm_get_scan_req_umac_channel()
133 if (iwl_mvm_is_adaptive_dwell_supported(mvm)) in iwl_mvm_get_scan_req_umac_channel()
136 if (iwl_mvm_cdb_scan_api(mvm)) in iwl_mvm_get_scan_req_umac_channel()
[all …]
H A Dmld-sta.c9 u32 iwl_mvm_sta_fw_id_mask(struct iwl_mvm *mvm, struct ieee80211_sta *sta, in iwl_mvm_sta_fw_id_mask() argument
38 lockdep_is_held(&mvm->mutex)); in iwl_mvm_sta_fw_id_mask()
48 static int iwl_mvm_mld_send_sta_cmd(struct iwl_mvm *mvm, in iwl_mvm_mld_send_sta_cmd() argument
51 int ret = iwl_mvm_send_cmd_pdu(mvm, in iwl_mvm_mld_send_sta_cmd()
55 IWL_ERR(mvm, "STA_CONFIG_CMD send failed, ret=0x%x\n", ret); in iwl_mvm_mld_send_sta_cmd()
62 static int iwl_mvm_mld_add_int_sta_to_fw(struct iwl_mvm *mvm, in iwl_mvm_mld_add_int_sta_to_fw() argument
68 lockdep_assert_held(&mvm->mutex); in iwl_mvm_mld_add_int_sta_to_fw()
77 if (fw_has_capa(&mvm->fw->ucode_capa, in iwl_mvm_mld_add_int_sta_to_fw()
87 return iwl_mvm_mld_send_sta_cmd(mvm, &cmd); in iwl_mvm_mld_add_int_sta_to_fw()
95 static int iwl_mvm_mld_rm_sta_from_fw(struct iwl_mvm *mvm, u32 sta_id) in iwl_mvm_mld_rm_sta_from_fw() argument
[all …]
H A Dsta.h444 u16 iwl_mvm_tid_queued(struct iwl_mvm *mvm, struct iwl_mvm_tid_data *tid_data);
475 int iwl_mvm_sta_send_to_fw(struct iwl_mvm *mvm, struct ieee80211_sta *sta,
477 int iwl_mvm_find_free_sta_id(struct iwl_mvm *mvm, enum nl80211_iftype iftype);
478 int iwl_mvm_sta_init(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
480 int iwl_mvm_add_sta(struct iwl_mvm *mvm,
484 static inline int iwl_mvm_update_sta(struct iwl_mvm *mvm, in iwl_mvm_update_sta() argument
488 return iwl_mvm_sta_send_to_fw(mvm, sta, true, 0); in iwl_mvm_update_sta()
491 void iwl_mvm_realloc_queues_after_restart(struct iwl_mvm *mvm,
493 int iwl_mvm_wait_sta_queues_empty(struct iwl_mvm *mvm,
495 bool iwl_mvm_sta_del(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
[all …]
H A Dftm-initiator.c43 int iwl_mvm_ftm_add_pasn_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif, in iwl_mvm_ftm_add_pasn_sta() argument
51 lockdep_assert_held(&mvm->mutex); in iwl_mvm_ftm_add_pasn_sta()
56 iwl_mvm_ftm_remove_pasn_sta(mvm, addr); in iwl_mvm_ftm_add_pasn_sta()
90 sta = rcu_dereference(mvm->fw_id_to_mac_id[sta_id]); in iwl_mvm_ftm_add_pasn_sta()
100 IWL_ERR(mvm, "Invalid key length: tk_len=%u hltk_len=%u\n", in iwl_mvm_ftm_add_pasn_sta()
106 IWL_ERR(mvm, "TK and HLTK not set\n"); in iwl_mvm_ftm_add_pasn_sta()
120 list_add_tail(&pasn->list, &mvm->ftm_initiator.pasn_list); in iwl_mvm_ftm_add_pasn_sta()
127 void iwl_mvm_ftm_remove_pasn_sta(struct iwl_mvm *mvm, u8 *addr) in iwl_mvm_ftm_remove_pasn_sta() argument
131 lockdep_assert_held(&mvm->mutex); in iwl_mvm_ftm_remove_pasn_sta()
133 list_for_each_entry_safe(entry, prev, &mvm->ftm_initiator.pasn_list, in iwl_mvm_ftm_remove_pasn_sta()
[all …]
H A Dd3.c23 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); in iwl_mvm_set_rekey_data() local
26 mutex_lock(&mvm->mutex); in iwl_mvm_set_rekey_data()
37 mutex_unlock(&mvm->mutex); in iwl_mvm_set_rekey_data()
115 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); in iwl_mvm_wowlan_program_keys() local
155 mutex_lock(&mvm->mutex); in iwl_mvm_wowlan_program_keys()
156 ret = iwl_mvm_send_cmd_pdu(mvm, WEP_KEY, 0, sizeof(wkc), &wkc); in iwl_mvm_wowlan_program_keys()
159 mvm->ptk_ivlen = key->iv_len; in iwl_mvm_wowlan_program_keys()
160 mvm->ptk_icvlen = key->icv_len; in iwl_mvm_wowlan_program_keys()
161 mvm->gtk_ivlen = key->iv_len; in iwl_mvm_wowlan_program_keys()
162 mvm->gtk_icvlen = key->icv_len; in iwl_mvm_wowlan_program_keys()
[all …]
H A Dmac-ctxt.c35 struct iwl_mvm *mvm; member
173 void iwl_mvm_mac_ctxt_recalc_tsf_id(struct iwl_mvm *mvm, in iwl_mvm_mac_ctxt_recalc_tsf_id() argument
178 .mvm = mvm, in iwl_mvm_mac_ctxt_recalc_tsf_id()
186 mvm->hw, IEEE80211_IFACE_ITER_RESUME_ALL, in iwl_mvm_mac_ctxt_recalc_tsf_id()
196 int iwl_mvm_mac_ctxt_init(struct iwl_mvm *mvm, struct ieee80211_vif *vif) in iwl_mvm_mac_ctxt_init() argument
200 .mvm = mvm, in iwl_mvm_mac_ctxt_init()
210 lockdep_assert_held(&mvm->mutex); in iwl_mvm_mac_ctxt_init()
231 if (!mvm->mld_api_is_used) { in iwl_mvm_mac_ctxt_init()
245 mvm->hw, IEEE80211_IFACE_ITER_RESUME_ALL, in iwl_mvm_mac_ctxt_init()
262 if (WARN_ON_ONCE(test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status))) in iwl_mvm_mac_ctxt_init()
[all …]
H A Dpower.c22 int iwl_mvm_beacon_filter_send_cmd(struct iwl_mvm *mvm, in iwl_mvm_beacon_filter_send_cmd() argument
28 IWL_DEBUG_POWER(mvm, "ba_enable_beacon_abort is: %d\n", in iwl_mvm_beacon_filter_send_cmd()
30 IWL_DEBUG_POWER(mvm, "ba_escape_timer is: %d\n", in iwl_mvm_beacon_filter_send_cmd()
32 IWL_DEBUG_POWER(mvm, "bf_debug_flag is: %d\n", in iwl_mvm_beacon_filter_send_cmd()
34 IWL_DEBUG_POWER(mvm, "bf_enable_beacon_filter is: %d\n", in iwl_mvm_beacon_filter_send_cmd()
36 IWL_DEBUG_POWER(mvm, "bf_energy_delta is: %d\n", in iwl_mvm_beacon_filter_send_cmd()
38 IWL_DEBUG_POWER(mvm, "bf_escape_timer is: %d\n", in iwl_mvm_beacon_filter_send_cmd()
40 IWL_DEBUG_POWER(mvm, "bf_roaming_energy_delta is: %d\n", in iwl_mvm_beacon_filter_send_cmd()
42 IWL_DEBUG_POWER(mvm, "bf_roaming_state is: %d\n", in iwl_mvm_beacon_filter_send_cmd()
44 IWL_DEBUG_POWER(mvm, "bf_temp_threshold is: %d\n", in iwl_mvm_beacon_filter_send_cmd()
[all …]
H A Dphy-ctxt.c78 static void iwl_mvm_phy_ctxt_set_rxchain(struct iwl_mvm *mvm, in iwl_mvm_phy_ctxt_set_rxchain() argument
97 if (active_cnt == 1 && iwl_mvm_rx_diversity_allowed(mvm, ctxt)) { in iwl_mvm_phy_ctxt_set_rxchain()
102 *rxchain_info = cpu_to_le32(iwl_mvm_get_valid_rx_ant(mvm) << in iwl_mvm_phy_ctxt_set_rxchain()
108 if (unlikely(mvm->dbgfs_rx_phyinfo)) in iwl_mvm_phy_ctxt_set_rxchain()
109 *rxchain_info = cpu_to_le32(mvm->dbgfs_rx_phyinfo); in iwl_mvm_phy_ctxt_set_rxchain()
116 static void iwl_mvm_phy_ctxt_cmd_data_v1(struct iwl_mvm *mvm, in iwl_mvm_phy_ctxt_cmd_data_v1() argument
123 iwl_mvm_chan_info_cmd_tail(mvm, &cmd->ci); in iwl_mvm_phy_ctxt_cmd_data_v1()
126 iwl_mvm_set_chan_info_chandef(mvm, &cmd->ci, chandef); in iwl_mvm_phy_ctxt_cmd_data_v1()
128 iwl_mvm_phy_ctxt_set_rxchain(mvm, ctxt, &tail->rxchain_info, in iwl_mvm_phy_ctxt_cmd_data_v1()
131 tail->txchain_info = cpu_to_le32(iwl_mvm_get_valid_tx_ant(mvm)); in iwl_mvm_phy_ctxt_cmd_data_v1()
[all …]
H A Drx.c20 void iwl_mvm_rx_rx_phy_cmd(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb) in iwl_mvm_rx_rx_phy_cmd() argument
25 if (unlikely(pkt_len < sizeof(mvm->last_phy_info))) in iwl_mvm_rx_rx_phy_cmd()
28 memcpy(&mvm->last_phy_info, pkt->data, sizeof(mvm->last_phy_info)); in iwl_mvm_rx_rx_phy_cmd()
29 mvm->ampdu_ref++; in iwl_mvm_rx_rx_phy_cmd()
32 if (mvm->last_phy_info.phy_flags & cpu_to_le16(RX_RES_PHY_FLAGS_AGG)) { in iwl_mvm_rx_rx_phy_cmd()
33 spin_lock(&mvm->drv_stats_lock); in iwl_mvm_rx_rx_phy_cmd()
34 mvm->drv_rx_stats.ampdu_count++; in iwl_mvm_rx_rx_phy_cmd()
35 spin_unlock(&mvm->drv_stats_lock); in iwl_mvm_rx_rx_phy_cmd()
45 static void iwl_mvm_pass_packet_to_mac80211(struct iwl_mvm *mvm, in iwl_mvm_pass_packet_to_mac80211() argument
93 ieee80211_rx_napi(mvm->hw, sta, skb, napi); in iwl_mvm_pass_packet_to_mac80211()
[all …]
H A Dmld-mac.c7 static void iwl_mvm_mld_set_he_support(struct iwl_mvm *mvm, in iwl_mvm_mld_set_he_support() argument
17 static void iwl_mvm_mld_mac_ctxt_cmd_common(struct iwl_mvm *mvm, in iwl_mvm_mld_mac_ctxt_cmd_common() argument
40 cpu_to_le32(!iwl_mvm_is_nic_ack_enabled(mvm, vif)); in iwl_mvm_mld_mac_ctxt_cmd_common()
54 iwl_mvm_mld_set_he_support(mvm, vif, cmd); in iwl_mvm_mld_mac_ctxt_cmd_common()
66 iwl_mvm_mld_set_he_support(mvm, vif, cmd); in iwl_mvm_mld_mac_ctxt_cmd_common()
82 static int iwl_mvm_mld_mac_ctxt_send_cmd(struct iwl_mvm *mvm, in iwl_mvm_mld_mac_ctxt_send_cmd() argument
85 int ret = iwl_mvm_send_cmd_pdu(mvm, in iwl_mvm_mld_mac_ctxt_send_cmd()
89 IWL_ERR(mvm, "Failed to send MAC_CONFIG_CMD (action:%d): %d\n", in iwl_mvm_mld_mac_ctxt_send_cmd()
94 static int iwl_mvm_mld_mac_ctxt_cmd_sta(struct iwl_mvm *mvm, in iwl_mvm_mld_mac_ctxt_cmd_sta() argument
104 iwl_mvm_mld_mac_ctxt_cmd_common(mvm, vif, &cmd, action); in iwl_mvm_mld_mac_ctxt_cmd_sta()
[all …]

12