aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-tx.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-tx.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
index 342de780a366..4974cd7837cb 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
@@ -755,12 +755,10 @@ int iwlagn_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)
755 spin_unlock(&priv->sta_lock); 755 spin_unlock(&priv->sta_lock);
756 756
757 /* Attach buffers to TFD */ 757 /* Attach buffers to TFD */
758 priv->cfg->ops->lib->txq_attach_buf_to_tfd(priv, txq, 758 iwlagn_txq_attach_buf_to_tfd(priv, txq, txcmd_phys, firstlen, 1);
759 txcmd_phys, firstlen, 1, 0);
760 if (secondlen > 0) 759 if (secondlen > 0)
761 priv->cfg->ops->lib->txq_attach_buf_to_tfd(priv, txq, 760 iwlagn_txq_attach_buf_to_tfd(priv, txq, phys_addr,
762 phys_addr, secondlen, 761 secondlen, 0);
763 0, 0);
764 762
765 scratch_phys = txcmd_phys + sizeof(struct iwl_cmd_header) + 763 scratch_phys = txcmd_phys + sizeof(struct iwl_cmd_header) +
766 offsetof(struct iwl_tx_cmd, scratch); 764 offsetof(struct iwl_tx_cmd, scratch);
@@ -916,7 +914,7 @@ int iwlagn_txq_ctx_alloc(struct iwl_priv *priv)
916 spin_lock_irqsave(&priv->lock, flags); 914 spin_lock_irqsave(&priv->lock, flags);
917 915
918 /* Turn off all Tx DMA fifos */ 916 /* Turn off all Tx DMA fifos */
919 priv->cfg->ops->lib->txq_set_sched(priv, 0); 917 iwlagn_txq_set_sched(priv, 0);
920 918
921 /* Tell NIC where to find the "keep warm" buffer */ 919 /* Tell NIC where to find the "keep warm" buffer */
922 iwl_write_direct32(priv, FH_KW_MEM_ADDR_REG, priv->kw.dma >> 4); 920 iwl_write_direct32(priv, FH_KW_MEM_ADDR_REG, priv->kw.dma >> 4);
@@ -954,7 +952,7 @@ void iwlagn_txq_ctx_reset(struct iwl_priv *priv)
954 spin_lock_irqsave(&priv->lock, flags); 952 spin_lock_irqsave(&priv->lock, flags);
955 953
956 /* Turn off all Tx DMA fifos */ 954 /* Turn off all Tx DMA fifos */
957 priv->cfg->ops->lib->txq_set_sched(priv, 0); 955 iwlagn_txq_set_sched(priv, 0);
958 956
959 /* Tell NIC where to find the "keep warm" buffer */ 957 /* Tell NIC where to find the "keep warm" buffer */
960 iwl_write_direct32(priv, FH_KW_MEM_ADDR_REG, priv->kw.dma >> 4); 958 iwl_write_direct32(priv, FH_KW_MEM_ADDR_REG, priv->kw.dma >> 4);
@@ -980,7 +978,7 @@ void iwlagn_txq_ctx_stop(struct iwl_priv *priv)
980 /* Turn off all Tx DMA fifos */ 978 /* Turn off all Tx DMA fifos */
981 spin_lock_irqsave(&priv->lock, flags); 979 spin_lock_irqsave(&priv->lock, flags);
982 980
983 priv->cfg->ops->lib->txq_set_sched(priv, 0); 981 iwlagn_txq_set_sched(priv, 0);
984 982
985 /* Stop each Tx DMA channel, and wait for it to be idle */ 983 /* Stop each Tx DMA channel, and wait for it to be idle */
986 for (ch = 0; ch < priv->hw_params.dma_chnl_num; ch++) { 984 for (ch = 0; ch < priv->hw_params.dma_chnl_num; ch++) {
@@ -1263,7 +1261,7 @@ int iwlagn_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index)
1263 1261
1264 iwlagn_txq_inval_byte_cnt_tbl(priv, txq); 1262 iwlagn_txq_inval_byte_cnt_tbl(priv, txq);
1265 1263
1266 priv->cfg->ops->lib->txq_free_tfd(priv, txq); 1264 iwlagn_txq_free_tfd(priv, txq);
1267 } 1265 }
1268 return nfreed; 1266 return nfreed;
1269} 1267}