/drivers/net/wireless/iwlwifi/mvm/ |
H A D | led.c | 67 #include "mvm.h" 70 static void iwl_mvm_led_enable(struct iwl_mvm *mvm) argument 72 iwl_write32(mvm->trans, CSR_LED_REG, CSR_LED_REG_TURN_ON); 76 static void iwl_mvm_led_disable(struct iwl_mvm *mvm) argument 78 iwl_write32(mvm->trans, CSR_LED_REG, CSR_LED_REG_TURN_OFF); 84 struct iwl_mvm *mvm = container_of(led_cdev, struct iwl_mvm, led); local 86 iwl_mvm_led_enable(mvm); 88 iwl_mvm_led_disable(mvm); 91 int iwl_mvm_leds_init(struct iwl_mvm *mvm) argument 98 IWL_ERR(mvm, "Blin 129 iwl_mvm_leds_exit(struct iwl_mvm *mvm) argument [all...] |
H A D | fw.c | 75 #include "mvm.h" 89 iwl_get_ucode_image(struct iwl_mvm *mvm, enum iwl_ucode_type ucode_type) argument 94 return &mvm->fw->img[ucode_type]; 97 static int iwl_send_tx_ant_cfg(struct iwl_mvm *mvm, u8 valid_tx_ant) argument 103 IWL_DEBUG_FW(mvm, "select valid tx ant: %u\n", valid_tx_ant); 104 return iwl_mvm_send_cmd_pdu(mvm, TX_ANT_CONFIGURATION_CMD, 0, 111 struct iwl_mvm *mvm = local 120 mvm->support_umac_log = false; 121 mvm->error_event_table = 123 mvm 178 iwl_mvm_load_ucode_wait_alive(struct iwl_mvm *mvm, enum iwl_ucode_type ucode_type) argument 257 iwl_send_phy_cfg_cmd(struct iwl_mvm *mvm) argument 276 iwl_run_init_mvm_ucode(struct iwl_mvm *mvm, bool read_nvm) argument 393 iwl_mvm_up(struct iwl_mvm *mvm) argument 515 iwl_mvm_load_d3_fw(struct iwl_mvm *mvm) argument 559 iwl_mvm_rx_card_state_notif(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd) argument 576 iwl_mvm_rx_radio_ver(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd) argument [all...] |
H A D | mac80211.c | 78 #include "mvm.h" 210 void iwl_mvm_ref(struct iwl_mvm *mvm, enum iwl_mvm_ref_type ref_type) argument 212 if (!iwl_mvm_is_d0i3_supported(mvm)) 215 IWL_DEBUG_RPM(mvm, "Take mvm reference - type %d\n", ref_type); 216 spin_lock_bh(&mvm->refs_lock); 217 mvm->refs[ref_type]++; 218 spin_unlock_bh(&mvm->refs_lock); 219 iwl_trans_ref(mvm->trans); 222 void iwl_mvm_unref(struct iwl_mvm *mvm, enu argument 234 iwl_mvm_unref_all_except(struct iwl_mvm *mvm, enum iwl_mvm_ref_type except_ref) argument 256 iwl_mvm_ref_sync(struct iwl_mvm *mvm, enum iwl_mvm_ref_type ref_type) argument 271 iwl_mvm_reset_phy_ctxts(struct iwl_mvm *mvm) argument 282 iwl_mvm_mac_setup_register(struct iwl_mvm *mvm) argument 473 iwl_mvm_defer_tx(struct iwl_mvm *mvm, struct ieee80211_sta *sta, struct sk_buff *skb) argument 518 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 580 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 665 struct iwl_mvm *mvm = data; local 683 iwl_mvm_fw_error_dump(struct iwl_mvm *mvm) argument 783 iwl_mvm_restart_cleanup(struct iwl_mvm *mvm) argument 826 __iwl_mvm_mac_start(struct iwl_mvm *mvm) argument 852 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 864 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 882 __iwl_mvm_mac_stop(struct iwl_mvm *mvm) argument 910 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 927 iwl_mvm_get_free_phy_ctxt(struct iwl_mvm *mvm) argument 941 iwl_mvm_set_tx_power(struct iwl_mvm *mvm, struct ieee80211_vif *vif, s8 tx_power) argument 958 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 1087 iwl_mvm_prepare_mac_removal(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 1119 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 1175 struct iwl_mvm *mvm; member in struct:iwl_mvm_mc_iter_data 1183 struct iwl_mvm *mvm = data->mvm; local 1204 iwl_mvm_recalc_multicast(struct iwl_mvm *mvm) argument 1223 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 1262 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 1282 struct iwl_mvm *mvm; member in struct:iwl_bcast_iter_data 1327 struct iwl_mvm *mvm = data->mvm; local 1378 iwl_mvm_bcast_filter_build_cmd(struct iwl_mvm *mvm, struct iwl_bcast_filter_cmd *cmd) argument 1412 iwl_mvm_configure_bcast_filter(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 1427 iwl_mvm_configure_bcast_filter(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 1434 iwl_mvm_bss_info_changed_station(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_bss_conf *bss_conf, u32 changes) argument 1593 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 1677 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 1719 iwl_mvm_bss_info_changed_ap_ibss(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_bss_conf *bss_conf, u32 changes) argument 1753 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 1785 iwl_mvm_cancel_scan_wait_notif(struct iwl_mvm *mvm, enum iwl_scan_status scan_type) argument 1830 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 1866 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 1882 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 1897 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 1910 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 1951 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 1975 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 2073 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 2084 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 2095 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 2118 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 2147 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 2201 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 2218 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 2305 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 2317 struct iwl_mvm *mvm = local 2349 iwl_mvm_send_aux_roc_cmd(struct iwl_mvm *mvm, struct ieee80211_channel *channel, struct ieee80211_vif *vif, int duration) argument 2438 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 2561 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 2573 __iwl_mvm_add_chanctx(struct iwl_mvm *mvm, struct ieee80211_chanctx_conf *ctx) argument 2607 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 2617 __iwl_mvm_remove_chanctx(struct iwl_mvm *mvm, struct ieee80211_chanctx_conf *ctx) argument 2631 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 2642 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 2663 __iwl_mvm_assign_vif_chanctx(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_chanctx_conf *ctx, bool switching_chanctx) argument 2757 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 2767 __iwl_mvm_unassign_vif_chanctx(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_chanctx_conf *ctx, bool switching_chanctx) argument 2830 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 2842 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 2905 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 2923 __iwl_mvm_mac_testmode_cmd(struct iwl_mvm *mvm, struct ieee80211_vif *vif, void *data, int len) argument 2972 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 2987 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 3009 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local [all...] |
H A D | ops.c | 76 #include "mvm.h" 146 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); local 150 radio_cfg_type = (mvm->fw->phy_config & FW_PHY_CFG_RADIO_TYPE) >> 152 radio_cfg_step = (mvm->fw->phy_config & FW_PHY_CFG_RADIO_STEP) >> 154 radio_cfg_dash = (mvm->fw->phy_config & FW_PHY_CFG_RADIO_DASH) >> 158 reg_val |= CSR_HW_REV_STEP(mvm->trans->hw_rev) << 160 reg_val |= CSR_HW_REV_DASH(mvm->trans->hw_rev) << 178 if (mvm->trans->cfg->device_family != IWL_DEVICE_FAMILY_8000) 181 iwl_trans_set_bits_mask(mvm->trans, CSR_HW_IF_CONFIG_REG, 191 IWL_DEBUG_INFO(mvm, "Radi 379 struct iwl_mvm *mvm; local 578 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); local 619 iwl_mvm_async_handlers_purge(struct iwl_mvm *mvm) argument 634 struct iwl_mvm *mvm = local 668 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); local 709 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); local 727 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); local 743 iwl_mvm_set_hw_ctkill_state(struct iwl_mvm *mvm, bool state) argument 755 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); local 778 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); local 804 struct iwl_mvm *mvm = local 812 iwl_mvm_nic_restart(struct iwl_mvm *mvm, bool fw_error) argument 884 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); local 893 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); local 900 struct iwl_mvm *mvm; member in struct:iwl_d0i3_iter_data 907 iwl_mvm_disallow_offloading(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct iwl_d0i3_iter_data *iter_data) argument 963 struct iwl_mvm *mvm = data->mvm; local 993 iwl_mvm_set_wowlan_data(struct iwl_mvm *mvm, struct iwl_wowlan_config_cmd_v3 *cmd, struct iwl_d0i3_iter_data *iter_data) argument 1023 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); local 1076 struct iwl_mvm *mvm = _data; local 1090 struct iwl_mvm *mvm = data; local 1098 iwl_mvm_d0i3_enable_tx(struct iwl_mvm *mvm, __le16 *qos_seq) argument 1156 struct iwl_mvm *mvm = container_of(wk, struct iwl_mvm, d0i3_exit_work); local 1195 _iwl_mvm_exit_d0i3(struct iwl_mvm *mvm) argument 1227 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); local 1239 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); local [all...] |
H A D | tt.c | 66 #include "mvm.h" 74 static void iwl_mvm_enter_ctkill(struct iwl_mvm *mvm) argument 76 u32 duration = mvm->thermal_throttle.params->ct_kill_duration; 78 if (test_bit(IWL_MVM_STATUS_HW_CTKILL, &mvm->status)) 81 IWL_ERR(mvm, "Enter CT Kill\n"); 82 iwl_mvm_set_hw_ctkill_state(mvm, true); 88 if (!mvm->temperature_test) 89 schedule_delayed_work(&mvm->thermal_throttle.ct_kill_exit, 93 static void iwl_mvm_exit_ctkill(struct iwl_mvm *mvm) argument 95 if (!test_bit(IWL_MVM_STATUS_HW_CTKILL, &mvm 105 struct iwl_mvm *mvm = local 128 iwl_mvm_get_temp_cmd(struct iwl_mvm *mvm) argument 138 iwl_mvm_get_temp(struct iwl_mvm *mvm) argument 170 struct iwl_mvm *mvm; local 216 struct iwl_mvm *mvm = _data; local 232 iwl_mvm_tt_tx_protection(struct iwl_mvm *mvm, bool enable) argument 258 iwl_mvm_tt_tx_backoff(struct iwl_mvm *mvm, u32 backoff) argument 277 iwl_mvm_tt_handler(struct iwl_mvm *mvm) argument 398 iwl_mvm_tt_initialize(struct iwl_mvm *mvm, u32 min_backoff) argument 414 iwl_mvm_tt_exit(struct iwl_mvm *mvm) argument [all...] |
H A D | tdls.c | 64 #include "mvm.h" 67 void iwl_mvm_teardown_tdls_peers(struct iwl_mvm *mvm) argument 73 lockdep_assert_held(&mvm->mutex); 76 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[i], 77 lockdep_is_held(&mvm->mutex)); 89 int iwl_mvm_tdls_sta_count(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 96 lockdep_assert_held(&mvm->mutex); 99 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[i], 100 lockdep_is_held(&mvm->mutex)); 116 void iwl_mvm_recalc_tdls_state(struct iwl_mvm *mvm, struc argument 133 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local [all...] |
H A D | time-event.h | 71 #include "mvm.h" 123 * @mvm: the mvm component 139 void iwl_mvm_protect_session(struct iwl_mvm *mvm, 146 * @mvm: the mvm component 154 void iwl_mvm_stop_session_protection(struct iwl_mvm *mvm, 160 int iwl_mvm_rx_time_event_notif(struct iwl_mvm *mvm, 166 * @mvm: the mvm componen [all...] |
H A D | nvm.c | 68 #include "mvm.h" 92 static int iwl_nvm_write_chunk(struct iwl_mvm *mvm, u16 section, argument 110 return iwl_mvm_send_cmd(mvm, &cmd); 113 static int iwl_nvm_read_chunk(struct iwl_mvm *mvm, u16 section, argument 134 ret = iwl_mvm_send_cmd(mvm, &cmd); 140 IWL_ERR(mvm, "Bad return from NVM_ACCES_COMMAND (0x%08X)\n", 163 IWL_DEBUG_EEPROM(mvm->trans->dev, 168 IWL_DEBUG_EEPROM(mvm->trans->dev, 170 ret, mvm->cfg->name); 177 IWL_ERR(mvm, "NV 192 iwl_nvm_write_section(struct iwl_mvm *mvm, u16 section, const u8 *data, u16 length) argument 226 iwl_nvm_read_section(struct iwl_mvm *mvm, u16 section, u8 *data, u32 size_read) argument 262 iwl_parse_nvm_sections(struct iwl_mvm *mvm) argument 330 iwl_mvm_read_external_nvm(struct iwl_mvm *mvm) argument 460 iwl_mvm_load_nvm_to_nic(struct iwl_mvm *mvm) argument 480 iwl_nvm_init(struct iwl_mvm *mvm, bool read_nvm_from_nic) argument [all...] |
H A D | utils.c | 71 #include "mvm.h" 78 int iwl_mvm_send_cmd(struct iwl_mvm *mvm, struct iwl_host_cmd *cmd) argument 83 if (WARN_ON(mvm->d3_test_active)) 93 lockdep_assert_held(&mvm->mutex); 95 ret = iwl_trans_send_cmd(mvm->trans, cmd); 111 int iwl_mvm_send_cmd_pdu(struct iwl_mvm *mvm, u8 id, argument 121 return iwl_mvm_send_cmd(mvm, &cmd); 127 int iwl_mvm_send_cmd_status(struct iwl_mvm *mvm, struct iwl_host_cmd *cmd, argument 134 lockdep_assert_held(&mvm->mutex); 137 if (WARN_ON(mvm 190 iwl_mvm_send_cmd_pdu_status(struct iwl_mvm *mvm, u8 id, u16 len, const void *data, u32 *status) argument 246 iwl_mvm_rx_fw_error(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd) argument 280 iwl_mvm_next_antenna(struct iwl_mvm *mvm, u8 valid, u8 last_idx) argument 410 iwl_mvm_dump_umac_error_log(struct iwl_mvm *mvm) argument 452 iwl_mvm_dump_nic_error_log(struct iwl_mvm *mvm) argument 533 iwl_mvm_enable_txq(struct iwl_mvm *mvm, int queue, u16 ssn, const struct iwl_trans_txq_scd_cfg *cfg) argument 561 iwl_mvm_disable_txq(struct iwl_mvm *mvm, int queue) argument 589 iwl_mvm_send_lq_cmd(struct iwl_mvm *mvm, struct iwl_lq_cmd *lq, bool init) argument 612 iwl_mvm_update_smps(struct iwl_mvm *mvm, struct ieee80211_vif *vif, enum iwl_mvm_smps_type_request req_type, enum ieee80211_smps_mode smps_request) argument 659 iwl_mvm_rx_diversity_allowed(struct iwl_mvm *mvm) argument 678 iwl_mvm_update_low_latency(struct iwl_mvm *mvm, struct ieee80211_vif *vif, bool value) argument 708 iwl_mvm_low_latency(struct iwl_mvm *mvm) argument 727 iwl_mvm_is_idle(struct iwl_mvm *mvm) argument [all...] |
H A D | time-event.c | 73 #include "mvm.h" 84 void iwl_mvm_te_clear_data(struct iwl_mvm *mvm, argument 87 lockdep_assert_held(&mvm->time_event_lock); 101 struct iwl_mvm *mvm = container_of(wk, struct iwl_mvm, roc_done_wk); local 111 if (test_and_clear_bit(IWL_MVM_STATUS_ROC_RUNNING, &mvm->status)) 113 if (test_and_clear_bit(IWL_MVM_STATUS_ROC_AUX_RUNNING, &mvm->status)) 114 queues |= BIT(mvm->aux_queue); 116 iwl_mvm_unref(mvm, IWL_MVM_REF_ROC); 130 iwl_mvm_flush_tx_path(mvm, queues, false); 133 static void iwl_mvm_roc_finished(struct iwl_mvm *mvm) argument 145 iwl_mvm_csa_noa_start(struct iwl_mvm *mvm) argument 180 iwl_mvm_te_check_disconnect(struct iwl_mvm *mvm, struct ieee80211_vif *vif, const char *errmsg) argument 201 iwl_mvm_te_handle_notif(struct iwl_mvm *mvm, struct iwl_mvm_time_event_data *te_data, struct iwl_time_event_notif *notif) argument 272 iwl_mvm_aux_roc_te_handle_notif(struct iwl_mvm *mvm, struct iwl_time_event_notif *notif) argument 326 iwl_mvm_rx_time_event_notif(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd) argument 356 struct iwl_mvm *mvm = local 388 struct iwl_mvm *mvm = local 414 iwl_mvm_time_event_send_add(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct iwl_mvm_time_event_data *te_data, struct iwl_time_event_cmd *te_cmd) argument 475 iwl_mvm_protect_session(struct iwl_mvm *mvm, struct ieee80211_vif *vif, u32 duration, u32 min_duration, u32 max_delay, bool wait_for_notif) argument 557 iwl_mvm_remove_time_event(struct iwl_mvm *mvm, struct iwl_mvm_vif *mvmvif, struct iwl_mvm_time_event_data *te_data) argument 604 iwl_mvm_stop_session_protection(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 614 iwl_mvm_start_p2p_roc(struct iwl_mvm *mvm, struct ieee80211_vif *vif, int duration, enum ieee80211_roc_type type) argument 669 iwl_mvm_stop_p2p_roc(struct iwl_mvm *mvm) argument 703 iwl_mvm_schedule_csa_period(struct iwl_mvm *mvm, struct ieee80211_vif *vif, u32 duration, u32 apply_time) argument [all...] |
H A D | sta.h | 120 * the mvm op_mode. This is possible since %sta_state can sleep. 347 int iwl_mvm_sta_send_to_fw(struct iwl_mvm *mvm, struct ieee80211_sta *sta, 349 int iwl_mvm_add_sta(struct iwl_mvm *mvm, 352 int iwl_mvm_update_sta(struct iwl_mvm *mvm, 355 int iwl_mvm_rm_sta(struct iwl_mvm *mvm, 358 int iwl_mvm_rm_sta_id(struct iwl_mvm *mvm, 361 int iwl_mvm_set_sta_key(struct iwl_mvm *mvm, 366 int iwl_mvm_remove_sta_key(struct iwl_mvm *mvm, 371 void iwl_mvm_update_tkip_key(struct iwl_mvm *mvm, 377 int iwl_mvm_rx_eosp_notif(struct iwl_mvm *mvm, [all...] |
H A D | sta.c | 67 #include "mvm.h" 71 static int iwl_mvm_find_free_sta_id(struct iwl_mvm *mvm, argument 78 WARN_ON_ONCE(test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status)); 80 lockdep_assert_held(&mvm->mutex); 86 /* Don't take rcu_read_lock() since we are protected by mvm->mutex */ 91 if (!rcu_dereference_protected(mvm->fw_id_to_mac_id[sta_id], 92 lockdep_is_held(&mvm->mutex))) 99 int iwl_mvm_sta_send_to_fw(struct iwl_mvm *mvm, struct ieee80211_sta *sta, argument 189 ret = iwl_mvm_send_cmd_pdu_status(mvm, ADD_STA, sizeof(add_sta_cmd), 196 IWL_DEBUG_ASSOC(mvm, "ADD_ST 207 iwl_mvm_add_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_sta *sta) argument 270 iwl_mvm_update_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_sta *sta) argument 277 iwl_mvm_drain_sta(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, bool drain) argument 318 iwl_mvm_rm_sta_common(struct iwl_mvm *mvm, u8 sta_id) argument 347 struct iwl_mvm *mvm = container_of(wk, struct iwl_mvm, sta_drained_wk); local 406 iwl_mvm_rm_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_sta *sta) argument 456 iwl_mvm_rm_sta_id(struct iwl_mvm *mvm, struct ieee80211_vif *vif, u8 sta_id) argument 468 iwl_mvm_allocate_int_sta(struct iwl_mvm *mvm, struct iwl_mvm_int_sta *sta, u32 qmask, enum nl80211_iftype iftype) argument 485 iwl_mvm_dealloc_int_sta(struct iwl_mvm *mvm, struct iwl_mvm_int_sta *sta) argument 493 iwl_mvm_add_int_sta_common(struct iwl_mvm *mvm, struct iwl_mvm_int_sta *sta, const u8 *addr, u16 mac_id, u16 color) argument 532 iwl_mvm_add_aux_sta(struct iwl_mvm *mvm) argument 556 iwl_mvm_del_aux_sta(struct iwl_mvm *mvm) argument 571 iwl_mvm_send_add_bcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 592 iwl_mvm_send_rm_bcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 605 iwl_mvm_alloc_bcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 633 iwl_mvm_add_bcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 653 iwl_mvm_dealloc_bcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 664 iwl_mvm_rm_bcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 679 iwl_mvm_sta_rx_agg(struct iwl_mvm *mvm, struct ieee80211_sta *sta, int tid, u16 ssn, bool start) argument 739 iwl_mvm_sta_tx_agg(struct iwl_mvm *mvm, struct ieee80211_sta *sta, int tid, u8 queue, bool start) argument 805 iwl_mvm_sta_tx_agg_start(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_sta *sta, u16 tid, u16 *ssn) argument 868 iwl_mvm_sta_tx_agg_oper(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_sta *sta, u16 tid, u8 buf_size) argument 915 iwl_mvm_sta_tx_agg_stop(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_sta *sta, u16 tid) argument 997 iwl_mvm_sta_tx_agg_flush(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_sta *sta, u16 tid) argument 1033 iwl_mvm_set_fw_key_idx(struct iwl_mvm *mvm) argument 1072 iwl_mvm_send_sta_key(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvm_sta, struct ieee80211_key_conf *keyconf, u8 sta_id, u32 tkip_iv32, u16 *tkip_p1k, u32 cmd_flags) argument 1134 iwl_mvm_send_sta_igtk(struct iwl_mvm *mvm, struct ieee80211_key_conf *keyconf, u8 sta_id, bool remove_key) argument 1177 iwl_mvm_get_mac_addr(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_sta *sta) argument 1198 iwl_mvm_set_sta_key(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct ieee80211_key_conf *keyconf, bool have_key_offset) argument 1280 iwl_mvm_remove_sta_key(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct ieee80211_key_conf *keyconf) argument 1362 iwl_mvm_update_tkip_key(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_key_conf *keyconf, struct ieee80211_sta *sta, u32 iv32, u16 *phase1key) argument 1390 iwl_mvm_sta_modify_ps_wake(struct iwl_mvm *mvm, struct ieee80211_sta *sta) argument 1407 iwl_mvm_sta_modify_sleep_tx_count(struct iwl_mvm *mvm, struct ieee80211_sta *sta, enum ieee80211_frame_release_type reason, u16 cnt, u16 tids, bool more_data, bool agg) argument 1489 iwl_mvm_rx_eosp_notif(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd) argument 1510 iwl_mvm_sta_modify_disable_tx(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, bool disable) argument 1530 iwl_mvm_sta_modify_disable_tx_ap(struct iwl_mvm *mvm, struct ieee80211_sta *sta, bool disable) argument 1558 iwl_mvm_modify_all_sta_disable_tx(struct iwl_mvm *mvm, struct iwl_mvm_vif *mvmvif, bool disable) argument [all...] |
H A D | mvm.h | 128 * @op_mode_ptr: pointer to the buffer coming from the mvm op_mode 162 * mvm->time_event_lock is held, as it value is used to indicate 390 struct iwl_mvm *mvm; member in struct:iwl_mvm_vif 753 static inline bool iwl_mvm_is_radio_killed(struct iwl_mvm *mvm) argument 755 return test_bit(IWL_MVM_STATUS_HW_RFKILL, &mvm->status) || 756 test_bit(IWL_MVM_STATUS_HW_CTKILL, &mvm->status); 760 iwl_mvm_sta_from_staid_protected(struct iwl_mvm *mvm, u8 sta_id) argument 764 if (sta_id >= ARRAY_SIZE(mvm->fw_id_to_mac_id)) 767 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[sta_id], 768 lockdep_is_held(&mvm 777 iwl_mvm_is_d0i3_supported(struct iwl_mvm *mvm) argument 783 iwl_mvm_is_dqa_supported(struct iwl_mvm *mvm) argument 840 iwl_mvm_wait_for_async_handlers(struct iwl_mvm *mvm) argument 973 iwl_mvm_dbgfs_register(struct iwl_mvm *mvm, struct dentry *dbgfs_dir) argument 979 iwl_mvm_vif_dbgfs_register(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 983 iwl_mvm_vif_dbgfs_clean(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 1014 iwl_mvm_leds_init(struct iwl_mvm *mvm) argument 1018 iwl_mvm_leds_exit(struct iwl_mvm *mvm) argument 1041 iwl_mvm_set_last_nonqos_seq(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 1159 iwl_mvm_enable_ac_txq(struct iwl_mvm *mvm, int queue, u8 fifo) argument 1172 iwl_mvm_enable_agg_txq(struct iwl_mvm *mvm, int queue, int fifo, int sta_id, int tid, int frame_limit, u16 ssn) argument 1214 iwl_mvm_fw_error_dump(struct iwl_mvm *mvm) argument [all...] |
H A D | scan.c | 69 #include "mvm.h" 86 static inline __le16 iwl_mvm_scan_rx_chain(struct iwl_mvm *mvm) argument 91 if (mvm->scan_rx_ant != ANT_NONE) 92 rx_ant = mvm->scan_rx_ant; 94 rx_ant = mvm->fw->valid_rx_ant; 111 iwl_mvm_scan_rate_n_flags(struct iwl_mvm *mvm, enum ieee80211_band band, argument 116 mvm->scan_last_antenna_idx = 117 iwl_mvm_next_antenna(mvm, mvm->fw->valid_tx_ant, 118 mvm 277 iwl_mvm_scan_calc_params(struct iwl_mvm *mvm, struct ieee80211_vif *vif, int n_ssids, u32 flags, struct iwl_mvm_scan_params *params) argument 342 iwl_mvm_rrm_scan_needed(struct iwl_mvm *mvm) argument 349 iwl_mvm_max_scan_ie_fw_cmd_room(struct iwl_mvm *mvm, bool is_sched_scan) argument 371 iwl_mvm_max_scan_ie_len(struct iwl_mvm *mvm, bool is_sched_scan) argument 391 iwl_mvm_scan_request(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct cfg80211_scan_request *req) argument 503 iwl_mvm_rx_scan_response(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd) argument 514 iwl_mvm_rx_scan_complete(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd) argument 534 iwl_mvm_rx_scan_offload_results(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd) argument 563 struct iwl_mvm *mvm = local 598 iwl_mvm_cancel_regular_scan(struct iwl_mvm *mvm) argument 624 iwl_mvm_rx_scan_offload_complete_notif(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd) argument 672 iwl_scan_offload_build_tx_cmd(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_scan_ies *ies, enum ieee80211_band band, struct iwl_tx_cmd *cmd, u8 *data) argument 696 iwl_build_scan_cmd(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct cfg80211_sched_scan_request *req, struct iwl_scan_offload_cmd *scan, struct iwl_mvm_scan_params *params) argument 777 iwl_build_channel_cfg(struct iwl_mvm *mvm, struct cfg80211_sched_scan_request *req, u8 *channels_buffer, enum ieee80211_band band, int *head, u32 ssid_bitmap, struct iwl_mvm_scan_params *params) argument 826 iwl_mvm_config_sched_scan(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct cfg80211_sched_scan_request *req, struct ieee80211_scan_ies *ies) argument 898 iwl_mvm_config_sched_scan_profiles(struct iwl_mvm *mvm, struct cfg80211_sched_scan_request *req) argument 966 iwl_mvm_sched_scan_start(struct iwl_mvm *mvm, struct cfg80211_sched_scan_request *req) argument 1000 iwl_mvm_send_scan_offload_abort(struct iwl_mvm *mvm) argument 1035 iwl_mvm_scan_offload_stop(struct iwl_mvm *mvm, bool notify) argument 1088 iwl_mvm_unified_scan_fill_tx_cmd(struct iwl_mvm *mvm, struct iwl_scan_req_tx_cmd *tx_cmd, bool no_cck) argument 1108 iwl_mvm_lmac_scan_cfg_channels(struct iwl_mvm *mvm, struct ieee80211_channel **channels, int n_channels, u32 ssid_bitmap, struct iwl_scan_req_unified_lmac *cmd) argument 1128 iwl_mvm_build_unified_scan_probe(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_scan_ies *ies, struct iwl_scan_req_unified_lmac *cmd) argument 1169 iwl_mvm_build_generic_unified_scan_cmd(struct iwl_mvm *mvm, struct iwl_scan_req_unified_lmac *cmd, struct iwl_mvm_scan_params *params) argument 1202 iwl_mvm_unified_scan_lmac(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_scan_request *req) argument 1295 iwl_mvm_unified_sched_scan_lmac(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct cfg80211_sched_scan_request *req, struct ieee80211_scan_ies *ies) argument 1391 iwl_mvm_cancel_scan(struct iwl_mvm *mvm) argument [all...] |
H A D | phy-ctxt.c | 68 #include "mvm.h" 142 static void iwl_mvm_phy_ctxt_cmd_data(struct iwl_mvm *mvm, argument 168 if (active_cnt == 1 && iwl_mvm_rx_diversity_allowed(mvm)) { 173 cmd->rxchain_info = cpu_to_le32(mvm->fw->valid_rx_ant << 179 cmd->txchain_info = cpu_to_le32(mvm->fw->valid_tx_ant); 188 static int iwl_mvm_phy_ctxt_apply(struct iwl_mvm *mvm, argument 201 iwl_mvm_phy_ctxt_cmd_data(mvm, &cmd, chandef, 204 ret = iwl_mvm_send_cmd_pdu(mvm, PHY_CONTEXT_CMD, 0, 208 IWL_ERR(mvm, "PHY ctxt cmd error. ret=%d\n", ret); 215 int iwl_mvm_phy_ctxt_add(struct iwl_mvm *mvm, struc argument 234 iwl_mvm_phy_ctxt_ref(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt) argument 245 iwl_mvm_phy_ctxt_changed(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt, struct cfg80211_chan_def *chandef, u8 chains_static, u8 chains_dynamic) argument 257 iwl_mvm_phy_ctxt_unref(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt) argument 281 iwl_mvm_phy_ctx_count(struct iwl_mvm *mvm) argument [all...] |
H A D | debugfs.c | 67 #include "mvm.h" 73 static ssize_t iwl_dbgfs_tx_flush_write(struct iwl_mvm *mvm, char *buf, argument 79 if (!mvm->ucode_loaded || mvm->cur_ucode != IWL_UCODE_REGULAR) 85 IWL_ERR(mvm, "FLUSHING queues: scd_q_msk = 0x%x\n", scd_q_msk); 87 mutex_lock(&mvm->mutex); 88 ret = iwl_mvm_flush_tx_path(mvm, scd_q_msk, true) ? : count; 89 mutex_unlock(&mvm->mutex); 94 static ssize_t iwl_dbgfs_sta_drain_write(struct iwl_mvm *mvm, char *buf, argument 100 if (!mvm 126 struct iwl_mvm *mvm = inode->i_private; local 199 struct iwl_mvm *mvm = file->private_data; local 231 iwl_dbgfs_sram_write(struct iwl_mvm *mvm, char *buf, size_t count, loff_t *ppos) argument 266 struct iwl_mvm *mvm = file->private_data; local 285 iwl_dbgfs_set_nic_temperature_write(struct iwl_mvm *mvm, char *buf, size_t count, loff_t *ppos) argument 333 struct iwl_mvm *mvm = file->private_data; local 355 struct iwl_mvm *mvm = file->private_data; local 385 struct iwl_mvm *mvm = file->private_data; local 398 iwl_dbgfs_disable_power_off_write(struct iwl_mvm *mvm, char *buf, size_t count, loff_t *ppos) argument 558 struct iwl_mvm *mvm = file->private_data; local 618 struct iwl_mvm *mvm = file->private_data; local 677 iwl_dbgfs_bt_tx_prio_write(struct iwl_mvm *mvm, char *buf, size_t count, loff_t *ppos) argument 693 iwl_dbgfs_bt_force_ant_write(struct iwl_mvm *mvm, char *buf, size_t count, loff_t *ppos) argument 738 struct iwl_mvm *mvm = file->private_data; local 868 iwl_dbgfs_frame_stats_read(struct iwl_mvm *mvm, char __user *user_buf, size_t count, loff_t *ppos, struct iwl_mvm_frame_stats *stats) argument 936 struct iwl_mvm *mvm = file->private_data; local 942 iwl_dbgfs_fw_restart_write(struct iwl_mvm *mvm, char *buf, size_t count, loff_t *ppos) argument 961 iwl_dbgfs_fw_nmi_write(struct iwl_mvm *mvm, char *buf, size_t count, loff_t *ppos) argument 980 struct iwl_mvm *mvm = file->private_data; local 999 iwl_dbgfs_scan_ant_rxchain_write(struct iwl_mvm *mvm, char *buf, size_t count, loff_t *ppos) argument 1022 struct iwl_mvm *mvm = file->private_data; local 1072 iwl_dbgfs_bcast_filters_write(struct iwl_mvm *mvm, char *buf, size_t count, loff_t *ppos) argument 1128 struct iwl_mvm *mvm = file->private_data; local 1159 iwl_dbgfs_bcast_filters_macs_write(struct iwl_mvm *mvm, char *buf, size_t count, loff_t *ppos) argument 1198 iwl_dbgfs_d3_sram_write(struct iwl_mvm *mvm, char *buf, size_t count, loff_t *ppos) argument 1214 struct iwl_mvm *mvm = file->private_data; local 1266 struct iwl_mvm *mvm = file->private_data; local 1302 iwl_dbgfs_d0i3_refs_write(struct iwl_mvm *mvm, char *buf, size_t count, loff_t *ppos) argument 1347 struct iwl_mvm *mvm = file->private_data; local 1370 iwl_dbgfs_prph_reg_write(struct iwl_mvm *mvm, char *buf, size_t count, loff_t *ppos) argument 1433 iwl_mvm_dbgfs_register(struct iwl_mvm *mvm, struct dentry *dbgfs_dir) argument [all...] |
H A D | mac-ctxt.c | 71 #include "mvm.h" 82 struct iwl_mvm *mvm; member in struct:iwl_mvm_mac_iface_iterator_data 200 u32 iwl_mvm_mac_get_queues_mask(struct iwl_mvm *mvm, argument 230 data->used_hw_queues |= iwl_mvm_mac_get_queues_mask(data->mvm, vif); 244 void iwl_mvm_mac_ctxt_recalc_tsf_id(struct iwl_mvm *mvm, argument 249 .mvm = mvm, 257 mvm->hw, IEEE80211_IFACE_ITER_RESUME_ALL, 267 static int iwl_mvm_mac_ctxt_allocate_resources(struct iwl_mvm *mvm, argument 272 .mvm 417 iwl_mvm_mac_ctxt_init(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 447 iwl_mvm_mac_ctxt_release(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 466 iwl_mvm_ack_rates(struct iwl_mvm *mvm, struct ieee80211_vif *vif, enum ieee80211_band band, u8 *cck_rates, u8 *ofdm_rates) argument 552 iwl_mvm_mac_ctxt_set_ht_flags(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct iwl_mac_ctx_cmd *cmd) argument 586 iwl_mvm_mac_ctxt_cmd_common(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct iwl_mac_ctx_cmd *cmd, const u8 *bssid_override, u32 action) argument 688 iwl_mvm_mac_ctxt_send_cmd(struct iwl_mvm *mvm, struct iwl_mac_ctx_cmd *cmd) argument 699 iwl_mvm_mac_ctxt_cmd_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif, u32 action, bool force_assoc_off, const u8 *bssid_override) argument 783 iwl_mvm_mac_ctxt_cmd_listener(struct iwl_mvm *mvm, struct ieee80211_vif *vif, u32 action) argument 803 iwl_mvm_mac_ctxt_cmd_ibss(struct iwl_mvm *mvm, struct ieee80211_vif *vif, u32 action) argument 842 iwl_mvm_mac_ctxt_cmd_p2p_device(struct iwl_mvm *mvm, struct ieee80211_vif *vif, u32 action) argument 874 iwl_mvm_mac_ctxt_set_tim(struct iwl_mvm *mvm, struct iwl_mac_beacon_cmd *beacon_cmd, u8 *beacon, u32 frame_size) argument 899 iwl_mvm_mac_ctxt_send_beacon(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct sk_buff *beacon) argument 968 iwl_mvm_mac_ctxt_beacon_changed(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 987 struct iwl_mvm *mvm; member in struct:iwl_mvm_mac_ap_iterator_data 1013 iwl_mvm_mac_ctxt_cmd_fill_ap(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct iwl_mac_data_ap *ctxt_ap, bool add) argument 1070 iwl_mvm_mac_ctxt_cmd_ap(struct iwl_mvm *mvm, struct ieee80211_vif *vif, u32 action) argument 1095 iwl_mvm_mac_ctxt_cmd_go(struct iwl_mvm *mvm, struct ieee80211_vif *vif, u32 action) argument 1127 iwl_mvm_mac_ctx_send(struct iwl_mvm *mvm, struct ieee80211_vif *vif, u32 action, bool force_assoc_off, const u8 *bssid_override) argument 1156 iwl_mvm_mac_ctxt_add(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 1177 iwl_mvm_mac_ctxt_changed(struct iwl_mvm *mvm, struct ieee80211_vif *vif, bool force_assoc_off, const u8 *bssid_override) argument 1190 iwl_mvm_mac_ctxt_remove(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 1221 iwl_mvm_csa_count_down(struct iwl_mvm *mvm, struct ieee80211_vif *csa_vif, u32 gp2) argument 1250 iwl_mvm_rx_beacon_notif(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd) argument 1333 iwl_mvm_rx_missed_beacons_notif(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd) argument [all...] |
H A D | rx.c | 65 #include "mvm.h" 71 * Copies the phy information in mvm->last_phy_info, it will be used when the 74 int iwl_mvm_rx_rx_phy_cmd(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, argument 79 memcpy(&mvm->last_phy_info, pkt->data, sizeof(mvm->last_phy_info)); 80 mvm->ampdu_ref++; 83 if (mvm->last_phy_info.phy_flags & cpu_to_le16(RX_RES_PHY_FLAGS_AGG)) { 84 spin_lock(&mvm->drv_stats_lock); 85 mvm->drv_rx_stats.ampdu_count++; 86 spin_unlock(&mvm 98 iwl_mvm_pass_packet_to_mac80211(struct iwl_mvm *mvm, struct ieee80211_hdr *hdr, u16 len, u32 ampdu_status, struct iwl_rx_cmd_buffer *rxb, struct ieee80211_rx_status *stats) argument 143 iwl_mvm_get_signal_strength(struct iwl_mvm *mvm, struct iwl_rx_phy_info *phy_info, struct ieee80211_rx_status *rx_status) argument 185 iwl_mvm_set_mac80211_rx_flag(struct iwl_mvm *mvm, struct ieee80211_hdr *hdr, struct ieee80211_rx_status *stats, u32 rx_pkt_status) argument 241 iwl_mvm_rx_rx_mpdu(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd) argument 401 iwl_mvm_update_rx_statistics(struct iwl_mvm *mvm, struct iwl_notif_statistics *stats) argument 415 struct iwl_mvm *mvm; member in struct:iwl_mvm_stat_data 423 struct iwl_mvm *mvm = data->mvm; local 491 iwl_mvm_rx_statistics(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd) argument [all...] |
H A D | power.c | 73 #include "mvm.h" 80 int iwl_mvm_beacon_filter_send_cmd(struct iwl_mvm *mvm, argument 84 IWL_DEBUG_POWER(mvm, "ba_enable_beacon_abort is: %d\n", 86 IWL_DEBUG_POWER(mvm, "ba_escape_timer is: %d\n", 88 IWL_DEBUG_POWER(mvm, "bf_debug_flag is: %d\n", 90 IWL_DEBUG_POWER(mvm, "bf_enable_beacon_filter is: %d\n", 92 IWL_DEBUG_POWER(mvm, "bf_energy_delta is: %d\n", 94 IWL_DEBUG_POWER(mvm, "bf_escape_timer is: %d\n", 96 IWL_DEBUG_POWER(mvm, "bf_roaming_energy_delta is: %d\n", 98 IWL_DEBUG_POWER(mvm, "bf_roaming_stat 112 iwl_mvm_beacon_filter_set_cqm_params(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct iwl_beacon_filter_cmd *cmd) argument 128 iwl_mvm_power_log(struct iwl_mvm *mvm, struct iwl_mac_power_cmd *cmd) argument 165 iwl_mvm_power_configure_uapsd(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct iwl_mac_power_cmd *cmd) argument 258 iwl_mvm_power_allow_uapsd(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 307 iwl_mvm_power_build_cmd(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct iwl_mac_power_cmd *cmd) argument 423 iwl_mvm_power_send_cmd(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 438 iwl_mvm_power_update_device(struct iwl_mvm *mvm) argument 464 iwl_mvm_power_vif_assoc(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 487 iwl_mvm_power_uapsd_misbehaving_ap_notif(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd) argument 503 struct iwl_mvm *mvm; member in struct:iwl_power_vifs 591 iwl_mvm_power_set_pm(struct iwl_mvm *mvm, struct iwl_power_vifs *vifs) argument 662 iwl_mvm_power_mac_dbgfs_read(struct iwl_mvm *mvm, struct ieee80211_vif *vif, char *buf, int bufsz) argument 771 _iwl_mvm_enable_beacon_filter(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct iwl_beacon_filter_cmd *cmd, u32 cmd_flags, bool d0i3) argument 796 iwl_mvm_enable_beacon_filter(struct iwl_mvm *mvm, struct ieee80211_vif *vif, u32 flags) argument 808 iwl_mvm_update_beacon_abort(struct iwl_mvm *mvm, struct ieee80211_vif *vif, bool enable) argument 828 iwl_mvm_disable_beacon_filter(struct iwl_mvm *mvm, struct ieee80211_vif *vif, u32 flags) argument 847 iwl_mvm_power_set_ps(struct iwl_mvm *mvm) argument 875 iwl_mvm_power_set_ba(struct iwl_mvm *mvm, struct iwl_power_vifs *vifs) argument 893 iwl_mvm_power_update_ps(struct iwl_mvm *mvm) argument 914 iwl_mvm_power_update_mac(struct iwl_mvm *mvm) argument 949 iwl_mvm_update_d0i3_power_mode(struct iwl_mvm *mvm, struct ieee80211_vif *vif, bool enable, u32 flags) argument [all...] |
H A D | coex.c | 72 #include "mvm.h" 520 iwl_get_coex_type(struct iwl_mvm *mvm, const struct ieee80211_vif *vif) argument 528 * Checking that we hold mvm->mutex is a good idea, but the rate 547 if (mvm->cfg->bt_shared_single_ant) { 553 primary_ch_phy_id = le32_to_cpu(mvm->last_bt_ci_cmd.primary_ch_phy_id); 555 le32_to_cpu(mvm->last_bt_ci_cmd.secondary_ch_phy_id); 558 ret = le32_to_cpu(mvm->last_bt_notif.primary_ch_lut); 560 ret = le32_to_cpu(mvm->last_bt_notif.secondary_ch_lut); 568 int iwl_send_bt_init_conf(struct iwl_mvm *mvm) argument 579 if (!(mvm 654 iwl_mvm_bt_udpate_sw_boost(struct iwl_mvm *mvm) argument 696 iwl_mvm_bt_coex_reduced_txp(struct iwl_mvm *mvm, u8 sta_id, bool enable) argument 731 struct iwl_mvm *mvm; member in struct:iwl_bt_iterator_data 738 iwl_mvm_bt_coex_enable_rssi_event(struct iwl_mvm *mvm, struct ieee80211_vif *vif, bool enable, int rssi) argument 757 struct iwl_mvm *mvm = data->mvm; local 887 iwl_mvm_bt_coex_notif_handle(struct iwl_mvm *mvm) argument 965 iwl_mvm_rx_bt_coex_notif(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *dev_cmd) argument 1001 struct iwl_mvm *mvm = data->mvm; local 1032 iwl_mvm_bt_rssi_event(struct iwl_mvm *mvm, struct ieee80211_vif *vif, enum ieee80211_rssi_event rssi_event) argument 1091 iwl_mvm_coex_agg_time_limit(struct iwl_mvm *mvm, struct ieee80211_sta *sta) argument 1118 iwl_mvm_bt_coex_is_mimo_allowed(struct iwl_mvm *mvm, struct ieee80211_sta *sta) argument 1147 iwl_mvm_bt_coex_is_shared_ant_avail(struct iwl_mvm *mvm) argument 1159 iwl_mvm_bt_coex_is_tpc_allowed(struct iwl_mvm *mvm, enum ieee80211_band band) argument 1173 iwl_mvm_bt_coex_tx_prio(struct iwl_mvm *mvm, struct ieee80211_hdr *hdr, struct ieee80211_tx_info *info, u8 ac) argument 1205 iwl_mvm_bt_coex_vif_change(struct iwl_mvm *mvm) argument 1215 iwl_mvm_rx_ant_coupling_notif(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *dev_cmd) argument [all...] |
H A D | binding.c | 66 #include "mvm.h" 78 static int iwl_mvm_binding_cmd(struct iwl_mvm *mvm, u32 action, argument 101 ret = iwl_mvm_send_cmd_pdu_status(mvm, BINDING_CONTEXT_CMD, 104 IWL_ERR(mvm, "Failed to send binding (action:%d): %d\n", 110 IWL_ERR(mvm, "Binding command failed: %u\n", status); 137 static int iwl_mvm_binding_update(struct iwl_mvm *mvm, argument 149 lockdep_assert_held(&mvm->mutex); 151 ieee80211_iterate_active_interfaces_atomic(mvm->hw, 176 return iwl_mvm_binding_cmd(mvm, action, &data); 179 int iwl_mvm_binding_add_vif(struct iwl_mvm *mvm, struc argument 196 iwl_mvm_binding_remove_vif(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument [all...] |
H A D | d3.c | 75 #include "mvm.h" 81 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 87 mutex_lock(&mvm->mutex); 95 mutex_unlock(&mvm->mutex); 149 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 161 mutex_lock(&mvm->mutex); 198 ret = iwl_mvm_send_cmd_pdu(mvm, WEP_KEY, 0, sizeof(wkc), &wkc); 201 mvm->ptk_ivlen = key->iv_len; 202 mvm->ptk_icvlen = key->icv_len; 203 mvm 338 iwl_mvm_send_patterns(struct iwl_mvm *mvm, struct cfg80211_wowlan *wowlan) argument 512 iwl_mvm_send_remote_wake_cfg(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct cfg80211_wowlan_tcp *tcp) argument 605 struct iwl_mvm *mvm; member in struct:iwl_d3_iter_data 631 iwl_mvm_d3_reprogram(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct ieee80211_sta *ap_sta) argument 727 iwl_mvm_get_last_nonqos_seq(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 764 iwl_mvm_set_last_nonqos_seq(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 787 iwl_mvm_send_wowlan_config_cmd(struct iwl_mvm *mvm, const struct iwl_wowlan_config_cmd_v3 *cmd) argument 804 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 1072 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 1094 iwl_mvm_report_wakeup_reasons(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct iwl_wowlan_status_data *status) argument 1367 iwl_mvm_setup_connection_keep(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct iwl_wowlan_status *status) argument 1453 iwl_mvm_query_wakeup_reasons(struct iwl_mvm *mvm, struct ieee80211_vif *vif) argument 1562 iwl_mvm_read_d3_sram(struct iwl_mvm *mvm) argument 1593 __iwl_mvm_resume(struct iwl_mvm *mvm, bool test) argument 1651 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 1671 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); local 1679 struct iwl_mvm *mvm = inode->i_private; local 1708 struct iwl_mvm *mvm = file->private_data; local 1740 struct iwl_mvm *mvm = inode->i_private; local [all...] |
H A D | coex_legacy.c | 72 #include "mvm.h" 107 static int iwl_send_bt_prio_tbl(struct iwl_mvm *mvm) argument 109 if (unlikely(mvm->bt_force_ant_mode != BT_FORCE_ANT_DIS)) 112 return iwl_mvm_send_cmd_pdu(mvm, BT_COEX_PRIO_TABLE, 0, 508 iwl_get_coex_type(struct iwl_mvm *mvm, const struct ieee80211_vif *vif) argument 515 * Checking that we hold mvm->mutex is a good idea, but the rate 534 if (mvm->cfg->bt_shared_single_ant) { 541 if (mvm->last_bt_ci_cmd_old.primary_ch_phy_id == phy_ctx_id) 542 ret = le32_to_cpu(mvm->last_bt_notif_old.primary_ch_lut); 543 else if (mvm 552 iwl_send_bt_init_conf_old(struct iwl_mvm *mvm) argument 665 iwl_mvm_bt_udpate_ctrl_kill_msk(struct iwl_mvm *mvm) argument 710 iwl_mvm_bt_coex_reduced_txp(struct iwl_mvm *mvm, u8 sta_id, bool enable) argument 758 struct iwl_mvm *mvm; member in struct:iwl_bt_iterator_data 765 iwl_mvm_bt_coex_enable_rssi_event(struct iwl_mvm *mvm, struct ieee80211_vif *vif, bool enable, int rssi) argument 784 struct iwl_mvm *mvm = data->mvm; local 914 iwl_mvm_bt_coex_notif_handle(struct iwl_mvm *mvm) argument 996 iwl_mvm_rx_bt_coex_notif_old(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *dev_cmd) argument 1034 struct iwl_mvm *mvm = data->mvm; local 1065 iwl_mvm_bt_rssi_event_old(struct iwl_mvm *mvm, struct ieee80211_vif *vif, enum ieee80211_rssi_event rssi_event) argument 1119 iwl_mvm_coex_agg_time_limit_old(struct iwl_mvm *mvm, struct ieee80211_sta *sta) argument 1141 iwl_mvm_bt_coex_is_mimo_allowed_old(struct iwl_mvm *mvm, struct ieee80211_sta *sta) argument 1165 iwl_mvm_bt_coex_is_shared_ant_avail_old(struct iwl_mvm *mvm) argument 1171 iwl_mvm_bt_coex_is_tpc_allowed_old(struct iwl_mvm *mvm, enum ieee80211_band band) argument 1183 iwl_mvm_bt_coex_vif_change_old(struct iwl_mvm *mvm) argument 1188 iwl_mvm_rx_ant_coupling_notif_old(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *dev_cmd) argument [all...] |
H A D | rs.c | 41 #include "mvm.h" 43 #define RS_NAME "iwl-mvm-rs" 149 typedef bool (*allow_column_func_t) (struct iwl_mvm *mvm, 161 static bool rs_mimo_allow(struct iwl_mvm *mvm, struct ieee80211_sta *sta, argument 170 if (num_of_ant(mvm->fw->valid_tx_ant) < 2) 173 if (!iwl_mvm_bt_coex_is_mimo_allowed(mvm, sta)) 179 static bool rs_siso_allow(struct iwl_mvm *mvm, struct ieee80211_sta *sta, argument 188 static bool rs_sgi_allow(struct iwl_mvm *mvm, struct ieee80211_sta *sta, argument 379 static void rs_rate_scale_perform(struct iwl_mvm *mvm, 383 static void rs_fill_lq_cmd(struct iwl_mvm *mvm, 505 rs_dump_rate(struct iwl_mvm *mvm, const struct rs_rate *rate, const char *prefix) argument 523 rs_rate_scale_clear_tbl_windows(struct iwl_mvm *mvm, struct iwl_scale_tbl_info *tbl) argument 541 rs_tl_turn_on_agg_for_tid(struct iwl_mvm *mvm, struct iwl_lq_sta *lq_data, u8 tid, struct ieee80211_sta *sta) argument 563 rs_tl_turn_on_agg(struct iwl_mvm *mvm, u8 tid, struct iwl_lq_sta *lq_data, struct ieee80211_sta *sta) argument 698 ucode_rate_from_rs_rate(struct iwl_mvm *mvm, struct rs_rate *rate) argument 866 rs_get_adjacent_rate(struct iwl_mvm *mvm, u8 index, u16 rate_mask, int rate_type) argument 937 struct iwl_mvm *mvm = lq_sta->pers.drv; local 956 struct iwl_mvm *mvm = lq_sta->pers.drv; local 1025 iwl_mvm_rs_tx_status(struct iwl_mvm *mvm, struct ieee80211_sta *sta, int tid, struct ieee80211_tx_info *info) argument 1242 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); local 1260 rs_set_stay_in_table(struct iwl_mvm *mvm, u8 is_legacy, struct iwl_lq_sta *lq_sta) argument 1369 rs_get_best_rate(struct iwl_mvm *mvm, struct iwl_lq_sta *lq_sta, struct iwl_scale_tbl_info *tbl, unsigned long rate_mask, s8 index) argument 1437 struct iwl_mvm *mvm; local 1511 rs_update_rate_tbl(struct iwl_mvm *mvm, struct ieee80211_sta *sta, struct iwl_lq_sta *lq_sta, struct rs_rate *rate) argument 1520 rs_get_next_column(struct iwl_mvm *mvm, struct iwl_lq_sta *lq_sta, struct ieee80211_sta *sta, struct iwl_scale_tbl_info *tbl) argument 1599 rs_switch_to_column(struct iwl_mvm *mvm, struct iwl_lq_sta *lq_sta, struct ieee80211_sta *sta, enum rs_column col_id) argument 1674 rs_get_rate_action(struct iwl_mvm *mvm, struct iwl_scale_tbl_info *tbl, s32 sr, int low, int high, int current_tpt, int low_tpt, int high_tpt) argument 1757 rs_get_adjacent_txp(struct iwl_mvm *mvm, int index, int *weaker, int *stronger) argument 1769 rs_tpc_allowed(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct rs_rate *rate, enum ieee80211_band band) argument 1808 rs_get_tpc_action(struct iwl_mvm *mvm, s32 sr, int weak, int strong, int current_tpt, int weak_tpt, int strong_tpt) argument 1865 rs_tpc_perform(struct iwl_mvm *mvm, struct ieee80211_sta *sta, struct iwl_lq_sta *lq_sta, struct iwl_scale_tbl_info *tbl) argument 1957 rs_rate_scale_perform(struct iwl_mvm *mvm, struct ieee80211_sta *sta, struct iwl_lq_sta *lq_sta, int tid) argument 2312 rs_get_initial_rate(struct iwl_mvm *mvm, struct iwl_lq_sta *lq_sta, enum ieee80211_band band, struct rs_rate *rate) argument 2374 rs_update_last_rssi(struct iwl_mvm *mvm, struct iwl_lq_sta *lq_sta, struct ieee80211_rx_status *rx_status) argument 2398 rs_initialize_lq(struct iwl_mvm *mvm, struct ieee80211_sta *sta, struct iwl_lq_sta *lq_sta, enum ieee80211_band band, bool init) argument 2467 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); local 2542 iwl_mvm_reset_frame_stats(struct iwl_mvm *mvm, struct iwl_mvm_frame_stats *stats) argument 2550 iwl_mvm_update_frame_stats(struct iwl_mvm *mvm, struct iwl_mvm_frame_stats *stats, u32 rate, bool agg) argument 2611 iwl_mvm_rs_rate_init(struct iwl_mvm *mvm, struct ieee80211_sta *sta, enum ieee80211_band band, bool init) argument 2728 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); local 2738 rs_build_rates_table_from_fixed(struct iwl_mvm *mvm, struct iwl_lq_cmd *lq_cmd, enum ieee80211_band band, u32 ucode_rate) argument 2768 rs_fill_rates_for_column(struct iwl_mvm *mvm, struct iwl_lq_sta *lq_sta, struct rs_rate *rate, __le32 *rs_table, int *rs_table_index, int num_rates, int num_retries, u8 valid_tx_ant, bool toggle_ant) argument 2822 rs_build_rates_table(struct iwl_mvm *mvm, struct iwl_lq_sta *lq_sta, const struct rs_rate *initial_rate) argument 2882 rs_fill_lq_cmd(struct iwl_mvm *mvm, struct ieee80211_sta *sta, struct iwl_lq_sta *lq_sta, const struct rs_rate *initial_rate) argument 3022 rs_program_fix_rate(struct iwl_mvm *mvm, struct iwl_lq_sta *lq_sta) argument 3042 struct iwl_mvm *mvm; local 3072 struct iwl_mvm *mvm; local 3281 rs_add_debugfs(void *mvm, void *mvm_sta, struct dentry *dir) argument 3296 rs_remove_debugfs(void *mvm, void *mvm_sta) argument 3346 iwl_mvm_tx_protection(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, bool enable) argument [all...] |
H A D | sf.c | 65 #include "mvm.h" 173 static int iwl_mvm_sf_config(struct iwl_mvm *mvm, u8 sta_id, argument 182 if (mvm->fw->ucode_capa.api[0] & IWL_UCODE_TLV_API_SF_NO_DUMMY_NOTIF && 183 mvm->cfg->disable_dummy_notification) 190 if (new_state != SF_FULL_ON && mvm->sf_state == new_state) 198 IWL_ERR(mvm, 203 sta = rcu_dereference(mvm->fw_id_to_mac_id[sta_id]); 205 IWL_ERR(mvm, "Invalid station id\n"); 221 ret = iwl_mvm_send_cmd_pdu(mvm, REPLY_SF_CFG_CMD, CMD_ASYNC, 224 mvm 234 iwl_mvm_sf_update(struct iwl_mvm *mvm, struct ieee80211_vif *changed_vif, bool remove_vif) argument [all...] |