Lines Matching refs:tx_cmd

150 			struct iwl_tx_cmd *tx_cmd,  in iwl_mvm_set_tx_cmd()  argument
155 u32 tx_flags = le32_to_cpu(tx_cmd->tx_flags); in iwl_mvm_set_tx_cmd()
175 tx_cmd->tid_tspec = qc[0] & 0xf; in iwl_mvm_set_tx_cmd()
184 tx_cmd->tid_tspec = (control & in iwl_mvm_set_tx_cmd()
187 WARN_ON_ONCE(tx_cmd->tid_tspec >= IWL_MAX_TID_COUNT); in iwl_mvm_set_tx_cmd()
188 iwl_mvm_bar_check_trigger(mvm, bar->ra, tx_cmd->tid_tspec, in iwl_mvm_set_tx_cmd()
192 tx_cmd->tid_tspec = IWL_TID_NON_QOS; in iwl_mvm_set_tx_cmd()
194 tx_cmd->tid_tspec = IWL_MAX_TID_COUNT; in iwl_mvm_set_tx_cmd()
203 if (tx_cmd->tid_tspec < IWL_MAX_TID_COUNT) in iwl_mvm_set_tx_cmd()
204 ac = tid_to_mac80211_ac[tx_cmd->tid_tspec]; in iwl_mvm_set_tx_cmd()
213 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_ASSOC); in iwl_mvm_set_tx_cmd()
215 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_NONE); in iwl_mvm_set_tx_cmd()
217 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_MGMT); in iwl_mvm_set_tx_cmd()
224 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_MGMT); in iwl_mvm_set_tx_cmd()
226 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_NONE); in iwl_mvm_set_tx_cmd()
238 tx_cmd->tx_flags = cpu_to_le32(tx_flags); in iwl_mvm_set_tx_cmd()
240 tx_cmd->len = cpu_to_le16((u16)skb->len); in iwl_mvm_set_tx_cmd()
241 tx_cmd->life_time = cpu_to_le32(TX_CMD_LIFE_TIME_INFINITE); in iwl_mvm_set_tx_cmd()
242 tx_cmd->sta_id = sta_id; in iwl_mvm_set_tx_cmd()
244 tx_cmd->offload_assist = in iwl_mvm_set_tx_cmd()
387 void iwl_mvm_set_tx_cmd_rate(struct iwl_mvm *mvm, struct iwl_tx_cmd *tx_cmd, in iwl_mvm_set_tx_cmd_rate() argument
392 tx_cmd->rts_retry_limit = IWL_RTS_DFAULT_RETRY_LIMIT; in iwl_mvm_set_tx_cmd_rate()
396 tx_cmd->data_retry_limit = IWL_MGMT_DFAULT_RETRY_LIMIT; in iwl_mvm_set_tx_cmd_rate()
397 tx_cmd->rts_retry_limit = in iwl_mvm_set_tx_cmd_rate()
398 min(tx_cmd->data_retry_limit, tx_cmd->rts_retry_limit); in iwl_mvm_set_tx_cmd_rate()
400 tx_cmd->data_retry_limit = IWL_BAR_DFAULT_RETRY_LIMIT; in iwl_mvm_set_tx_cmd_rate()
402 tx_cmd->data_retry_limit = IWL_DEFAULT_TX_RETRY; in iwl_mvm_set_tx_cmd_rate()
415 tx_cmd->initial_rate_index = 0; in iwl_mvm_set_tx_cmd_rate()
416 tx_cmd->tx_flags |= cpu_to_le32(TX_CMD_FLG_STA_RATE); in iwl_mvm_set_tx_cmd_rate()
420 tx_cmd->tx_flags |= in iwl_mvm_set_tx_cmd_rate()
425 tx_cmd->rate_n_flags = in iwl_mvm_set_tx_cmd_rate()
451 struct iwl_tx_cmd *tx_cmd, in iwl_mvm_set_tx_cmd_crypto() argument
462 iwl_mvm_set_tx_cmd_ccmp(info, tx_cmd); in iwl_mvm_set_tx_cmd_crypto()
467 tx_cmd->sec_ctl = TX_CMD_SEC_TKIP; in iwl_mvm_set_tx_cmd_crypto()
470 ieee80211_get_tkip_p2k(keyconf, skb_frag, tx_cmd->key); in iwl_mvm_set_tx_cmd_crypto()
474 tx_cmd->sec_ctl |= TX_CMD_SEC_KEY128; in iwl_mvm_set_tx_cmd_crypto()
477 tx_cmd->sec_ctl |= TX_CMD_SEC_WEP | in iwl_mvm_set_tx_cmd_crypto()
481 memcpy(&tx_cmd->key[3], keyconf->key, keyconf->keylen); in iwl_mvm_set_tx_cmd_crypto()
494 tx_cmd->sec_ctl |= type | TX_CMD_SEC_KEY_FROM_TABLE; in iwl_mvm_set_tx_cmd_crypto()
495 tx_cmd->key[0] = keyconf->hw_key_idx; in iwl_mvm_set_tx_cmd_crypto()
499 tx_cmd->sec_ctl |= TX_CMD_SEC_EXT; in iwl_mvm_set_tx_cmd_crypto()
524 struct iwl_tx_cmd *tx_cmd; in iwl_mvm_set_tx_params() local
601 tx_cmd = (struct iwl_tx_cmd *)dev_cmd->payload; in iwl_mvm_set_tx_params()
604 iwl_mvm_set_tx_cmd_crypto(mvm, info, tx_cmd, skb, hdrlen); in iwl_mvm_set_tx_params()
606 iwl_mvm_set_tx_cmd(mvm, skb, tx_cmd, info, sta_id); in iwl_mvm_set_tx_params()
608 iwl_mvm_set_tx_cmd_rate(mvm, tx_cmd, info, sta, hdr->frame_control); in iwl_mvm_set_tx_params()
611 iwl_mvm_copy_hdr(tx_cmd->hdr, hdr, hdrlen, addr3_override); in iwl_mvm_set_tx_params()
1202 struct iwl_tx_cmd *tx_cmd = (void *)dev_cmd->payload; in iwl_mvm_tx_mpdu() local
1207 tx_cmd->hdr->seq_ctrl = hdr->seq_ctrl; in iwl_mvm_tx_mpdu()