aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRon Rindjunsky <ron.rindjunsky@intel.com>2008-05-15 01:54:10 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-21 21:48:02 -0400
commit3647074973e70d0872b96ada27bbbb71fd1f628c (patch)
tree926ef1ccab06a6e0d1040013b9103ea4fd4f1959
parentccc038abe4cb00cf56aeae5b1df47fcc4ed4136c (diff)
iwlwifi: rename and move Tx queue activation/deactivation
This patch moves iwl4965_txq_ctx_activate and iwl4965_txq_ctx_deactivate to iwl-dev.h and removes 4965 prefix from their names. Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c14
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h10
2 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 52c7eae08d44..f848a5b0f622 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -911,16 +911,6 @@ static const u16 default_queue_to_tx_fifo[] = {
911 IWL_TX_FIFO_HCCA_2 911 IWL_TX_FIFO_HCCA_2
912}; 912};
913 913
914static inline void iwl4965_txq_ctx_activate(struct iwl_priv *priv, int txq_id)
915{
916 set_bit(txq_id, &priv->txq_ctx_active_msk);
917}
918
919static inline void iwl4965_txq_ctx_deactivate(struct iwl_priv *priv, int txq_id)
920{
921 clear_bit(txq_id, &priv->txq_ctx_active_msk);
922}
923
924int iwl4965_alive_notify(struct iwl_priv *priv) 914int iwl4965_alive_notify(struct iwl_priv *priv)
925{ 915{
926 u32 a; 916 u32 a;
@@ -998,7 +988,7 @@ int iwl4965_alive_notify(struct iwl_priv *priv)
998 /* Map each Tx/cmd queue to its corresponding fifo */ 988 /* Map each Tx/cmd queue to its corresponding fifo */
999 for (i = 0; i < ARRAY_SIZE(default_queue_to_tx_fifo); i++) { 989 for (i = 0; i < ARRAY_SIZE(default_queue_to_tx_fifo); i++) {
1000 int ac = default_queue_to_tx_fifo[i]; 990 int ac = default_queue_to_tx_fifo[i];
1001 iwl4965_txq_ctx_activate(priv, i); 991 iwl_txq_ctx_activate(priv, i);
1002 iwl4965_tx_queue_set_status(priv, &priv->txq[i], ac, 0); 992 iwl4965_tx_queue_set_status(priv, &priv->txq[i], ac, 0);
1003 } 993 }
1004 994
@@ -3115,7 +3105,7 @@ static int iwl4965_tx_queue_agg_disable(struct iwl_priv *priv, u16 txq_id,
3115 iwl4965_set_wr_ptrs(priv, txq_id, ssn_idx); 3105 iwl4965_set_wr_ptrs(priv, txq_id, ssn_idx);
3116 3106
3117 iwl_clear_bits_prph(priv, IWL49_SCD_INTERRUPT_MASK, (1 << txq_id)); 3107 iwl_clear_bits_prph(priv, IWL49_SCD_INTERRUPT_MASK, (1 << txq_id));
3118 iwl4965_txq_ctx_deactivate(priv, txq_id); 3108 iwl_txq_ctx_deactivate(priv, txq_id);
3119 iwl4965_tx_queue_set_status(priv, &priv->txq[txq_id], tx_fifo, 0); 3109 iwl4965_tx_queue_set_status(priv, &priv->txq[txq_id], tx_fifo, 0);
3120 3110
3121 iwl_release_nic_access(priv); 3111 iwl_release_nic_access(priv);
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index 305491ff9beb..533479e717ab 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -1210,6 +1210,16 @@ struct iwl_priv {
1210 struct timer_list statistics_periodic; 1210 struct timer_list statistics_periodic;
1211}; /*iwl_priv */ 1211}; /*iwl_priv */
1212 1212
1213static inline void iwl_txq_ctx_activate(struct iwl_priv *priv, int txq_id)
1214{
1215 set_bit(txq_id, &priv->txq_ctx_active_msk);
1216}
1217
1218static inline void iwl_txq_ctx_deactivate(struct iwl_priv *priv, int txq_id)
1219{
1220 clear_bit(txq_id, &priv->txq_ctx_active_msk);
1221}
1222
1213static inline int iwl_is_associated(struct iwl_priv *priv) 1223static inline int iwl_is_associated(struct iwl_priv *priv)
1214{ 1224{
1215 return (priv->active_rxon.filter_flags & RXON_FILTER_ASSOC_MSK) ? 1 : 0; 1225 return (priv->active_rxon.filter_flags & RXON_FILTER_ASSOC_MSK) ? 1 : 0;