Lines Matching refs:tx_cmd

198 			struct iwl_tx_cmd *tx_cmd,  in iwl_mvm_set_tx_cmd()  argument
203 u32 tx_flags = le32_to_cpu(tx_cmd->tx_flags); in iwl_mvm_set_tx_cmd()
223 tx_cmd->tid_tspec = qc[0] & 0xf; in iwl_mvm_set_tx_cmd()
232 tx_cmd->tid_tspec = (control & in iwl_mvm_set_tx_cmd()
235 WARN_ON_ONCE(tx_cmd->tid_tspec >= IWL_MAX_TID_COUNT); in iwl_mvm_set_tx_cmd()
236 iwl_mvm_bar_check_trigger(mvm, bar->ra, tx_cmd->tid_tspec, in iwl_mvm_set_tx_cmd()
240 tx_cmd->tid_tspec = IWL_TID_NON_QOS; in iwl_mvm_set_tx_cmd()
242 tx_cmd->tid_tspec = IWL_MAX_TID_COUNT; in iwl_mvm_set_tx_cmd()
251 if (tx_cmd->tid_tspec < IWL_MAX_TID_COUNT) in iwl_mvm_set_tx_cmd()
252 ac = tid_to_mac80211_ac[tx_cmd->tid_tspec]; in iwl_mvm_set_tx_cmd()
261 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_ASSOC); in iwl_mvm_set_tx_cmd()
263 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_NONE); in iwl_mvm_set_tx_cmd()
265 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_MGMT); in iwl_mvm_set_tx_cmd()
272 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_MGMT); in iwl_mvm_set_tx_cmd()
274 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_NONE); in iwl_mvm_set_tx_cmd()
286 tx_cmd->tx_flags = cpu_to_le32(tx_flags); in iwl_mvm_set_tx_cmd()
288 tx_cmd->len = cpu_to_le16((u16)skb->len); in iwl_mvm_set_tx_cmd()
289 tx_cmd->life_time = cpu_to_le32(TX_CMD_LIFE_TIME_INFINITE); in iwl_mvm_set_tx_cmd()
290 tx_cmd->sta_id = sta_id; in iwl_mvm_set_tx_cmd()
292 tx_cmd->offload_assist = in iwl_mvm_set_tx_cmd()
379 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
384 tx_cmd->rts_retry_limit = IWL_RTS_DFAULT_RETRY_LIMIT; in iwl_mvm_set_tx_cmd_rate()
388 tx_cmd->data_retry_limit = IWL_MGMT_DFAULT_RETRY_LIMIT; in iwl_mvm_set_tx_cmd_rate()
389 tx_cmd->rts_retry_limit = in iwl_mvm_set_tx_cmd_rate()
390 min(tx_cmd->data_retry_limit, tx_cmd->rts_retry_limit); in iwl_mvm_set_tx_cmd_rate()
392 tx_cmd->data_retry_limit = IWL_BAR_DFAULT_RETRY_LIMIT; in iwl_mvm_set_tx_cmd_rate()
394 tx_cmd->data_retry_limit = IWL_DEFAULT_TX_RETRY; in iwl_mvm_set_tx_cmd_rate()
406 tx_cmd->initial_rate_index = 0; in iwl_mvm_set_tx_cmd_rate()
407 tx_cmd->tx_flags |= cpu_to_le32(TX_CMD_FLG_STA_RATE); in iwl_mvm_set_tx_cmd_rate()
411 tx_cmd->tx_flags |= in iwl_mvm_set_tx_cmd_rate()
416 tx_cmd->rate_n_flags = in iwl_mvm_set_tx_cmd_rate()
442 struct iwl_tx_cmd *tx_cmd, in iwl_mvm_set_tx_cmd_crypto() argument
453 iwl_mvm_set_tx_cmd_ccmp(info, tx_cmd); in iwl_mvm_set_tx_cmd_crypto()
458 tx_cmd->sec_ctl = TX_CMD_SEC_TKIP; in iwl_mvm_set_tx_cmd_crypto()
461 ieee80211_get_tkip_p2k(keyconf, skb_frag, tx_cmd->key); in iwl_mvm_set_tx_cmd_crypto()
465 tx_cmd->sec_ctl |= TX_CMD_SEC_KEY128; in iwl_mvm_set_tx_cmd_crypto()
468 tx_cmd->sec_ctl |= TX_CMD_SEC_WEP | in iwl_mvm_set_tx_cmd_crypto()
472 memcpy(&tx_cmd->key[3], keyconf->key, keyconf->keylen); in iwl_mvm_set_tx_cmd_crypto()
485 tx_cmd->sec_ctl |= type | TX_CMD_SEC_KEY_FROM_TABLE; in iwl_mvm_set_tx_cmd_crypto()
486 tx_cmd->key[0] = keyconf->hw_key_idx; in iwl_mvm_set_tx_cmd_crypto()
490 tx_cmd->sec_ctl |= TX_CMD_SEC_EXT; in iwl_mvm_set_tx_cmd_crypto()
504 struct iwl_tx_cmd *tx_cmd; in iwl_mvm_set_tx_params() local
578 tx_cmd = (struct iwl_tx_cmd *)dev_cmd->payload; in iwl_mvm_set_tx_params()
581 iwl_mvm_set_tx_cmd_crypto(mvm, info, tx_cmd, skb, hdrlen); in iwl_mvm_set_tx_params()
583 iwl_mvm_set_tx_cmd(mvm, skb, tx_cmd, info, sta_id); in iwl_mvm_set_tx_params()
585 iwl_mvm_set_tx_cmd_rate(mvm, tx_cmd, info, sta, hdr->frame_control); in iwl_mvm_set_tx_params()
588 memcpy(tx_cmd->hdr, hdr, hdrlen); in iwl_mvm_set_tx_params()
1129 struct iwl_tx_cmd *tx_cmd = (void *)dev_cmd->payload; in iwl_mvm_tx_mpdu() local
1134 tx_cmd->hdr->seq_ctrl = hdr->seq_ctrl; in iwl_mvm_tx_mpdu()