diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-05-15 01:54:00 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-21 21:47:55 -0400 |
commit | babcebfabbc3f52ba048495537baa9dffff080d4 (patch) | |
tree | 45abb196f05e8362bc294c8669d3e3fc9cc2b2ef /drivers/net/wireless/iwlwifi/iwl4965-base.c | |
parent | c1adf9fb31e31ee753d613bd5bc6aef9b762b747 (diff) |
iwlwifi: remove 4965 from iwl4965_tx_queue_update_write_ptr
This patch renames iwl4965_tx_queue_update_write_ptr to
iwl_txq_update_write_ptr. This is a preparation for moving to iwl-tx.c.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl4965-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index 45b6b5234eef..0ad9558d6e84 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -53,7 +53,7 @@ | |||
53 | #include "iwl-sta.h" | 53 | #include "iwl-sta.h" |
54 | #include "iwl-calib.h" | 54 | #include "iwl-calib.h" |
55 | 55 | ||
56 | static int iwl4965_tx_queue_update_write_ptr(struct iwl_priv *priv, | 56 | static int iwl_txq_update_write_ptr(struct iwl_priv *priv, |
57 | struct iwl_tx_queue *txq); | 57 | struct iwl_tx_queue *txq); |
58 | 58 | ||
59 | /****************************************************************************** | 59 | /****************************************************************************** |
@@ -417,7 +417,7 @@ int iwl4965_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | |||
417 | 417 | ||
418 | /* Increment and update queue's write index */ | 418 | /* Increment and update queue's write index */ |
419 | q->write_ptr = iwl_queue_inc_wrap(q->write_ptr, q->n_bd); | 419 | q->write_ptr = iwl_queue_inc_wrap(q->write_ptr, q->n_bd); |
420 | ret = iwl4965_tx_queue_update_write_ptr(priv, txq); | 420 | ret = iwl_txq_update_write_ptr(priv, txq); |
421 | 421 | ||
422 | spin_unlock_irqrestore(&priv->hcmd_lock, flags); | 422 | spin_unlock_irqrestore(&priv->hcmd_lock, flags); |
423 | return ret ? ret : idx; | 423 | return ret ? ret : idx; |
@@ -1978,7 +1978,7 @@ static int iwl4965_tx_skb(struct iwl_priv *priv, | |||
1978 | 1978 | ||
1979 | /* Tell device the write index *just past* this latest filled TFD */ | 1979 | /* Tell device the write index *just past* this latest filled TFD */ |
1980 | q->write_ptr = iwl_queue_inc_wrap(q->write_ptr, q->n_bd); | 1980 | q->write_ptr = iwl_queue_inc_wrap(q->write_ptr, q->n_bd); |
1981 | rc = iwl4965_tx_queue_update_write_ptr(priv, txq); | 1981 | rc = iwl_txq_update_write_ptr(priv, txq); |
1982 | spin_unlock_irqrestore(&priv->lock, flags); | 1982 | spin_unlock_irqrestore(&priv->lock, flags); |
1983 | 1983 | ||
1984 | if (rc) | 1984 | if (rc) |
@@ -1989,7 +1989,7 @@ static int iwl4965_tx_skb(struct iwl_priv *priv, | |||
1989 | if (wait_write_ptr) { | 1989 | if (wait_write_ptr) { |
1990 | spin_lock_irqsave(&priv->lock, flags); | 1990 | spin_lock_irqsave(&priv->lock, flags); |
1991 | txq->need_update = 1; | 1991 | txq->need_update = 1; |
1992 | iwl4965_tx_queue_update_write_ptr(priv, txq); | 1992 | iwl_txq_update_write_ptr(priv, txq); |
1993 | spin_unlock_irqrestore(&priv->lock, flags); | 1993 | spin_unlock_irqrestore(&priv->lock, flags); |
1994 | } | 1994 | } |
1995 | 1995 | ||
@@ -3272,17 +3272,17 @@ int iwl4965_calc_sig_qual(int rssi_dbm, int noise_dbm) | |||
3272 | } | 3272 | } |
3273 | 3273 | ||
3274 | /** | 3274 | /** |
3275 | * iwl4965_tx_queue_update_write_ptr - Send new write index to hardware | 3275 | * iwl_txq_update_write_ptr - Send new write index to hardware |
3276 | */ | 3276 | */ |
3277 | static int iwl4965_tx_queue_update_write_ptr(struct iwl_priv *priv, | 3277 | static int iwl_txq_update_write_ptr(struct iwl_priv *priv, |
3278 | struct iwl_tx_queue *txq) | 3278 | struct iwl_tx_queue *txq) |
3279 | { | 3279 | { |
3280 | u32 reg = 0; | 3280 | u32 reg = 0; |
3281 | int rc = 0; | 3281 | int ret = 0; |
3282 | int txq_id = txq->q.id; | 3282 | int txq_id = txq->q.id; |
3283 | 3283 | ||
3284 | if (txq->need_update == 0) | 3284 | if (txq->need_update == 0) |
3285 | return rc; | 3285 | return ret; |
3286 | 3286 | ||
3287 | /* if we're trying to save power */ | 3287 | /* if we're trying to save power */ |
3288 | if (test_bit(STATUS_POWER_PMI, &priv->status)) { | 3288 | if (test_bit(STATUS_POWER_PMI, &priv->status)) { |
@@ -3295,13 +3295,13 @@ static int iwl4965_tx_queue_update_write_ptr(struct iwl_priv *priv, | |||
3295 | IWL_DEBUG_INFO("Requesting wakeup, GP1 = 0x%x\n", reg); | 3295 | IWL_DEBUG_INFO("Requesting wakeup, GP1 = 0x%x\n", reg); |
3296 | iwl_set_bit(priv, CSR_GP_CNTRL, | 3296 | iwl_set_bit(priv, CSR_GP_CNTRL, |
3297 | CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ); | 3297 | CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ); |
3298 | return rc; | 3298 | return ret; |
3299 | } | 3299 | } |
3300 | 3300 | ||
3301 | /* restore this queue's parameters in nic hardware. */ | 3301 | /* restore this queue's parameters in nic hardware. */ |
3302 | rc = iwl_grab_nic_access(priv); | 3302 | ret = iwl_grab_nic_access(priv); |
3303 | if (rc) | 3303 | if (ret) |
3304 | return rc; | 3304 | return ret; |
3305 | iwl_write_direct32(priv, HBUS_TARG_WRPTR, | 3305 | iwl_write_direct32(priv, HBUS_TARG_WRPTR, |
3306 | txq->q.write_ptr | (txq_id << 8)); | 3306 | txq->q.write_ptr | (txq_id << 8)); |
3307 | iwl_release_nic_access(priv); | 3307 | iwl_release_nic_access(priv); |
@@ -3314,7 +3314,7 @@ static int iwl4965_tx_queue_update_write_ptr(struct iwl_priv *priv, | |||
3314 | 3314 | ||
3315 | txq->need_update = 0; | 3315 | txq->need_update = 0; |
3316 | 3316 | ||
3317 | return rc; | 3317 | return ret; |
3318 | } | 3318 | } |
3319 | 3319 | ||
3320 | #ifdef CONFIG_IWLWIFI_DEBUG | 3320 | #ifdef CONFIG_IWLWIFI_DEBUG |
@@ -3706,12 +3706,12 @@ static void iwl4965_irq_tasklet(struct iwl_priv *priv) | |||
3706 | if (inta & CSR_INT_BIT_WAKEUP) { | 3706 | if (inta & CSR_INT_BIT_WAKEUP) { |
3707 | IWL_DEBUG_ISR("Wakeup interrupt\n"); | 3707 | IWL_DEBUG_ISR("Wakeup interrupt\n"); |
3708 | iwl_rx_queue_update_write_ptr(priv, &priv->rxq); | 3708 | iwl_rx_queue_update_write_ptr(priv, &priv->rxq); |
3709 | iwl4965_tx_queue_update_write_ptr(priv, &priv->txq[0]); | 3709 | iwl_txq_update_write_ptr(priv, &priv->txq[0]); |
3710 | iwl4965_tx_queue_update_write_ptr(priv, &priv->txq[1]); | 3710 | iwl_txq_update_write_ptr(priv, &priv->txq[1]); |
3711 | iwl4965_tx_queue_update_write_ptr(priv, &priv->txq[2]); | 3711 | iwl_txq_update_write_ptr(priv, &priv->txq[2]); |
3712 | iwl4965_tx_queue_update_write_ptr(priv, &priv->txq[3]); | 3712 | iwl_txq_update_write_ptr(priv, &priv->txq[3]); |
3713 | iwl4965_tx_queue_update_write_ptr(priv, &priv->txq[4]); | 3713 | iwl_txq_update_write_ptr(priv, &priv->txq[4]); |
3714 | iwl4965_tx_queue_update_write_ptr(priv, &priv->txq[5]); | 3714 | iwl_txq_update_write_ptr(priv, &priv->txq[5]); |
3715 | 3715 | ||
3716 | handled |= CSR_INT_BIT_WAKEUP; | 3716 | handled |= CSR_INT_BIT_WAKEUP; |
3717 | } | 3717 | } |