Lines Matching refs:tx_cmd
101 struct iwl_tx_cmd *tx_cmd, in iwl_mvm_set_tx_cmd() argument
106 u32 tx_flags = le32_to_cpu(tx_cmd->tx_flags); in iwl_mvm_set_tx_cmd()
123 tx_cmd->tid_tspec = qc[0] & 0xf; in iwl_mvm_set_tx_cmd()
131 tx_cmd->tid_tspec = (control & in iwl_mvm_set_tx_cmd()
134 WARN_ON_ONCE(tx_cmd->tid_tspec >= IWL_MAX_TID_COUNT); in iwl_mvm_set_tx_cmd()
135 iwl_mvm_bar_check_trigger(mvm, bar->ra, tx_cmd->tid_tspec, in iwl_mvm_set_tx_cmd()
138 tx_cmd->tid_tspec = IWL_TID_NON_QOS; in iwl_mvm_set_tx_cmd()
146 if (tx_cmd->tid_tspec < IWL_MAX_TID_COUNT) in iwl_mvm_set_tx_cmd()
147 ac = tid_to_mac80211_ac[tx_cmd->tid_tspec]; in iwl_mvm_set_tx_cmd()
156 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_ASSOC); in iwl_mvm_set_tx_cmd()
158 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_NONE); in iwl_mvm_set_tx_cmd()
160 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_MGMT); in iwl_mvm_set_tx_cmd()
167 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_MGMT); in iwl_mvm_set_tx_cmd()
169 tx_cmd->pm_frame_timeout = cpu_to_le16(PM_FRAME_NONE); in iwl_mvm_set_tx_cmd()
181 tx_cmd->tx_flags = cpu_to_le32(tx_flags); in iwl_mvm_set_tx_cmd()
183 tx_cmd->len = cpu_to_le16((u16)skb->len); in iwl_mvm_set_tx_cmd()
184 tx_cmd->next_frame_len = 0; in iwl_mvm_set_tx_cmd()
185 tx_cmd->life_time = cpu_to_le32(TX_CMD_LIFE_TIME_INFINITE); in iwl_mvm_set_tx_cmd()
186 tx_cmd->sta_id = sta_id; in iwl_mvm_set_tx_cmd()
192 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
201 tx_cmd->rts_retry_limit = IWL_RTS_DFAULT_RETRY_LIMIT; in iwl_mvm_set_tx_cmd_rate()
205 tx_cmd->data_retry_limit = IWL_MGMT_DFAULT_RETRY_LIMIT; in iwl_mvm_set_tx_cmd_rate()
206 tx_cmd->rts_retry_limit = in iwl_mvm_set_tx_cmd_rate()
207 min(tx_cmd->data_retry_limit, tx_cmd->rts_retry_limit); in iwl_mvm_set_tx_cmd_rate()
209 tx_cmd->data_retry_limit = IWL_BAR_DFAULT_RETRY_LIMIT; in iwl_mvm_set_tx_cmd_rate()
211 tx_cmd->data_retry_limit = IWL_DEFAULT_TX_RETRY; in iwl_mvm_set_tx_cmd_rate()
220 tx_cmd->initial_rate_index = 0; in iwl_mvm_set_tx_cmd_rate()
221 tx_cmd->tx_flags |= cpu_to_le32(TX_CMD_FLG_STA_RATE); in iwl_mvm_set_tx_cmd_rate()
224 tx_cmd->tx_flags |= in iwl_mvm_set_tx_cmd_rate()
267 tx_cmd->rate_n_flags = cpu_to_le32((u32)rate_plcp | rate_flags); in iwl_mvm_set_tx_cmd_rate()
275 struct iwl_tx_cmd *tx_cmd, in iwl_mvm_set_tx_cmd_crypto() argument
286 iwl_mvm_set_tx_cmd_ccmp(info, tx_cmd); in iwl_mvm_set_tx_cmd_crypto()
299 tx_cmd->sec_ctl = TX_CMD_SEC_TKIP; in iwl_mvm_set_tx_cmd_crypto()
300 ieee80211_get_tkip_p2k(keyconf, skb_frag, tx_cmd->key); in iwl_mvm_set_tx_cmd_crypto()
304 tx_cmd->sec_ctl |= TX_CMD_SEC_KEY128; in iwl_mvm_set_tx_cmd_crypto()
307 tx_cmd->sec_ctl |= TX_CMD_SEC_WEP | in iwl_mvm_set_tx_cmd_crypto()
311 memcpy(&tx_cmd->key[3], keyconf->key, keyconf->keylen); in iwl_mvm_set_tx_cmd_crypto()
314 tx_cmd->sec_ctl |= TX_CMD_SEC_EXT; in iwl_mvm_set_tx_cmd_crypto()
328 struct iwl_tx_cmd *tx_cmd; in iwl_mvm_set_tx_params() local
337 tx_cmd = (struct iwl_tx_cmd *)dev_cmd->payload; in iwl_mvm_set_tx_params()
340 iwl_mvm_set_tx_cmd_crypto(mvm, info, tx_cmd, skb, hdrlen); in iwl_mvm_set_tx_params()
342 iwl_mvm_set_tx_cmd(mvm, skb, tx_cmd, info, sta_id); in iwl_mvm_set_tx_params()
344 iwl_mvm_set_tx_cmd_rate(mvm, tx_cmd, info, sta, hdr->frame_control); in iwl_mvm_set_tx_params()
359 struct iwl_tx_cmd *tx_cmd; in iwl_mvm_tx_skb_non_sta() local
414 tx_cmd = (struct iwl_tx_cmd *)dev_cmd->payload; in iwl_mvm_tx_skb_non_sta()
417 memcpy(tx_cmd->hdr, hdr, hdrlen); in iwl_mvm_tx_skb_non_sta()
446 struct iwl_tx_cmd *tx_cmd; in iwl_mvm_tx_skb() local
468 tx_cmd = (struct iwl_tx_cmd *)dev_cmd->payload; in iwl_mvm_tx_skb()
496 memcpy(tx_cmd->hdr, hdr, hdrlen); in iwl_mvm_tx_skb()