diff options
author | Ron Rindjunsky <ron.rindjunsky@intel.com> | 2008-05-15 01:54:10 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-21 21:48:02 -0400 |
commit | 3647074973e70d0872b96ada27bbbb71fd1f628c (patch) | |
tree | 926ef1ccab06a6e0d1040013b9103ea4fd4f1959 /drivers/net/wireless/iwlwifi/iwl-4965.c | |
parent | ccc038abe4cb00cf56aeae5b1df47fcc4ed4136c (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>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 14 |
1 files changed, 2 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 | ||
914 | static 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 | |||
919 | static 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 | |||
924 | int iwl4965_alive_notify(struct iwl_priv *priv) | 914 | int 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); |