Lines Matching refs:cmd

82 				   struct iwl_beacon_filter_cmd *cmd,  in iwl_mvm_beacon_filter_send_cmd()  argument
86 le32_to_cpu(cmd->ba_enable_beacon_abort)); in iwl_mvm_beacon_filter_send_cmd()
88 le32_to_cpu(cmd->ba_escape_timer)); in iwl_mvm_beacon_filter_send_cmd()
90 le32_to_cpu(cmd->bf_debug_flag)); in iwl_mvm_beacon_filter_send_cmd()
92 le32_to_cpu(cmd->bf_enable_beacon_filter)); in iwl_mvm_beacon_filter_send_cmd()
94 le32_to_cpu(cmd->bf_energy_delta)); in iwl_mvm_beacon_filter_send_cmd()
96 le32_to_cpu(cmd->bf_escape_timer)); in iwl_mvm_beacon_filter_send_cmd()
98 le32_to_cpu(cmd->bf_roaming_energy_delta)); in iwl_mvm_beacon_filter_send_cmd()
100 le32_to_cpu(cmd->bf_roaming_state)); in iwl_mvm_beacon_filter_send_cmd()
102 le32_to_cpu(cmd->bf_temp_threshold)); in iwl_mvm_beacon_filter_send_cmd()
104 le32_to_cpu(cmd->bf_temp_fast_filter)); in iwl_mvm_beacon_filter_send_cmd()
106 le32_to_cpu(cmd->bf_temp_slow_filter)); in iwl_mvm_beacon_filter_send_cmd()
109 sizeof(struct iwl_beacon_filter_cmd), cmd); in iwl_mvm_beacon_filter_send_cmd()
115 struct iwl_beacon_filter_cmd *cmd) in iwl_mvm_beacon_filter_set_cqm_params() argument
120 cmd->bf_energy_delta = in iwl_mvm_beacon_filter_set_cqm_params()
123 cmd->bf_roaming_state = in iwl_mvm_beacon_filter_set_cqm_params()
126 cmd->ba_enable_beacon_abort = cpu_to_le32(mvmvif->bf_data.ba_enabled); in iwl_mvm_beacon_filter_set_cqm_params()
130 struct iwl_mac_power_cmd *cmd) in iwl_mvm_power_log() argument
134 cmd->id_and_color, iwlmvm_mod_params.power_scheme, in iwl_mvm_power_log()
135 le16_to_cpu(cmd->flags)); in iwl_mvm_power_log()
137 le16_to_cpu(cmd->keep_alive_seconds)); in iwl_mvm_power_log()
139 if (!(cmd->flags & cpu_to_le16(POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK))) { in iwl_mvm_power_log()
145 le32_to_cpu(cmd->rx_data_timeout)); in iwl_mvm_power_log()
147 le32_to_cpu(cmd->tx_data_timeout)); in iwl_mvm_power_log()
148 if (cmd->flags & cpu_to_le16(POWER_FLAGS_SKIP_OVER_DTIM_MSK)) in iwl_mvm_power_log()
150 cmd->skip_dtim_periods); in iwl_mvm_power_log()
151 if (cmd->flags & cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK)) in iwl_mvm_power_log()
153 cmd->lprx_rssi_threshold); in iwl_mvm_power_log()
154 if (cmd->flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK)) { in iwl_mvm_power_log()
157 le32_to_cpu(cmd->rx_data_timeout_uapsd)); in iwl_mvm_power_log()
159 le32_to_cpu(cmd->tx_data_timeout_uapsd)); in iwl_mvm_power_log()
160 IWL_DEBUG_POWER(mvm, "QNDP TID = %d\n", cmd->qndp_tid); in iwl_mvm_power_log()
161 IWL_DEBUG_POWER(mvm, "ACs flags = 0x%x\n", cmd->uapsd_ac_flags); in iwl_mvm_power_log()
162 IWL_DEBUG_POWER(mvm, "Max SP = %d\n", cmd->uapsd_max_sp); in iwl_mvm_power_log()
168 struct iwl_mac_power_cmd *cmd) in iwl_mvm_power_configure_uapsd() argument
179 cmd->flags |= in iwl_mvm_power_configure_uapsd()
182 cmd->uapsd_ac_flags |= BIT(ac); in iwl_mvm_power_configure_uapsd()
189 cmd->qndp_tid = 6; in iwl_mvm_power_configure_uapsd()
192 cmd->qndp_tid = 5; in iwl_mvm_power_configure_uapsd()
195 cmd->qndp_tid = 0; in iwl_mvm_power_configure_uapsd()
198 cmd->qndp_tid = 1; in iwl_mvm_power_configure_uapsd()
204 if (!(cmd->flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK))) { in iwl_mvm_power_configure_uapsd()
208 cmd->flags |= in iwl_mvm_power_configure_uapsd()
214 cmd->flags |= cpu_to_le16(POWER_FLAGS_UAPSD_MISBEHAVING_ENA_MSK); in iwl_mvm_power_configure_uapsd()
216 if (cmd->uapsd_ac_flags == (BIT(IEEE80211_AC_VO) | in iwl_mvm_power_configure_uapsd()
220 cmd->flags |= cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK); in iwl_mvm_power_configure_uapsd()
221 cmd->snooze_interval = cpu_to_le16(IWL_MVM_PS_SNOOZE_INTERVAL); in iwl_mvm_power_configure_uapsd()
222 cmd->snooze_window = (mvm->cur_ucode == IWL_UCODE_WOWLAN) ? in iwl_mvm_power_configure_uapsd()
227 cmd->uapsd_max_sp = IWL_UAPSD_MAX_SP; in iwl_mvm_power_configure_uapsd()
229 if (mvm->cur_ucode == IWL_UCODE_WOWLAN || cmd->flags & in iwl_mvm_power_configure_uapsd()
231 cmd->rx_data_timeout_uapsd = in iwl_mvm_power_configure_uapsd()
233 cmd->tx_data_timeout_uapsd = in iwl_mvm_power_configure_uapsd()
236 cmd->rx_data_timeout_uapsd = in iwl_mvm_power_configure_uapsd()
238 cmd->tx_data_timeout_uapsd = in iwl_mvm_power_configure_uapsd()
242 if (cmd->flags & cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK)) { in iwl_mvm_power_configure_uapsd()
243 cmd->heavy_tx_thld_packets = in iwl_mvm_power_configure_uapsd()
245 cmd->heavy_rx_thld_packets = in iwl_mvm_power_configure_uapsd()
248 cmd->heavy_tx_thld_packets = in iwl_mvm_power_configure_uapsd()
250 cmd->heavy_rx_thld_packets = in iwl_mvm_power_configure_uapsd()
253 cmd->heavy_tx_thld_percentage = in iwl_mvm_power_configure_uapsd()
255 cmd->heavy_rx_thld_percentage = in iwl_mvm_power_configure_uapsd()
331 struct iwl_mac_power_cmd *cmd) in iwl_mvm_power_build_cmd() argument
339 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_power_build_cmd()
353 cmd->keep_alive_seconds = cpu_to_le16(keep_alive); in iwl_mvm_power_build_cmd()
358 cmd->flags |= cpu_to_le16(POWER_FLAGS_POWER_SAVE_ENA_MSK); in iwl_mvm_power_build_cmd()
364 cmd->flags |= cpu_to_le16(POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK); in iwl_mvm_power_build_cmd()
369 cmd->flags |= cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK); in iwl_mvm_power_build_cmd()
370 cmd->lprx_rssi_threshold = POWER_LPRX_RSSI_THRESHOLD; in iwl_mvm_power_build_cmd()
380 cmd->skip_dtim_periods = in iwl_mvm_power_build_cmd()
382 if (cmd->skip_dtim_periods) in iwl_mvm_power_build_cmd()
383 cmd->flags |= in iwl_mvm_power_build_cmd()
388 cmd->rx_data_timeout = in iwl_mvm_power_build_cmd()
390 cmd->tx_data_timeout = in iwl_mvm_power_build_cmd()
393 cmd->rx_data_timeout = in iwl_mvm_power_build_cmd()
395 cmd->tx_data_timeout = in iwl_mvm_power_build_cmd()
400 iwl_mvm_power_configure_uapsd(mvm, vif, cmd); in iwl_mvm_power_build_cmd()
404 cmd->keep_alive_seconds = in iwl_mvm_power_build_cmd()
408 cmd->flags |= in iwl_mvm_power_build_cmd()
411 cmd->flags &= in iwl_mvm_power_build_cmd()
415 cmd->rx_data_timeout = in iwl_mvm_power_build_cmd()
418 cmd->tx_data_timeout = in iwl_mvm_power_build_cmd()
421 cmd->skip_dtim_periods = mvmvif->dbgfs_pm.skip_dtim_periods; in iwl_mvm_power_build_cmd()
424 cmd->flags |= cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK); in iwl_mvm_power_build_cmd()
426 cmd->flags &= cpu_to_le16(~POWER_FLAGS_LPRX_ENA_MSK); in iwl_mvm_power_build_cmd()
429 cmd->lprx_rssi_threshold = mvmvif->dbgfs_pm.lprx_rssi_threshold; in iwl_mvm_power_build_cmd()
432 cmd->flags |= in iwl_mvm_power_build_cmd()
435 cmd->flags &= in iwl_mvm_power_build_cmd()
441 cmd->flags |= cpu_to_le16(flag); in iwl_mvm_power_build_cmd()
443 cmd->flags &= cpu_to_le16(flag); in iwl_mvm_power_build_cmd()
451 struct iwl_mac_power_cmd cmd = {}; in iwl_mvm_power_send_cmd() local
453 iwl_mvm_power_build_cmd(mvm, vif, &cmd); in iwl_mvm_power_send_cmd()
454 iwl_mvm_power_log(mvm, &cmd); in iwl_mvm_power_send_cmd()
456 memcpy(&iwl_mvm_vif_from_mac80211(vif)->mac_pwr_cmd, &cmd, sizeof(cmd)); in iwl_mvm_power_send_cmd()
460 sizeof(cmd), &cmd); in iwl_mvm_power_send_cmd()
465 struct iwl_device_power_cmd cmd = { in iwl_mvm_power_update_device() local
473 cmd.flags |= cpu_to_le16(DEVICE_POWER_FLAGS_CAM_MSK); in iwl_mvm_power_update_device()
478 cmd.flags &= in iwl_mvm_power_update_device()
483 cmd.flags); in iwl_mvm_power_update_device()
485 return iwl_mvm_send_cmd_pdu(mvm, POWER_TABLE_CMD, 0, sizeof(cmd), in iwl_mvm_power_update_device()
486 &cmd); in iwl_mvm_power_update_device()
514 struct iwl_device_cmd *cmd) in iwl_mvm_power_uapsd_misbehaving_ap_notif() argument
696 struct iwl_mac_power_cmd cmd = {}; in iwl_mvm_power_mac_dbgfs_read() local
700 memcpy(&cmd, &mvmvif->mac_pwr_cmd, sizeof(cmd)); in iwl_mvm_power_mac_dbgfs_read()
706 le16_to_cpu(cmd.flags)); in iwl_mvm_power_mac_dbgfs_read()
708 le16_to_cpu(cmd.keep_alive_seconds)); in iwl_mvm_power_mac_dbgfs_read()
710 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK))) in iwl_mvm_power_mac_dbgfs_read()
714 (cmd.flags & in iwl_mvm_power_mac_dbgfs_read()
717 cmd.skip_dtim_periods); in iwl_mvm_power_mac_dbgfs_read()
718 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK))) { in iwl_mvm_power_mac_dbgfs_read()
720 le32_to_cpu(cmd.rx_data_timeout)); in iwl_mvm_power_mac_dbgfs_read()
722 le32_to_cpu(cmd.tx_data_timeout)); in iwl_mvm_power_mac_dbgfs_read()
724 if (cmd.flags & cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK)) in iwl_mvm_power_mac_dbgfs_read()
727 cmd.lprx_rssi_threshold); in iwl_mvm_power_mac_dbgfs_read()
729 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK))) in iwl_mvm_power_mac_dbgfs_read()
733 le32_to_cpu(cmd.rx_data_timeout_uapsd)); in iwl_mvm_power_mac_dbgfs_read()
735 le32_to_cpu(cmd.tx_data_timeout_uapsd)); in iwl_mvm_power_mac_dbgfs_read()
736 pos += scnprintf(buf+pos, bufsz-pos, "qndp_tid = %d\n", cmd.qndp_tid); in iwl_mvm_power_mac_dbgfs_read()
738 cmd.uapsd_ac_flags); in iwl_mvm_power_mac_dbgfs_read()
740 cmd.uapsd_max_sp); in iwl_mvm_power_mac_dbgfs_read()
742 cmd.heavy_tx_thld_packets); in iwl_mvm_power_mac_dbgfs_read()
744 cmd.heavy_rx_thld_packets); in iwl_mvm_power_mac_dbgfs_read()
746 cmd.heavy_tx_thld_percentage); in iwl_mvm_power_mac_dbgfs_read()
748 cmd.heavy_rx_thld_percentage); in iwl_mvm_power_mac_dbgfs_read()
750 (cmd.flags & in iwl_mvm_power_mac_dbgfs_read()
754 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK))) in iwl_mvm_power_mac_dbgfs_read()
758 cmd.snooze_interval); in iwl_mvm_power_mac_dbgfs_read()
760 cmd.snooze_window); in iwl_mvm_power_mac_dbgfs_read()
767 struct iwl_beacon_filter_cmd *cmd) in iwl_mvm_beacon_filter_debugfs_parameters() argument
773 cmd->bf_energy_delta = cpu_to_le32(dbgfs_bf->bf_energy_delta); in iwl_mvm_beacon_filter_debugfs_parameters()
775 cmd->bf_roaming_energy_delta = in iwl_mvm_beacon_filter_debugfs_parameters()
778 cmd->bf_roaming_state = cpu_to_le32(dbgfs_bf->bf_roaming_state); in iwl_mvm_beacon_filter_debugfs_parameters()
780 cmd->bf_temp_threshold = in iwl_mvm_beacon_filter_debugfs_parameters()
783 cmd->bf_temp_fast_filter = in iwl_mvm_beacon_filter_debugfs_parameters()
786 cmd->bf_temp_slow_filter = in iwl_mvm_beacon_filter_debugfs_parameters()
789 cmd->bf_debug_flag = cpu_to_le32(dbgfs_bf->bf_debug_flag); in iwl_mvm_beacon_filter_debugfs_parameters()
791 cmd->bf_escape_timer = cpu_to_le32(dbgfs_bf->bf_escape_timer); in iwl_mvm_beacon_filter_debugfs_parameters()
793 cmd->ba_escape_timer = cpu_to_le32(dbgfs_bf->ba_escape_timer); in iwl_mvm_beacon_filter_debugfs_parameters()
795 cmd->ba_enable_beacon_abort = in iwl_mvm_beacon_filter_debugfs_parameters()
802 struct iwl_beacon_filter_cmd *cmd, in _iwl_mvm_enable_beacon_filter() argument
813 iwl_mvm_beacon_filter_set_cqm_params(mvm, vif, cmd); in _iwl_mvm_enable_beacon_filter()
815 iwl_mvm_beacon_filter_debugfs_parameters(vif, cmd); in _iwl_mvm_enable_beacon_filter()
816 ret = iwl_mvm_beacon_filter_send_cmd(mvm, cmd, cmd_flags); in _iwl_mvm_enable_beacon_filter()
829 struct iwl_beacon_filter_cmd cmd = { in iwl_mvm_enable_beacon_filter() local
834 return _iwl_mvm_enable_beacon_filter(mvm, vif, &cmd, flags, false); in iwl_mvm_enable_beacon_filter()
842 struct iwl_beacon_filter_cmd cmd = { in iwl_mvm_update_beacon_abort() local
851 cmd.ba_escape_timer = cpu_to_le32(IWL_BA_ESCAPE_TIMER_D3); in iwl_mvm_update_beacon_abort()
854 return _iwl_mvm_enable_beacon_filter(mvm, vif, &cmd, 0, false); in iwl_mvm_update_beacon_abort()
861 struct iwl_beacon_filter_cmd cmd = {}; in iwl_mvm_disable_beacon_filter() local
868 ret = iwl_mvm_beacon_filter_send_cmd(mvm, &cmd, flags); in iwl_mvm_disable_beacon_filter()
984 struct iwl_mac_power_cmd cmd = {}; in iwl_mvm_update_d0i3_power_mode() local
992 iwl_mvm_power_build_cmd(mvm, vif, &cmd); in iwl_mvm_update_d0i3_power_mode()
1005 cmd.skip_dtim_periods = 306 / dtimper_tu; in iwl_mvm_update_d0i3_power_mode()
1006 if (cmd.skip_dtim_periods) in iwl_mvm_update_d0i3_power_mode()
1007 cmd.flags |= cpu_to_le16( in iwl_mvm_update_d0i3_power_mode()
1011 iwl_mvm_power_log(mvm, &cmd); in iwl_mvm_update_d0i3_power_mode()
1013 memcpy(&mvmvif->mac_pwr_cmd, &cmd, sizeof(cmd)); in iwl_mvm_update_d0i3_power_mode()
1016 sizeof(cmd), &cmd); in iwl_mvm_update_d0i3_power_mode()