aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl4965-base.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2007-10-25 05:15:49 -0400
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:03:23 -0500
commit416e1438d5a921046fda6fc5673d5f2c69841c06 (patch)
treed4fe655e8a4fc0ea0a01427b030e231795484d78 /drivers/net/wireless/iwlwifi/iwl4965-base.c
parent80f3e024dcc14f30bff58179ad610f941642901b (diff)
iwlwifi: mark more functions/variables static
mark more functions/variables static Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Zhu Yi <yi.zhu@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.c25
1 files changed, 14 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index aa45ebabe84b..0e46ffde22a7 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -66,6 +66,9 @@
66u32 iwl_debug_level; 66u32 iwl_debug_level;
67#endif 67#endif
68 68
69static int iwl_tx_queue_update_write_ptr(struct iwl_priv *priv,
70 struct iwl_tx_queue *txq);
71
69/****************************************************************************** 72/******************************************************************************
70 * 73 *
71 * module boiler plate 74 * module boiler plate
@@ -73,12 +76,12 @@ u32 iwl_debug_level;
73 ******************************************************************************/ 76 ******************************************************************************/
74 77
75/* module parameters */ 78/* module parameters */
76int iwl_param_disable_hw_scan; 79static int iwl_param_disable_hw_scan;
77int iwl_param_debug; 80static int iwl_param_debug;
78int iwl_param_disable; /* def: enable radio */ 81static int iwl_param_disable; /* def: enable radio */
79int iwl_param_antenna; /* def: 0 = both antennas (use diversity) */ 82static int iwl_param_antenna; /* def: 0 = both antennas (use diversity) */
80int iwl_param_hwcrypto; /* def: using software encryption */ 83int iwl_param_hwcrypto; /* def: using software encryption */
81int iwl_param_qos_enable = 1; 84static int iwl_param_qos_enable = 1;
82int iwl_param_queues_num = IWL_MAX_NUM_QUEUES; 85int iwl_param_queues_num = IWL_MAX_NUM_QUEUES;
83 86
84/* 87/*
@@ -692,7 +695,7 @@ static int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd)
692 return ret ? ret : idx; 695 return ret ? ret : idx;
693} 696}
694 697
695int iwl_send_cmd_async(struct iwl_priv *priv, struct iwl_host_cmd *cmd) 698static int iwl_send_cmd_async(struct iwl_priv *priv, struct iwl_host_cmd *cmd)
696{ 699{
697 int ret; 700 int ret;
698 701
@@ -716,7 +719,7 @@ int iwl_send_cmd_async(struct iwl_priv *priv, struct iwl_host_cmd *cmd)
716 return 0; 719 return 0;
717} 720}
718 721
719int iwl_send_cmd_sync(struct iwl_priv *priv, struct iwl_host_cmd *cmd) 722static int iwl_send_cmd_sync(struct iwl_priv *priv, struct iwl_host_cmd *cmd)
720{ 723{
721 int cmd_idx; 724 int cmd_idx;
722 int ret; 725 int ret;
@@ -2281,7 +2284,7 @@ int iwl_is_network_packet(struct iwl_priv *priv, struct ieee80211_hdr *header)
2281 2284
2282#define TX_STATUS_ENTRY(x) case TX_STATUS_FAIL_ ## x: return #x 2285#define TX_STATUS_ENTRY(x) case TX_STATUS_FAIL_ ## x: return #x
2283 2286
2284const char *iwl_get_tx_fail_reason(u32 status) 2287static const char *iwl_get_tx_fail_reason(u32 status)
2285{ 2288{
2286 switch (status & TX_STATUS_MSK) { 2289 switch (status & TX_STATUS_MSK) {
2287 case TX_STATUS_SUCCESS: 2290 case TX_STATUS_SUCCESS:
@@ -4321,7 +4324,7 @@ static inline __le32 iwl_dma_addr2rbd_ptr(struct iwl_priv *priv,
4321 * also updates the memory address in the firmware to reference the new 4324 * also updates the memory address in the firmware to reference the new
4322 * target buffer. 4325 * target buffer.
4323 */ 4326 */
4324int iwl_rx_queue_restock(struct iwl_priv *priv) 4327static int iwl_rx_queue_restock(struct iwl_priv *priv)
4325{ 4328{
4326 struct iwl_rx_queue *rxq = &priv->rxq; 4329 struct iwl_rx_queue *rxq = &priv->rxq;
4327 struct list_head *element; 4330 struct list_head *element;
@@ -4411,7 +4414,7 @@ void iwl_rx_replenish(void *data)
4411 * This free routine walks the list of POOL entries and if SKB is set to 4414 * This free routine walks the list of POOL entries and if SKB is set to
4412 * non NULL it is unmapped and freed 4415 * non NULL it is unmapped and freed
4413 */ 4416 */
4414void iwl_rx_queue_free(struct iwl_priv *priv, struct iwl_rx_queue *rxq) 4417static void iwl_rx_queue_free(struct iwl_priv *priv, struct iwl_rx_queue *rxq)
4415{ 4418{
4416 int i; 4419 int i;
4417 for (i = 0; i < RX_QUEUE_SIZE + RX_FREE_BUFFERS; i++) { 4420 for (i = 0; i < RX_QUEUE_SIZE + RX_FREE_BUFFERS; i++) {
@@ -4657,7 +4660,7 @@ static void iwl_rx_handle(struct iwl_priv *priv)
4657 iwl_rx_queue_restock(priv); 4660 iwl_rx_queue_restock(priv);
4658} 4661}
4659 4662
4660int iwl_tx_queue_update_write_ptr(struct iwl_priv *priv, 4663static int iwl_tx_queue_update_write_ptr(struct iwl_priv *priv,
4661 struct iwl_tx_queue *txq) 4664 struct iwl_tx_queue *txq)
4662{ 4665{
4663 u32 reg = 0; 4666 u32 reg = 0;