Lines Matching full: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
134 cmd->flags |= cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK); in iwl_mvm_power_configure_uapsd()
144 cmd->flags |= in iwl_mvm_power_configure_uapsd()
147 cmd->uapsd_ac_flags |= BIT(ac); in iwl_mvm_power_configure_uapsd()
154 cmd->qndp_tid = 6; in iwl_mvm_power_configure_uapsd()
157 cmd->qndp_tid = 5; in iwl_mvm_power_configure_uapsd()
160 cmd->qndp_tid = 0; in iwl_mvm_power_configure_uapsd()
163 cmd->qndp_tid = 1; in iwl_mvm_power_configure_uapsd()
169 cmd->flags |= cpu_to_le16(POWER_FLAGS_UAPSD_MISBEHAVING_ENA_MSK); in iwl_mvm_power_configure_uapsd()
171 if (cmd->uapsd_ac_flags == (BIT(IEEE80211_AC_VO) | in iwl_mvm_power_configure_uapsd()
175 cmd->flags |= cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK); in iwl_mvm_power_configure_uapsd()
176 cmd->snooze_interval = cpu_to_le16(IWL_MVM_PS_SNOOZE_INTERVAL); in iwl_mvm_power_configure_uapsd()
177 cmd->snooze_window = in iwl_mvm_power_configure_uapsd()
183 cmd->uapsd_max_sp = mvm->hw->uapsd_max_sp_len; in iwl_mvm_power_configure_uapsd()
186 cmd->flags & cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK)) { in iwl_mvm_power_configure_uapsd()
187 cmd->rx_data_timeout_uapsd = in iwl_mvm_power_configure_uapsd()
189 cmd->tx_data_timeout_uapsd = in iwl_mvm_power_configure_uapsd()
192 cmd->rx_data_timeout_uapsd = in iwl_mvm_power_configure_uapsd()
194 cmd->tx_data_timeout_uapsd = 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()
299 struct iwl_mac_power_cmd *cmd) in iwl_mvm_power_config_skip_dtim() argument
305 cmd->skip_dtim_periods = 0; in iwl_mvm_power_config_skip_dtim()
306 cmd->flags &= ~cpu_to_le16(POWER_FLAGS_SKIP_OVER_DTIM_MSK); in iwl_mvm_power_config_skip_dtim()
328 cmd->skip_dtim_periods = 1 + skip; in iwl_mvm_power_config_skip_dtim()
329 cmd->flags |= cpu_to_le16(POWER_FLAGS_SKIP_OVER_DTIM_MSK); in iwl_mvm_power_config_skip_dtim()
334 struct iwl_mac_power_cmd *cmd) in iwl_mvm_power_build_cmd() argument
341 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_power_build_cmd()
355 cmd->keep_alive_seconds = cpu_to_le16(keep_alive); in iwl_mvm_power_build_cmd()
360 cmd->flags |= cpu_to_le16(POWER_FLAGS_POWER_SAVE_ENA_MSK); in iwl_mvm_power_build_cmd()
371 cmd->flags |= cpu_to_le16(POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK); in iwl_mvm_power_build_cmd()
376 cmd->flags |= cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK); in iwl_mvm_power_build_cmd()
377 cmd->lprx_rssi_threshold = POWER_LPRX_RSSI_THRESHOLD; in iwl_mvm_power_build_cmd()
380 iwl_mvm_power_config_skip_dtim(mvm, vif, cmd); in iwl_mvm_power_build_cmd()
383 cmd->rx_data_timeout = in iwl_mvm_power_build_cmd()
385 cmd->tx_data_timeout = in iwl_mvm_power_build_cmd()
390 cmd->tx_data_timeout = in iwl_mvm_power_build_cmd()
392 cmd->rx_data_timeout = in iwl_mvm_power_build_cmd()
395 cmd->rx_data_timeout = in iwl_mvm_power_build_cmd()
397 cmd->tx_data_timeout = in iwl_mvm_power_build_cmd()
402 iwl_mvm_power_configure_uapsd(mvm, vif, cmd); in iwl_mvm_power_build_cmd()
406 cmd->keep_alive_seconds = in iwl_mvm_power_build_cmd()
410 cmd->flags |= in iwl_mvm_power_build_cmd()
413 cmd->flags &= in iwl_mvm_power_build_cmd()
417 cmd->rx_data_timeout = in iwl_mvm_power_build_cmd()
420 cmd->tx_data_timeout = in iwl_mvm_power_build_cmd()
423 cmd->skip_dtim_periods = mvmvif->dbgfs_pm.skip_dtim_periods; in iwl_mvm_power_build_cmd()
426 cmd->flags |= cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK); in iwl_mvm_power_build_cmd()
428 cmd->flags &= cpu_to_le16(~POWER_FLAGS_LPRX_ENA_MSK); in iwl_mvm_power_build_cmd()
431 cmd->lprx_rssi_threshold = mvmvif->dbgfs_pm.lprx_rssi_threshold; in iwl_mvm_power_build_cmd()
434 cmd->flags |= in iwl_mvm_power_build_cmd()
437 cmd->flags &= in iwl_mvm_power_build_cmd()
443 cmd->flags |= cpu_to_le16(flag); in iwl_mvm_power_build_cmd()
445 cmd->flags &= cpu_to_le16(flag); in iwl_mvm_power_build_cmd()
453 struct iwl_mac_power_cmd cmd = {}; in iwl_mvm_power_send_cmd() local
455 iwl_mvm_power_build_cmd(mvm, vif, &cmd); in iwl_mvm_power_send_cmd()
456 iwl_mvm_power_log(mvm, &cmd); in iwl_mvm_power_send_cmd()
458 memcpy(&iwl_mvm_vif_from_mac80211(vif)->mac_pwr_cmd, &cmd, sizeof(cmd)); in iwl_mvm_power_send_cmd()
462 sizeof(cmd), &cmd); in iwl_mvm_power_send_cmd()
467 struct iwl_device_power_cmd cmd = { in iwl_mvm_power_update_device() local
475 cmd.flags |= cpu_to_le16(DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK); in iwl_mvm_power_update_device()
480 cmd.flags &= in iwl_mvm_power_update_device()
484 cmd.flags |= cpu_to_le16(DEVICE_POWER_FLAGS_32K_CLK_VALID_MSK); in iwl_mvm_power_update_device()
488 cmd.flags); in iwl_mvm_power_update_device()
490 return iwl_mvm_send_cmd_pdu(mvm, POWER_TABLE_CMD, 0, sizeof(cmd), in iwl_mvm_power_update_device()
491 &cmd); in iwl_mvm_power_update_device()
681 struct iwl_mac_power_cmd cmd = {}; in iwl_mvm_power_mac_dbgfs_read() local
685 memcpy(&cmd, &mvmvif->mac_pwr_cmd, sizeof(cmd)); in iwl_mvm_power_mac_dbgfs_read()
691 le16_to_cpu(cmd.flags)); in iwl_mvm_power_mac_dbgfs_read()
693 le16_to_cpu(cmd.keep_alive_seconds)); in iwl_mvm_power_mac_dbgfs_read()
695 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK))) in iwl_mvm_power_mac_dbgfs_read()
699 (cmd.flags & in iwl_mvm_power_mac_dbgfs_read()
702 cmd.skip_dtim_periods); in iwl_mvm_power_mac_dbgfs_read()
703 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK))) { in iwl_mvm_power_mac_dbgfs_read()
705 le32_to_cpu(cmd.rx_data_timeout)); in iwl_mvm_power_mac_dbgfs_read()
707 le32_to_cpu(cmd.tx_data_timeout)); in iwl_mvm_power_mac_dbgfs_read()
709 if (cmd.flags & cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK)) in iwl_mvm_power_mac_dbgfs_read()
712 cmd.lprx_rssi_threshold); in iwl_mvm_power_mac_dbgfs_read()
714 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK))) in iwl_mvm_power_mac_dbgfs_read()
718 le32_to_cpu(cmd.rx_data_timeout_uapsd)); in iwl_mvm_power_mac_dbgfs_read()
720 le32_to_cpu(cmd.tx_data_timeout_uapsd)); in iwl_mvm_power_mac_dbgfs_read()
721 pos += scnprintf(buf+pos, bufsz-pos, "qndp_tid = %d\n", cmd.qndp_tid); in iwl_mvm_power_mac_dbgfs_read()
723 cmd.uapsd_ac_flags); in iwl_mvm_power_mac_dbgfs_read()
725 cmd.uapsd_max_sp); in iwl_mvm_power_mac_dbgfs_read()
727 cmd.heavy_tx_thld_packets); in iwl_mvm_power_mac_dbgfs_read()
729 cmd.heavy_rx_thld_packets); in iwl_mvm_power_mac_dbgfs_read()
731 cmd.heavy_tx_thld_percentage); in iwl_mvm_power_mac_dbgfs_read()
733 cmd.heavy_rx_thld_percentage); in iwl_mvm_power_mac_dbgfs_read()
735 (cmd.flags & in iwl_mvm_power_mac_dbgfs_read()
739 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK))) in iwl_mvm_power_mac_dbgfs_read()
743 cmd.snooze_interval); in iwl_mvm_power_mac_dbgfs_read()
745 cmd.snooze_window); in iwl_mvm_power_mac_dbgfs_read()
752 struct iwl_beacon_filter_cmd *cmd) in iwl_mvm_beacon_filter_debugfs_parameters() argument
758 cmd->bf_energy_delta = cpu_to_le32(dbgfs_bf->bf_energy_delta); in iwl_mvm_beacon_filter_debugfs_parameters()
760 cmd->bf_roaming_energy_delta = in iwl_mvm_beacon_filter_debugfs_parameters()
763 cmd->bf_roaming_state = cpu_to_le32(dbgfs_bf->bf_roaming_state); in iwl_mvm_beacon_filter_debugfs_parameters()
765 cmd->bf_temp_threshold = in iwl_mvm_beacon_filter_debugfs_parameters()
768 cmd->bf_temp_fast_filter = in iwl_mvm_beacon_filter_debugfs_parameters()
771 cmd->bf_temp_slow_filter = in iwl_mvm_beacon_filter_debugfs_parameters()
774 cmd->bf_debug_flag = cpu_to_le32(dbgfs_bf->bf_debug_flag); in iwl_mvm_beacon_filter_debugfs_parameters()
776 cmd->bf_escape_timer = cpu_to_le32(dbgfs_bf->bf_escape_timer); in iwl_mvm_beacon_filter_debugfs_parameters()
778 cmd->ba_escape_timer = cpu_to_le32(dbgfs_bf->ba_escape_timer); in iwl_mvm_beacon_filter_debugfs_parameters()
780 cmd->ba_enable_beacon_abort = in iwl_mvm_beacon_filter_debugfs_parameters()
787 struct iwl_beacon_filter_cmd *cmd, in _iwl_mvm_enable_beacon_filter() argument
797 iwl_mvm_beacon_filter_set_cqm_params(mvm, vif, cmd); in _iwl_mvm_enable_beacon_filter()
798 iwl_mvm_beacon_filter_debugfs_parameters(vif, cmd); in _iwl_mvm_enable_beacon_filter()
799 ret = iwl_mvm_beacon_filter_send_cmd(mvm, cmd, cmd_flags); in _iwl_mvm_enable_beacon_filter()
811 struct iwl_beacon_filter_cmd cmd = { in iwl_mvm_enable_beacon_filter() local
816 return _iwl_mvm_enable_beacon_filter(mvm, vif, &cmd, flags); in iwl_mvm_enable_beacon_filter()
823 struct iwl_beacon_filter_cmd cmd = {}; in _iwl_mvm_disable_beacon_filter() local
830 ret = iwl_mvm_beacon_filter_send_cmd(mvm, &cmd, flags); in _iwl_mvm_disable_beacon_filter()
877 struct iwl_beacon_filter_cmd cmd = { in iwl_mvm_power_set_ba() local
886 cmd.ba_escape_timer = cpu_to_le32(IWL_BA_ESCAPE_TIMER_D3); in iwl_mvm_power_set_ba()
893 return _iwl_mvm_enable_beacon_filter(mvm, vif, &cmd, 0); in iwl_mvm_power_set_ba()