Lines Matching refs:dev_cmd
496 struct iwl_device_cmd *dev_cmd; in iwl_mvm_set_tx_params() local
499 dev_cmd = iwl_trans_alloc_tx_cmd(mvm->trans); in iwl_mvm_set_tx_params()
501 if (unlikely(!dev_cmd)) in iwl_mvm_set_tx_params()
508 memset(dev_cmd, 0, sizeof(dev_cmd->hdr) + sizeof(*tx_cmd)); in iwl_mvm_set_tx_params()
509 dev_cmd->hdr.cmd = TX_CMD; in iwl_mvm_set_tx_params()
551 struct iwl_tx_cmd_gen3 *cmd = (void *)dev_cmd->payload; in iwl_mvm_set_tx_params()
564 struct iwl_tx_cmd_gen2 *cmd = (void *)dev_cmd->payload; in iwl_mvm_set_tx_params()
580 tx_cmd = (struct iwl_tx_cmd *)dev_cmd->payload; in iwl_mvm_set_tx_params()
593 return dev_cmd; in iwl_mvm_set_tx_params()
716 struct iwl_device_cmd *dev_cmd; in iwl_mvm_tx_skb_non_sta() local
776 dev_cmd = iwl_mvm_set_tx_params(mvm, skb, &info, hdrlen, NULL, sta_id); in iwl_mvm_tx_skb_non_sta()
777 if (!dev_cmd) in iwl_mvm_tx_skb_non_sta()
781 iwl_mvm_skb_prepare_status(skb, dev_cmd); in iwl_mvm_tx_skb_non_sta()
783 if (iwl_trans_tx(mvm->trans, skb, dev_cmd, queue)) { in iwl_mvm_tx_skb_non_sta()
784 iwl_trans_free_tx_cmd(mvm->trans, dev_cmd); in iwl_mvm_tx_skb_non_sta()
1073 struct iwl_device_cmd *dev_cmd; in iwl_mvm_tx_mpdu() local
1097 dev_cmd = iwl_mvm_set_tx_params(mvm, skb, info, hdrlen, in iwl_mvm_tx_mpdu()
1099 if (!dev_cmd) in iwl_mvm_tx_mpdu()
1131 struct iwl_tx_cmd *tx_cmd = (void *)dev_cmd->payload; in iwl_mvm_tx_mpdu()
1147 iwl_trans_free_tx_cmd(mvm->trans, dev_cmd); in iwl_mvm_tx_mpdu()
1177 iwl_mvm_skb_prepare_status(skb, dev_cmd); in iwl_mvm_tx_mpdu()
1179 if (iwl_trans_tx(mvm->trans, skb, dev_cmd, txq_id)) in iwl_mvm_tx_mpdu()
1194 iwl_trans_free_tx_cmd(mvm->trans, dev_cmd); in iwl_mvm_tx_mpdu()