Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102748
b: refs/heads/master
c: babcebf
h: refs/heads/master
v: v3
  • Loading branch information
Tomas Winkler authored and John W. Linville committed May 22, 2008
1 parent 9dffdea commit d7ad4df
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c1adf9fb31e31ee753d613bd5bc6aef9b762b747
refs/heads/master: babcebfabbc3f52ba048495537baa9dffff080d4
38 changes: 19 additions & 19 deletions trunk/drivers/net/wireless/iwlwifi/iwl4965-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
#include "iwl-sta.h"
#include "iwl-calib.h"

static int iwl4965_tx_queue_update_write_ptr(struct iwl_priv *priv,
static int iwl_txq_update_write_ptr(struct iwl_priv *priv,
struct iwl_tx_queue *txq);

/******************************************************************************
Expand Down Expand Up @@ -417,7 +417,7 @@ int iwl4965_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd)

/* Increment and update queue's write index */
q->write_ptr = iwl_queue_inc_wrap(q->write_ptr, q->n_bd);
ret = iwl4965_tx_queue_update_write_ptr(priv, txq);
ret = iwl_txq_update_write_ptr(priv, txq);

spin_unlock_irqrestore(&priv->hcmd_lock, flags);
return ret ? ret : idx;
Expand Down Expand Up @@ -1978,7 +1978,7 @@ static int iwl4965_tx_skb(struct iwl_priv *priv,

/* Tell device the write index *just past* this latest filled TFD */
q->write_ptr = iwl_queue_inc_wrap(q->write_ptr, q->n_bd);
rc = iwl4965_tx_queue_update_write_ptr(priv, txq);
rc = iwl_txq_update_write_ptr(priv, txq);
spin_unlock_irqrestore(&priv->lock, flags);

if (rc)
Expand All @@ -1989,7 +1989,7 @@ static int iwl4965_tx_skb(struct iwl_priv *priv,
if (wait_write_ptr) {
spin_lock_irqsave(&priv->lock, flags);
txq->need_update = 1;
iwl4965_tx_queue_update_write_ptr(priv, txq);
iwl_txq_update_write_ptr(priv, txq);
spin_unlock_irqrestore(&priv->lock, flags);
}

Expand Down Expand Up @@ -3272,17 +3272,17 @@ int iwl4965_calc_sig_qual(int rssi_dbm, int noise_dbm)
}

/**
* iwl4965_tx_queue_update_write_ptr - Send new write index to hardware
* iwl_txq_update_write_ptr - Send new write index to hardware
*/
static int iwl4965_tx_queue_update_write_ptr(struct iwl_priv *priv,
static int iwl_txq_update_write_ptr(struct iwl_priv *priv,
struct iwl_tx_queue *txq)
{
u32 reg = 0;
int rc = 0;
int ret = 0;
int txq_id = txq->q.id;

if (txq->need_update == 0)
return rc;
return ret;

/* if we're trying to save power */
if (test_bit(STATUS_POWER_PMI, &priv->status)) {
Expand All @@ -3295,13 +3295,13 @@ static int iwl4965_tx_queue_update_write_ptr(struct iwl_priv *priv,
IWL_DEBUG_INFO("Requesting wakeup, GP1 = 0x%x\n", reg);
iwl_set_bit(priv, CSR_GP_CNTRL,
CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ);
return rc;
return ret;
}

/* restore this queue's parameters in nic hardware. */
rc = iwl_grab_nic_access(priv);
if (rc)
return rc;
ret = iwl_grab_nic_access(priv);
if (ret)
return ret;
iwl_write_direct32(priv, HBUS_TARG_WRPTR,
txq->q.write_ptr | (txq_id << 8));
iwl_release_nic_access(priv);
Expand All @@ -3314,7 +3314,7 @@ static int iwl4965_tx_queue_update_write_ptr(struct iwl_priv *priv,

txq->need_update = 0;

return rc;
return ret;
}

#ifdef CONFIG_IWLWIFI_DEBUG
Expand Down Expand Up @@ -3706,12 +3706,12 @@ static void iwl4965_irq_tasklet(struct iwl_priv *priv)
if (inta & CSR_INT_BIT_WAKEUP) {
IWL_DEBUG_ISR("Wakeup interrupt\n");
iwl_rx_queue_update_write_ptr(priv, &priv->rxq);
iwl4965_tx_queue_update_write_ptr(priv, &priv->txq[0]);
iwl4965_tx_queue_update_write_ptr(priv, &priv->txq[1]);
iwl4965_tx_queue_update_write_ptr(priv, &priv->txq[2]);
iwl4965_tx_queue_update_write_ptr(priv, &priv->txq[3]);
iwl4965_tx_queue_update_write_ptr(priv, &priv->txq[4]);
iwl4965_tx_queue_update_write_ptr(priv, &priv->txq[5]);
iwl_txq_update_write_ptr(priv, &priv->txq[0]);
iwl_txq_update_write_ptr(priv, &priv->txq[1]);
iwl_txq_update_write_ptr(priv, &priv->txq[2]);
iwl_txq_update_write_ptr(priv, &priv->txq[3]);
iwl_txq_update_write_ptr(priv, &priv->txq[4]);
iwl_txq_update_write_ptr(priv, &priv->txq[5]);

handled |= CSR_INT_BIT_WAKEUP;
}
Expand Down

0 comments on commit d7ad4df

Please sign in to comment.