Lines Matching refs:cmd
307 struct iwl_mvm_add_sta_cmd cmd = {}; in iwl_mvm_invalidate_sta_queue() local
331 cmd.mac_id_n_color = cpu_to_le32(mvmsta->mac_id_n_color); in iwl_mvm_invalidate_sta_queue()
332 cmd.sta_id = mvmsta->deflink.sta_id; in iwl_mvm_invalidate_sta_queue()
333 cmd.add_modify = STA_MODE_MODIFY; in iwl_mvm_invalidate_sta_queue()
334 cmd.modify_mask = STA_MODIFY_QUEUES; in iwl_mvm_invalidate_sta_queue()
336 cmd.modify_mask |= STA_MODIFY_TID_DISABLE_TX; in iwl_mvm_invalidate_sta_queue()
338 cmd.modify_mask |= STA_MODIFY_QUEUE_REMOVAL; in iwl_mvm_invalidate_sta_queue()
339 cmd.tfd_queue_msk = cpu_to_le32(mvmsta->tfd_queue_msk); in iwl_mvm_invalidate_sta_queue()
340 cmd.tid_disable_tx = cpu_to_le16(mvmsta->tid_disable_agg); in iwl_mvm_invalidate_sta_queue()
348 &cmd, &status); in iwl_mvm_invalidate_sta_queue()
355 struct iwl_scd_txq_cfg_cmd cmd = { in iwl_mvm_disable_txq() local
395 cmd.action = mvm->queue_info[queue].tid_bitmap ? in iwl_mvm_disable_txq()
397 if (cmd.action == SCD_CFG_DISABLE_QUEUE) in iwl_mvm_disable_txq()
406 if (cmd.action == SCD_CFG_ENABLE_QUEUE) in iwl_mvm_disable_txq()
409 cmd.sta_id = mvm->queue_info[queue].ra_sta_id; in iwl_mvm_disable_txq()
410 cmd.tid = mvm->queue_info[queue].txq_tid; in iwl_mvm_disable_txq()
436 sizeof(struct iwl_scd_txq_cfg_cmd), &cmd); in iwl_mvm_disable_txq()
666 struct iwl_scd_txq_cfg_cmd cmd = { in iwl_mvm_reconfig_scd() local
688 ret = iwl_mvm_send_cmd_pdu(mvm, SCD_QUEUE_CFG, 0, sizeof(cmd), &cmd); in iwl_mvm_reconfig_scd()
705 struct iwl_scd_txq_cfg_cmd cmd = { in iwl_mvm_redirect_queue() local
730 cmd.sta_id = mvm->queue_info[queue].ra_sta_id; in iwl_mvm_redirect_queue()
731 cmd.tx_fifo = iwl_mvm_ac_to_tx_fifo[mvm->queue_info[queue].mac80211_ac]; in iwl_mvm_redirect_queue()
732 cmd.tid = mvm->queue_info[queue].txq_tid; in iwl_mvm_redirect_queue()
751 ret = iwl_mvm_send_cmd_pdu(mvm, SCD_QUEUE_CFG, 0, sizeof(cmd), &cmd); in iwl_mvm_redirect_queue()
766 cmd.sta_id, tid, IWL_FRAME_LIMIT, ssn); in iwl_mvm_redirect_queue()
992 struct iwl_scd_txq_cfg_cmd cmd = { in iwl_mvm_enable_txq() local
1014 le16_add_cpu(&cmd.ssn, 1); in iwl_mvm_enable_txq()
1016 WARN(iwl_mvm_send_cmd_pdu(mvm, SCD_QUEUE_CFG, 0, sizeof(cmd), &cmd), in iwl_mvm_enable_txq()
1024 struct iwl_scd_txq_cfg_cmd cmd = { in iwl_mvm_change_queue_tid() local
1044 cmd.tid = tid; in iwl_mvm_change_queue_tid()
1045 cmd.tx_fifo = iwl_mvm_ac_to_tx_fifo[tid_to_mac80211_ac[tid]]; in iwl_mvm_change_queue_tid()
1047 ret = iwl_mvm_send_cmd_pdu(mvm, SCD_QUEUE_CFG, 0, sizeof(cmd), &cmd); in iwl_mvm_change_queue_tid()
1112 struct iwl_mvm_add_sta_cmd cmd = {0}; in iwl_mvm_unshare_queue() local
1116 cmd.mac_id_n_color = cpu_to_le32(mvmsta->mac_id_n_color); in iwl_mvm_unshare_queue()
1117 cmd.sta_id = mvmsta->deflink.sta_id; in iwl_mvm_unshare_queue()
1118 cmd.add_modify = STA_MODE_MODIFY; in iwl_mvm_unshare_queue()
1119 cmd.modify_mask = STA_MODIFY_TID_DISABLE_TX; in iwl_mvm_unshare_queue()
1120 cmd.tfd_queue_msk = cpu_to_le32(mvmsta->tfd_queue_msk); in iwl_mvm_unshare_queue()
1121 cmd.tid_disable_tx = cpu_to_le16(mvmsta->tid_disable_agg); in iwl_mvm_unshare_queue()
1124 iwl_mvm_add_sta_cmd_size(mvm), &cmd); in iwl_mvm_unshare_queue()
1681 struct iwl_mvm_add_sta_cmd cmd; in iwl_mvm_add_int_sta_common() local
1687 memset(&cmd, 0, sizeof(cmd)); in iwl_mvm_add_int_sta_common()
1688 cmd.sta_id = sta->sta_id; in iwl_mvm_add_int_sta_common()
1692 cmd.mac_id_n_color = cpu_to_le32(mac_id); in iwl_mvm_add_int_sta_common()
1694 cmd.mac_id_n_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mac_id, in iwl_mvm_add_int_sta_common()
1698 cmd.station_type = sta->type; in iwl_mvm_add_int_sta_common()
1701 cmd.tfd_queue_msk = cpu_to_le32(sta->tfd_queue_msk); in iwl_mvm_add_int_sta_common()
1702 cmd.tid_disable_tx = cpu_to_le16(0xffff); in iwl_mvm_add_int_sta_common()
1705 memcpy(cmd.addr, addr, ETH_ALEN); in iwl_mvm_add_int_sta_common()
1709 &cmd, &status); in iwl_mvm_add_int_sta_common()
1898 struct iwl_mvm_add_sta_cmd cmd = {}; in iwl_mvm_drain_sta() local
1904 cmd.mac_id_n_color = cpu_to_le32(mvmsta->mac_id_n_color); in iwl_mvm_drain_sta()
1905 cmd.sta_id = mvmsta->deflink.sta_id; in iwl_mvm_drain_sta()
1906 cmd.add_modify = STA_MODE_MODIFY; in iwl_mvm_drain_sta()
1907 cmd.station_flags = drain ? cpu_to_le32(STA_FLG_DRAIN_FLOW) : 0; in iwl_mvm_drain_sta()
1908 cmd.station_flags_msk = cpu_to_le32(STA_FLG_DRAIN_FLOW); in iwl_mvm_drain_sta()
1913 &cmd, &status); in iwl_mvm_drain_sta()
2612 struct iwl_mvm_add_sta_key_cmd cmd; in __iwl_mvm_remove_sta_key() member
2636 u.cmd.common.key_flags = key_flags; in __iwl_mvm_remove_sta_key()
2637 u.cmd.common.key_offset = keyconf->hw_key_idx; in __iwl_mvm_remove_sta_key()
2638 u.cmd.common.sta_id = sta_id; in __iwl_mvm_remove_sta_key()
2640 size = new_api ? sizeof(u.cmd) : sizeof(u.cmd_v1); in __iwl_mvm_remove_sta_key()
2643 ret = iwl_mvm_send_cmd_pdu_status(mvm, ADD_STA_KEY, size, &u.cmd, in __iwl_mvm_remove_sta_key()
2770 struct iwl_mvm_add_sta_cmd cmd = { in iwl_mvm_fw_baid_op_sta() local
2779 cmd.add_immediate_ba_tid = tid; in iwl_mvm_fw_baid_op_sta()
2780 cmd.add_immediate_ba_ssn = cpu_to_le16(ssn); in iwl_mvm_fw_baid_op_sta()
2781 cmd.rx_ba_window = cpu_to_le16(buf_size); in iwl_mvm_fw_baid_op_sta()
2782 cmd.modify_mask = STA_MODIFY_ADD_BA_TID; in iwl_mvm_fw_baid_op_sta()
2784 cmd.remove_immediate_ba_tid = tid; in iwl_mvm_fw_baid_op_sta()
2785 cmd.modify_mask = STA_MODIFY_REMOVE_BA_TID; in iwl_mvm_fw_baid_op_sta()
2791 &cmd, &status); in iwl_mvm_fw_baid_op_sta()
2818 struct iwl_rx_baid_cfg_cmd cmd = { in iwl_mvm_fw_baid_op_cmd() local
2825 .len[0] = sizeof(cmd), in iwl_mvm_fw_baid_op_cmd()
2826 .data[0] = &cmd, in iwl_mvm_fw_baid_op_cmd()
2833 cmd.alloc.sta_id_mask = in iwl_mvm_fw_baid_op_cmd()
2835 cmd.alloc.tid = tid; in iwl_mvm_fw_baid_op_cmd()
2836 cmd.alloc.ssn = cpu_to_le16(ssn); in iwl_mvm_fw_baid_op_cmd()
2837 cmd.alloc.win_size = cpu_to_le16(buf_size); in iwl_mvm_fw_baid_op_cmd()
2840 cmd.remove_v1.baid = cpu_to_le32(baid); in iwl_mvm_fw_baid_op_cmd()
2841 BUILD_BUG_ON(sizeof(cmd.remove_v1) > sizeof(cmd.remove)); in iwl_mvm_fw_baid_op_cmd()
2843 cmd.remove.sta_id_mask = in iwl_mvm_fw_baid_op_cmd()
2845 cmd.remove.tid = cpu_to_le32(tid); in iwl_mvm_fw_baid_op_cmd()
3029 struct iwl_mvm_add_sta_cmd cmd = {}; in iwl_mvm_sta_tx_agg() local
3043 cmd.mac_id_n_color = cpu_to_le32(mvm_sta->mac_id_n_color); in iwl_mvm_sta_tx_agg()
3044 cmd.sta_id = mvm_sta->deflink.sta_id; in iwl_mvm_sta_tx_agg()
3045 cmd.add_modify = STA_MODE_MODIFY; in iwl_mvm_sta_tx_agg()
3047 cmd.modify_mask = STA_MODIFY_QUEUES; in iwl_mvm_sta_tx_agg()
3048 cmd.modify_mask |= STA_MODIFY_TID_DISABLE_TX; in iwl_mvm_sta_tx_agg()
3049 cmd.tfd_queue_msk = cpu_to_le32(mvm_sta->tfd_queue_msk); in iwl_mvm_sta_tx_agg()
3050 cmd.tid_disable_tx = cpu_to_le16(mvm_sta->tid_disable_agg); in iwl_mvm_sta_tx_agg()
3055 &cmd, &status); in iwl_mvm_sta_tx_agg()
3556 struct iwl_mvm_add_sta_key_cmd cmd; in iwl_mvm_send_sta_key() member
3581 memcpy((void *)&u.cmd.tx_mic_key, in iwl_mvm_send_sta_key()
3585 memcpy((void *)&u.cmd.rx_mic_key, in iwl_mvm_send_sta_key()
3596 memcpy(u.cmd.common.key, key->key, key->keylen); in iwl_mvm_send_sta_key()
3600 memcpy(u.cmd.common.key, key->key, key->keylen); in iwl_mvm_send_sta_key()
3609 memcpy(u.cmd.common.key + 3, key->key, key->keylen); in iwl_mvm_send_sta_key()
3616 memcpy(u.cmd.common.key, key->key, key->keylen); in iwl_mvm_send_sta_key()
3622 memcpy(u.cmd.common.key, key->key, key->keylen); in iwl_mvm_send_sta_key()
3630 u.cmd.common.key_offset = key_offset; in iwl_mvm_send_sta_key()
3631 u.cmd.common.key_flags = key_flags; in iwl_mvm_send_sta_key()
3632 u.cmd.common.sta_id = sta_id; in iwl_mvm_send_sta_key()
3667 if (iwl_mvm_pn_cmp(rx_pn, (u8 *)&u.cmd.common.rx_secur_seq_cnt, in iwl_mvm_send_sta_key()
3669 memcpy(&u.cmd.common.rx_secur_seq_cnt, rx_pn, in iwl_mvm_send_sta_key()
3674 u.cmd.transmit_seq_cnt = cpu_to_le64(pn); in iwl_mvm_send_sta_key()
3675 size = sizeof(u.cmd); in iwl_mvm_send_sta_key()
3683 &u.cmd); in iwl_mvm_send_sta_key()
3686 &u.cmd, &status); in iwl_mvm_send_sta_key()
4041 struct iwl_mvm_add_sta_cmd cmd = { in iwl_mvm_sta_modify_ps_wake() local
4050 iwl_mvm_add_sta_cmd_size(mvm), &cmd); in iwl_mvm_sta_modify_ps_wake()
4062 struct iwl_mvm_add_sta_cmd cmd = { in iwl_mvm_sta_modify_sleep_tx_count() local
4077 cmd.awake_acs |= BIT(tid_to_ucode_ac[tid]); in iwl_mvm_sta_modify_sleep_tx_count()
4110 cmd.sleep_tx_count = cpu_to_le16(sleep_tx_count); in iwl_mvm_sta_modify_sleep_tx_count()
4119 cmd.sleep_state_flags |= STA_SLEEP_STATE_MOREDATA; in iwl_mvm_sta_modify_sleep_tx_count()
4123 cmd.sleep_state_flags |= STA_SLEEP_STATE_PS_POLL; in iwl_mvm_sta_modify_sleep_tx_count()
4125 cmd.sleep_state_flags |= STA_SLEEP_STATE_UAPSD; in iwl_mvm_sta_modify_sleep_tx_count()
4133 iwl_mvm_add_sta_cmd_size(mvm), &cmd); in iwl_mvm_sta_modify_sleep_tx_count()
4160 struct iwl_mvm_add_sta_cmd cmd = { in iwl_mvm_sta_modify_disable_tx() local
4175 iwl_mvm_add_sta_cmd_size(mvm), &cmd); in iwl_mvm_sta_modify_disable_tx()
4218 struct iwl_mvm_add_sta_cmd cmd = { in iwl_mvm_int_sta_modify_disable_tx() local
4228 iwl_mvm_add_sta_cmd_size(mvm), &cmd); in iwl_mvm_int_sta_modify_disable_tx()