Lines Matching refs:cmd

23 				   struct iwl_beacon_filter_cmd *cmd,  in iwl_mvm_beacon_filter_send_cmd()  argument
29 le32_to_cpu(cmd->ba_enable_beacon_abort)); in iwl_mvm_beacon_filter_send_cmd()
31 le32_to_cpu(cmd->ba_escape_timer)); in iwl_mvm_beacon_filter_send_cmd()
33 le32_to_cpu(cmd->bf_debug_flag)); in iwl_mvm_beacon_filter_send_cmd()
35 le32_to_cpu(cmd->bf_enable_beacon_filter)); in iwl_mvm_beacon_filter_send_cmd()
37 le32_to_cpu(cmd->bf_energy_delta)); in iwl_mvm_beacon_filter_send_cmd()
39 le32_to_cpu(cmd->bf_escape_timer)); in iwl_mvm_beacon_filter_send_cmd()
41 le32_to_cpu(cmd->bf_roaming_energy_delta)); in iwl_mvm_beacon_filter_send_cmd()
43 le32_to_cpu(cmd->bf_roaming_state)); in iwl_mvm_beacon_filter_send_cmd()
45 le32_to_cpu(cmd->bf_temp_threshold)); in iwl_mvm_beacon_filter_send_cmd()
47 le32_to_cpu(cmd->bf_temp_fast_filter)); in iwl_mvm_beacon_filter_send_cmd()
49 le32_to_cpu(cmd->bf_temp_slow_filter)); in iwl_mvm_beacon_filter_send_cmd()
51 le32_to_cpu(cmd->bf_threshold_absolute_low[0]), in iwl_mvm_beacon_filter_send_cmd()
52 le32_to_cpu(cmd->bf_threshold_absolute_low[1])); in iwl_mvm_beacon_filter_send_cmd()
55 le32_to_cpu(cmd->bf_threshold_absolute_high[0]), in iwl_mvm_beacon_filter_send_cmd()
56 le32_to_cpu(cmd->bf_threshold_absolute_high[1])); in iwl_mvm_beacon_filter_send_cmd()
66 len, cmd); in iwl_mvm_beacon_filter_send_cmd()
72 struct iwl_beacon_filter_cmd *cmd) in iwl_mvm_beacon_filter_set_cqm_params() argument
77 cmd->bf_energy_delta = in iwl_mvm_beacon_filter_set_cqm_params()
80 cmd->bf_roaming_state = in iwl_mvm_beacon_filter_set_cqm_params()
83 cmd->ba_enable_beacon_abort = cpu_to_le32(mvmvif->bf_data.ba_enabled); in iwl_mvm_beacon_filter_set_cqm_params()
87 struct iwl_mac_power_cmd *cmd) in iwl_mvm_power_log() argument
91 cmd->id_and_color, iwlmvm_mod_params.power_scheme, in iwl_mvm_power_log()
92 le16_to_cpu(cmd->flags)); in iwl_mvm_power_log()
94 le16_to_cpu(cmd->keep_alive_seconds)); in iwl_mvm_power_log()
96 if (!(cmd->flags & cpu_to_le16(POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK))) { in iwl_mvm_power_log()
102 le32_to_cpu(cmd->rx_data_timeout)); in iwl_mvm_power_log()
104 le32_to_cpu(cmd->tx_data_timeout)); in iwl_mvm_power_log()
105 if (cmd->flags & cpu_to_le16(POWER_FLAGS_SKIP_OVER_DTIM_MSK)) in iwl_mvm_power_log()
107 cmd->skip_dtim_periods); in iwl_mvm_power_log()
108 if (cmd->flags & cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK)) in iwl_mvm_power_log()
110 cmd->lprx_rssi_threshold); in iwl_mvm_power_log()
111 if (cmd->flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK)) { in iwl_mvm_power_log()
114 le32_to_cpu(cmd->rx_data_timeout_uapsd)); in iwl_mvm_power_log()
116 le32_to_cpu(cmd->tx_data_timeout_uapsd)); in iwl_mvm_power_log()
117 IWL_DEBUG_POWER(mvm, "QNDP TID = %d\n", cmd->qndp_tid); in iwl_mvm_power_log()
118 IWL_DEBUG_POWER(mvm, "ACs flags = 0x%x\n", cmd->uapsd_ac_flags); in iwl_mvm_power_log()
119 IWL_DEBUG_POWER(mvm, "Max SP = %d\n", cmd->uapsd_max_sp); in iwl_mvm_power_log()
125 struct iwl_mac_power_cmd *cmd) in iwl_mvm_power_configure_uapsd() argument
132 cmd->flags & cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK)) { in iwl_mvm_power_configure_uapsd()
133 cmd->rx_data_timeout_uapsd = in iwl_mvm_power_configure_uapsd()
135 cmd->tx_data_timeout_uapsd = in iwl_mvm_power_configure_uapsd()
138 cmd->rx_data_timeout_uapsd = in iwl_mvm_power_configure_uapsd()
140 cmd->tx_data_timeout_uapsd = in iwl_mvm_power_configure_uapsd()
147 cmd->flags |= cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK); in iwl_mvm_power_configure_uapsd()
157 cmd->flags |= in iwl_mvm_power_configure_uapsd()
160 cmd->uapsd_ac_flags |= BIT(ac); in iwl_mvm_power_configure_uapsd()
167 cmd->qndp_tid = 6; in iwl_mvm_power_configure_uapsd()
170 cmd->qndp_tid = 5; in iwl_mvm_power_configure_uapsd()
173 cmd->qndp_tid = 0; in iwl_mvm_power_configure_uapsd()
176 cmd->qndp_tid = 1; in iwl_mvm_power_configure_uapsd()
182 cmd->flags |= cpu_to_le16(POWER_FLAGS_UAPSD_MISBEHAVING_ENA_MSK); in iwl_mvm_power_configure_uapsd()
184 if (cmd->uapsd_ac_flags == (BIT(IEEE80211_AC_VO) | in iwl_mvm_power_configure_uapsd()
188 cmd->flags |= cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK); in iwl_mvm_power_configure_uapsd()
189 cmd->snooze_interval = cpu_to_le16(IWL_MVM_PS_SNOOZE_INTERVAL); in iwl_mvm_power_configure_uapsd()
190 cmd->snooze_window = in iwl_mvm_power_configure_uapsd()
196 cmd->uapsd_max_sp = mvm->hw->uapsd_max_sp_len; in iwl_mvm_power_configure_uapsd()
198 if (cmd->flags & cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK)) { in iwl_mvm_power_configure_uapsd()
199 cmd->heavy_tx_thld_packets = in iwl_mvm_power_configure_uapsd()
201 cmd->heavy_rx_thld_packets = in iwl_mvm_power_configure_uapsd()
204 cmd->heavy_tx_thld_packets = in iwl_mvm_power_configure_uapsd()
206 cmd->heavy_rx_thld_packets = in iwl_mvm_power_configure_uapsd()
209 cmd->heavy_tx_thld_percentage = in iwl_mvm_power_configure_uapsd()
211 cmd->heavy_rx_thld_percentage = in iwl_mvm_power_configure_uapsd()
306 struct iwl_mac_power_cmd *cmd) in iwl_mvm_power_config_skip_dtim() argument
312 cmd->skip_dtim_periods = 0; in iwl_mvm_power_config_skip_dtim()
313 cmd->flags &= ~cpu_to_le16(POWER_FLAGS_SKIP_OVER_DTIM_MSK); in iwl_mvm_power_config_skip_dtim()
334 cmd->skip_dtim_periods = skip; in iwl_mvm_power_config_skip_dtim()
335 cmd->flags |= cpu_to_le16(POWER_FLAGS_SKIP_OVER_DTIM_MSK); in iwl_mvm_power_config_skip_dtim()
340 struct iwl_mac_power_cmd *cmd) in iwl_mvm_power_build_cmd() argument
347 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_power_build_cmd()
361 cmd->keep_alive_seconds = cpu_to_le16(keep_alive); in iwl_mvm_power_build_cmd()
366 cmd->flags |= cpu_to_le16(POWER_FLAGS_POWER_SAVE_ENA_MSK); in iwl_mvm_power_build_cmd()
377 cmd->flags |= cpu_to_le16(POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK); in iwl_mvm_power_build_cmd()
382 cmd->flags |= cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK); in iwl_mvm_power_build_cmd()
383 cmd->lprx_rssi_threshold = POWER_LPRX_RSSI_THRESHOLD; in iwl_mvm_power_build_cmd()
386 iwl_mvm_power_config_skip_dtim(mvm, vif, cmd); in iwl_mvm_power_build_cmd()
389 cmd->rx_data_timeout = in iwl_mvm_power_build_cmd()
391 cmd->tx_data_timeout = in iwl_mvm_power_build_cmd()
396 cmd->tx_data_timeout = in iwl_mvm_power_build_cmd()
398 cmd->rx_data_timeout = 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 iwl_mvm_power_configure_uapsd(mvm, vif, cmd); in iwl_mvm_power_build_cmd()
412 cmd->keep_alive_seconds = in iwl_mvm_power_build_cmd()
416 cmd->flags |= in iwl_mvm_power_build_cmd()
419 cmd->flags &= in iwl_mvm_power_build_cmd()
423 cmd->rx_data_timeout = in iwl_mvm_power_build_cmd()
426 cmd->tx_data_timeout = in iwl_mvm_power_build_cmd()
429 cmd->skip_dtim_periods = mvmvif->dbgfs_pm.skip_dtim_periods; in iwl_mvm_power_build_cmd()
432 cmd->flags |= cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK); in iwl_mvm_power_build_cmd()
434 cmd->flags &= cpu_to_le16(~POWER_FLAGS_LPRX_ENA_MSK); in iwl_mvm_power_build_cmd()
437 cmd->lprx_rssi_threshold = mvmvif->dbgfs_pm.lprx_rssi_threshold; in iwl_mvm_power_build_cmd()
440 cmd->flags |= in iwl_mvm_power_build_cmd()
443 cmd->flags &= in iwl_mvm_power_build_cmd()
449 cmd->flags |= cpu_to_le16(flag); in iwl_mvm_power_build_cmd()
451 cmd->flags &= cpu_to_le16(flag); in iwl_mvm_power_build_cmd()
459 struct iwl_mac_power_cmd cmd = {}; in iwl_mvm_power_send_cmd() local
461 iwl_mvm_power_build_cmd(mvm, vif, &cmd); in iwl_mvm_power_send_cmd()
462 iwl_mvm_power_log(mvm, &cmd); in iwl_mvm_power_send_cmd()
464 memcpy(&iwl_mvm_vif_from_mac80211(vif)->mac_pwr_cmd, &cmd, sizeof(cmd)); in iwl_mvm_power_send_cmd()
468 sizeof(cmd), &cmd); in iwl_mvm_power_send_cmd()
473 struct iwl_device_power_cmd cmd = { in iwl_mvm_power_update_device() local
481 cmd.flags |= cpu_to_le16(DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK); in iwl_mvm_power_update_device()
486 cmd.flags &= in iwl_mvm_power_update_device()
490 cmd.flags |= cpu_to_le16(DEVICE_POWER_FLAGS_32K_CLK_VALID_MSK); in iwl_mvm_power_update_device()
494 cmd.flags); in iwl_mvm_power_update_device()
496 return iwl_mvm_send_cmd_pdu(mvm, POWER_TABLE_CMD, 0, sizeof(cmd), in iwl_mvm_power_update_device()
497 &cmd); in iwl_mvm_power_update_device()
705 struct iwl_mac_power_cmd cmd = {}; in iwl_mvm_power_mac_dbgfs_read() local
709 memcpy(&cmd, &mvmvif->mac_pwr_cmd, sizeof(cmd)); in iwl_mvm_power_mac_dbgfs_read()
715 le16_to_cpu(cmd.flags)); in iwl_mvm_power_mac_dbgfs_read()
717 le16_to_cpu(cmd.keep_alive_seconds)); in iwl_mvm_power_mac_dbgfs_read()
719 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK))) in iwl_mvm_power_mac_dbgfs_read()
723 (cmd.flags & in iwl_mvm_power_mac_dbgfs_read()
726 cmd.skip_dtim_periods); in iwl_mvm_power_mac_dbgfs_read()
727 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK))) { in iwl_mvm_power_mac_dbgfs_read()
729 le32_to_cpu(cmd.rx_data_timeout)); in iwl_mvm_power_mac_dbgfs_read()
731 le32_to_cpu(cmd.tx_data_timeout)); in iwl_mvm_power_mac_dbgfs_read()
733 if (cmd.flags & cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK)) in iwl_mvm_power_mac_dbgfs_read()
736 cmd.lprx_rssi_threshold); in iwl_mvm_power_mac_dbgfs_read()
738 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK))) in iwl_mvm_power_mac_dbgfs_read()
742 le32_to_cpu(cmd.rx_data_timeout_uapsd)); in iwl_mvm_power_mac_dbgfs_read()
744 le32_to_cpu(cmd.tx_data_timeout_uapsd)); in iwl_mvm_power_mac_dbgfs_read()
745 pos += scnprintf(buf+pos, bufsz-pos, "qndp_tid = %d\n", cmd.qndp_tid); in iwl_mvm_power_mac_dbgfs_read()
747 cmd.uapsd_ac_flags); in iwl_mvm_power_mac_dbgfs_read()
749 cmd.uapsd_max_sp); in iwl_mvm_power_mac_dbgfs_read()
751 cmd.heavy_tx_thld_packets); in iwl_mvm_power_mac_dbgfs_read()
753 cmd.heavy_rx_thld_packets); in iwl_mvm_power_mac_dbgfs_read()
755 cmd.heavy_tx_thld_percentage); in iwl_mvm_power_mac_dbgfs_read()
757 cmd.heavy_rx_thld_percentage); in iwl_mvm_power_mac_dbgfs_read()
759 (cmd.flags & in iwl_mvm_power_mac_dbgfs_read()
763 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK))) in iwl_mvm_power_mac_dbgfs_read()
767 cmd.snooze_interval); in iwl_mvm_power_mac_dbgfs_read()
769 cmd.snooze_window); in iwl_mvm_power_mac_dbgfs_read()
776 struct iwl_beacon_filter_cmd *cmd) in iwl_mvm_beacon_filter_debugfs_parameters() argument
782 cmd->bf_energy_delta = cpu_to_le32(dbgfs_bf->bf_energy_delta); in iwl_mvm_beacon_filter_debugfs_parameters()
784 cmd->bf_roaming_energy_delta = in iwl_mvm_beacon_filter_debugfs_parameters()
787 cmd->bf_roaming_state = cpu_to_le32(dbgfs_bf->bf_roaming_state); in iwl_mvm_beacon_filter_debugfs_parameters()
789 cmd->bf_temp_threshold = in iwl_mvm_beacon_filter_debugfs_parameters()
792 cmd->bf_temp_fast_filter = in iwl_mvm_beacon_filter_debugfs_parameters()
795 cmd->bf_temp_slow_filter = in iwl_mvm_beacon_filter_debugfs_parameters()
798 cmd->bf_debug_flag = cpu_to_le32(dbgfs_bf->bf_debug_flag); in iwl_mvm_beacon_filter_debugfs_parameters()
800 cmd->bf_escape_timer = cpu_to_le32(dbgfs_bf->bf_escape_timer); in iwl_mvm_beacon_filter_debugfs_parameters()
802 cmd->ba_escape_timer = cpu_to_le32(dbgfs_bf->ba_escape_timer); in iwl_mvm_beacon_filter_debugfs_parameters()
804 cmd->ba_enable_beacon_abort = in iwl_mvm_beacon_filter_debugfs_parameters()
811 struct iwl_beacon_filter_cmd *cmd, in _iwl_mvm_enable_beacon_filter() argument
821 iwl_mvm_beacon_filter_set_cqm_params(mvm, vif, cmd); in _iwl_mvm_enable_beacon_filter()
822 iwl_mvm_beacon_filter_debugfs_parameters(vif, cmd); in _iwl_mvm_enable_beacon_filter()
823 ret = iwl_mvm_beacon_filter_send_cmd(mvm, cmd, cmd_flags); in _iwl_mvm_enable_beacon_filter()
835 struct iwl_beacon_filter_cmd cmd = { in iwl_mvm_enable_beacon_filter() local
840 return _iwl_mvm_enable_beacon_filter(mvm, vif, &cmd, flags); in iwl_mvm_enable_beacon_filter()
847 struct iwl_beacon_filter_cmd cmd = {}; in _iwl_mvm_disable_beacon_filter() local
854 ret = iwl_mvm_beacon_filter_send_cmd(mvm, &cmd, flags); in _iwl_mvm_disable_beacon_filter()
901 struct iwl_beacon_filter_cmd cmd = { in iwl_mvm_power_set_ba() local
910 cmd.ba_escape_timer = cpu_to_le32(IWL_BA_ESCAPE_TIMER_D3); in iwl_mvm_power_set_ba()
917 return _iwl_mvm_enable_beacon_filter(mvm, vif, &cmd, 0); in iwl_mvm_power_set_ba()