Lines Matching refs:cmd
84 struct iwl_beacon_filter_cmd *cmd, in iwl_mvm_beacon_filter_send_cmd() argument
88 le32_to_cpu(cmd->ba_enable_beacon_abort)); in iwl_mvm_beacon_filter_send_cmd()
90 le32_to_cpu(cmd->ba_escape_timer)); in iwl_mvm_beacon_filter_send_cmd()
92 le32_to_cpu(cmd->bf_debug_flag)); in iwl_mvm_beacon_filter_send_cmd()
94 le32_to_cpu(cmd->bf_enable_beacon_filter)); in iwl_mvm_beacon_filter_send_cmd()
96 le32_to_cpu(cmd->bf_energy_delta)); in iwl_mvm_beacon_filter_send_cmd()
98 le32_to_cpu(cmd->bf_escape_timer)); in iwl_mvm_beacon_filter_send_cmd()
100 le32_to_cpu(cmd->bf_roaming_energy_delta)); in iwl_mvm_beacon_filter_send_cmd()
102 le32_to_cpu(cmd->bf_roaming_state)); in iwl_mvm_beacon_filter_send_cmd()
104 le32_to_cpu(cmd->bf_temp_threshold)); in iwl_mvm_beacon_filter_send_cmd()
106 le32_to_cpu(cmd->bf_temp_fast_filter)); in iwl_mvm_beacon_filter_send_cmd()
108 le32_to_cpu(cmd->bf_temp_slow_filter)); in iwl_mvm_beacon_filter_send_cmd()
111 sizeof(struct iwl_beacon_filter_cmd), cmd); in iwl_mvm_beacon_filter_send_cmd()
117 struct iwl_beacon_filter_cmd *cmd, in iwl_mvm_beacon_filter_set_cqm_params() argument
123 cmd->bf_energy_delta = in iwl_mvm_beacon_filter_set_cqm_params()
126 cmd->bf_roaming_state = in iwl_mvm_beacon_filter_set_cqm_params()
129 cmd->ba_enable_beacon_abort = cpu_to_le32(mvmvif->bf_data.ba_enabled); in iwl_mvm_beacon_filter_set_cqm_params()
133 struct iwl_mac_power_cmd *cmd) in iwl_mvm_power_log() argument
137 cmd->id_and_color, iwlmvm_mod_params.power_scheme, in iwl_mvm_power_log()
138 le16_to_cpu(cmd->flags)); in iwl_mvm_power_log()
140 le16_to_cpu(cmd->keep_alive_seconds)); in iwl_mvm_power_log()
142 if (!(cmd->flags & cpu_to_le16(POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK))) { in iwl_mvm_power_log()
148 le32_to_cpu(cmd->rx_data_timeout)); in iwl_mvm_power_log()
150 le32_to_cpu(cmd->tx_data_timeout)); in iwl_mvm_power_log()
151 if (cmd->flags & cpu_to_le16(POWER_FLAGS_SKIP_OVER_DTIM_MSK)) in iwl_mvm_power_log()
153 cmd->skip_dtim_periods); in iwl_mvm_power_log()
154 if (cmd->flags & cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK)) in iwl_mvm_power_log()
156 cmd->lprx_rssi_threshold); in iwl_mvm_power_log()
157 if (cmd->flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK)) { in iwl_mvm_power_log()
160 le32_to_cpu(cmd->rx_data_timeout_uapsd)); in iwl_mvm_power_log()
162 le32_to_cpu(cmd->tx_data_timeout_uapsd)); in iwl_mvm_power_log()
163 IWL_DEBUG_POWER(mvm, "QNDP TID = %d\n", cmd->qndp_tid); in iwl_mvm_power_log()
164 IWL_DEBUG_POWER(mvm, "ACs flags = 0x%x\n", cmd->uapsd_ac_flags); in iwl_mvm_power_log()
165 IWL_DEBUG_POWER(mvm, "Max SP = %d\n", cmd->uapsd_max_sp); in iwl_mvm_power_log()
171 struct iwl_mac_power_cmd *cmd) in iwl_mvm_power_configure_uapsd() argument
182 cmd->flags |= in iwl_mvm_power_configure_uapsd()
185 cmd->uapsd_ac_flags |= BIT(ac); in iwl_mvm_power_configure_uapsd()
192 cmd->qndp_tid = 6; in iwl_mvm_power_configure_uapsd()
195 cmd->qndp_tid = 5; in iwl_mvm_power_configure_uapsd()
198 cmd->qndp_tid = 0; in iwl_mvm_power_configure_uapsd()
201 cmd->qndp_tid = 1; in iwl_mvm_power_configure_uapsd()
207 if (!(cmd->flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK))) { in iwl_mvm_power_configure_uapsd()
211 cmd->flags |= in iwl_mvm_power_configure_uapsd()
217 cmd->flags |= cpu_to_le16(POWER_FLAGS_UAPSD_MISBEHAVING_ENA_MSK); in iwl_mvm_power_configure_uapsd()
219 if (cmd->uapsd_ac_flags == (BIT(IEEE80211_AC_VO) | in iwl_mvm_power_configure_uapsd()
223 cmd->flags |= cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK); in iwl_mvm_power_configure_uapsd()
224 cmd->snooze_interval = cpu_to_le16(IWL_MVM_PS_SNOOZE_INTERVAL); in iwl_mvm_power_configure_uapsd()
225 cmd->snooze_window = (mvm->cur_ucode == IWL_UCODE_WOWLAN) ? in iwl_mvm_power_configure_uapsd()
230 cmd->uapsd_max_sp = IWL_UAPSD_MAX_SP; in iwl_mvm_power_configure_uapsd()
232 if (mvm->cur_ucode == IWL_UCODE_WOWLAN || cmd->flags & in iwl_mvm_power_configure_uapsd()
234 cmd->rx_data_timeout_uapsd = in iwl_mvm_power_configure_uapsd()
236 cmd->tx_data_timeout_uapsd = in iwl_mvm_power_configure_uapsd()
239 cmd->rx_data_timeout_uapsd = in iwl_mvm_power_configure_uapsd()
241 cmd->tx_data_timeout_uapsd = in iwl_mvm_power_configure_uapsd()
245 if (cmd->flags & cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK)) { in iwl_mvm_power_configure_uapsd()
246 cmd->heavy_tx_thld_packets = in iwl_mvm_power_configure_uapsd()
248 cmd->heavy_rx_thld_packets = in iwl_mvm_power_configure_uapsd()
251 cmd->heavy_tx_thld_packets = in iwl_mvm_power_configure_uapsd()
253 cmd->heavy_rx_thld_packets = in iwl_mvm_power_configure_uapsd()
256 cmd->heavy_tx_thld_percentage = in iwl_mvm_power_configure_uapsd()
258 cmd->heavy_rx_thld_percentage = in iwl_mvm_power_configure_uapsd()
313 struct iwl_mac_power_cmd *cmd, in iwl_mvm_power_config_skip_dtim() argument
320 cmd->skip_dtim_periods = 0; in iwl_mvm_power_config_skip_dtim()
321 cmd->flags &= ~cpu_to_le16(POWER_FLAGS_SKIP_OVER_DTIM_MSK); in iwl_mvm_power_config_skip_dtim()
345 cmd->skip_dtim_periods = 1 + skip; in iwl_mvm_power_config_skip_dtim()
346 cmd->flags |= cpu_to_le16(POWER_FLAGS_SKIP_OVER_DTIM_MSK); in iwl_mvm_power_config_skip_dtim()
351 struct iwl_mac_power_cmd *cmd, in iwl_mvm_power_build_cmd() argument
359 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_power_build_cmd()
373 cmd->keep_alive_seconds = cpu_to_le16(keep_alive); in iwl_mvm_power_build_cmd()
378 cmd->flags |= cpu_to_le16(POWER_FLAGS_POWER_SAVE_ENA_MSK); in iwl_mvm_power_build_cmd()
389 cmd->flags |= cpu_to_le16(POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK); in iwl_mvm_power_build_cmd()
394 cmd->flags |= cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK); in iwl_mvm_power_build_cmd()
395 cmd->lprx_rssi_threshold = POWER_LPRX_RSSI_THRESHOLD; in iwl_mvm_power_build_cmd()
398 iwl_mvm_power_config_skip_dtim(mvm, vif, cmd, host_awake); in iwl_mvm_power_build_cmd()
401 cmd->rx_data_timeout = in iwl_mvm_power_build_cmd()
403 cmd->tx_data_timeout = in iwl_mvm_power_build_cmd()
408 cmd->tx_data_timeout = in iwl_mvm_power_build_cmd()
410 cmd->rx_data_timeout = in iwl_mvm_power_build_cmd()
413 cmd->rx_data_timeout = in iwl_mvm_power_build_cmd()
415 cmd->tx_data_timeout = in iwl_mvm_power_build_cmd()
420 iwl_mvm_power_configure_uapsd(mvm, vif, cmd); in iwl_mvm_power_build_cmd()
424 cmd->keep_alive_seconds = in iwl_mvm_power_build_cmd()
428 cmd->flags |= in iwl_mvm_power_build_cmd()
431 cmd->flags &= in iwl_mvm_power_build_cmd()
435 cmd->rx_data_timeout = in iwl_mvm_power_build_cmd()
438 cmd->tx_data_timeout = in iwl_mvm_power_build_cmd()
441 cmd->skip_dtim_periods = mvmvif->dbgfs_pm.skip_dtim_periods; in iwl_mvm_power_build_cmd()
444 cmd->flags |= cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK); in iwl_mvm_power_build_cmd()
446 cmd->flags &= cpu_to_le16(~POWER_FLAGS_LPRX_ENA_MSK); in iwl_mvm_power_build_cmd()
449 cmd->lprx_rssi_threshold = mvmvif->dbgfs_pm.lprx_rssi_threshold; in iwl_mvm_power_build_cmd()
452 cmd->flags |= in iwl_mvm_power_build_cmd()
455 cmd->flags &= in iwl_mvm_power_build_cmd()
461 cmd->flags |= cpu_to_le16(flag); in iwl_mvm_power_build_cmd()
463 cmd->flags &= cpu_to_le16(flag); in iwl_mvm_power_build_cmd()
471 struct iwl_mac_power_cmd cmd = {}; in iwl_mvm_power_send_cmd() local
473 iwl_mvm_power_build_cmd(mvm, vif, &cmd, in iwl_mvm_power_send_cmd()
475 iwl_mvm_power_log(mvm, &cmd); in iwl_mvm_power_send_cmd()
477 memcpy(&iwl_mvm_vif_from_mac80211(vif)->mac_pwr_cmd, &cmd, sizeof(cmd)); in iwl_mvm_power_send_cmd()
481 sizeof(cmd), &cmd); in iwl_mvm_power_send_cmd()
486 struct iwl_device_power_cmd cmd = { in iwl_mvm_power_update_device() local
494 cmd.flags |= cpu_to_le16(DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK); in iwl_mvm_power_update_device()
499 cmd.flags &= in iwl_mvm_power_update_device()
504 cmd.flags); in iwl_mvm_power_update_device()
506 return iwl_mvm_send_cmd_pdu(mvm, POWER_TABLE_CMD, 0, sizeof(cmd), in iwl_mvm_power_update_device()
507 &cmd); in iwl_mvm_power_update_device()
714 struct iwl_mac_power_cmd cmd = {}; in iwl_mvm_power_mac_dbgfs_read() local
718 memcpy(&cmd, &mvmvif->mac_pwr_cmd, sizeof(cmd)); in iwl_mvm_power_mac_dbgfs_read()
724 le16_to_cpu(cmd.flags)); in iwl_mvm_power_mac_dbgfs_read()
726 le16_to_cpu(cmd.keep_alive_seconds)); in iwl_mvm_power_mac_dbgfs_read()
728 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK))) in iwl_mvm_power_mac_dbgfs_read()
732 (cmd.flags & in iwl_mvm_power_mac_dbgfs_read()
735 cmd.skip_dtim_periods); in iwl_mvm_power_mac_dbgfs_read()
736 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK))) { in iwl_mvm_power_mac_dbgfs_read()
738 le32_to_cpu(cmd.rx_data_timeout)); in iwl_mvm_power_mac_dbgfs_read()
740 le32_to_cpu(cmd.tx_data_timeout)); in iwl_mvm_power_mac_dbgfs_read()
742 if (cmd.flags & cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK)) in iwl_mvm_power_mac_dbgfs_read()
745 cmd.lprx_rssi_threshold); in iwl_mvm_power_mac_dbgfs_read()
747 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK))) in iwl_mvm_power_mac_dbgfs_read()
751 le32_to_cpu(cmd.rx_data_timeout_uapsd)); in iwl_mvm_power_mac_dbgfs_read()
753 le32_to_cpu(cmd.tx_data_timeout_uapsd)); in iwl_mvm_power_mac_dbgfs_read()
754 pos += scnprintf(buf+pos, bufsz-pos, "qndp_tid = %d\n", cmd.qndp_tid); in iwl_mvm_power_mac_dbgfs_read()
756 cmd.uapsd_ac_flags); in iwl_mvm_power_mac_dbgfs_read()
758 cmd.uapsd_max_sp); in iwl_mvm_power_mac_dbgfs_read()
760 cmd.heavy_tx_thld_packets); in iwl_mvm_power_mac_dbgfs_read()
762 cmd.heavy_rx_thld_packets); in iwl_mvm_power_mac_dbgfs_read()
764 cmd.heavy_tx_thld_percentage); in iwl_mvm_power_mac_dbgfs_read()
766 cmd.heavy_rx_thld_percentage); in iwl_mvm_power_mac_dbgfs_read()
768 (cmd.flags & in iwl_mvm_power_mac_dbgfs_read()
772 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK))) in iwl_mvm_power_mac_dbgfs_read()
776 cmd.snooze_interval); in iwl_mvm_power_mac_dbgfs_read()
778 cmd.snooze_window); in iwl_mvm_power_mac_dbgfs_read()
785 struct iwl_beacon_filter_cmd *cmd) in iwl_mvm_beacon_filter_debugfs_parameters() argument
791 cmd->bf_energy_delta = cpu_to_le32(dbgfs_bf->bf_energy_delta); in iwl_mvm_beacon_filter_debugfs_parameters()
793 cmd->bf_roaming_energy_delta = in iwl_mvm_beacon_filter_debugfs_parameters()
796 cmd->bf_roaming_state = cpu_to_le32(dbgfs_bf->bf_roaming_state); in iwl_mvm_beacon_filter_debugfs_parameters()
798 cmd->bf_temp_threshold = in iwl_mvm_beacon_filter_debugfs_parameters()
801 cmd->bf_temp_fast_filter = in iwl_mvm_beacon_filter_debugfs_parameters()
804 cmd->bf_temp_slow_filter = in iwl_mvm_beacon_filter_debugfs_parameters()
807 cmd->bf_debug_flag = cpu_to_le32(dbgfs_bf->bf_debug_flag); in iwl_mvm_beacon_filter_debugfs_parameters()
809 cmd->bf_escape_timer = cpu_to_le32(dbgfs_bf->bf_escape_timer); in iwl_mvm_beacon_filter_debugfs_parameters()
811 cmd->ba_escape_timer = cpu_to_le32(dbgfs_bf->ba_escape_timer); in iwl_mvm_beacon_filter_debugfs_parameters()
813 cmd->ba_enable_beacon_abort = in iwl_mvm_beacon_filter_debugfs_parameters()
820 struct iwl_beacon_filter_cmd *cmd, in _iwl_mvm_enable_beacon_filter() argument
831 iwl_mvm_beacon_filter_set_cqm_params(mvm, vif, cmd, d0i3); in _iwl_mvm_enable_beacon_filter()
833 iwl_mvm_beacon_filter_debugfs_parameters(vif, cmd); in _iwl_mvm_enable_beacon_filter()
834 ret = iwl_mvm_beacon_filter_send_cmd(mvm, cmd, cmd_flags); in _iwl_mvm_enable_beacon_filter()
847 struct iwl_beacon_filter_cmd cmd = { in iwl_mvm_enable_beacon_filter() local
852 return _iwl_mvm_enable_beacon_filter(mvm, vif, &cmd, flags, false); in iwl_mvm_enable_beacon_filter()
860 struct iwl_beacon_filter_cmd cmd = { in iwl_mvm_update_beacon_abort() local
869 cmd.ba_escape_timer = cpu_to_le32(IWL_BA_ESCAPE_TIMER_D3); in iwl_mvm_update_beacon_abort()
872 return _iwl_mvm_enable_beacon_filter(mvm, vif, &cmd, 0, false); in iwl_mvm_update_beacon_abort()
879 struct iwl_beacon_filter_cmd cmd = {}; in iwl_mvm_disable_beacon_filter() local
886 ret = iwl_mvm_beacon_filter_send_cmd(mvm, &cmd, flags); in iwl_mvm_disable_beacon_filter()
1002 struct iwl_mac_power_cmd cmd = {}; in iwl_mvm_update_d0i3_power_mode() local
1010 iwl_mvm_power_build_cmd(mvm, vif, &cmd, !enable); in iwl_mvm_update_d0i3_power_mode()
1012 iwl_mvm_power_log(mvm, &cmd); in iwl_mvm_update_d0i3_power_mode()
1014 memcpy(&mvmvif->mac_pwr_cmd, &cmd, sizeof(cmd)); in iwl_mvm_update_d0i3_power_mode()
1017 sizeof(cmd), &cmd); in iwl_mvm_update_d0i3_power_mode()