diff options
author | Christoph Hellwig <hch@lst.de> | 2007-10-25 05:15:49 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:03:23 -0500 |
commit | 416e1438d5a921046fda6fc5673d5f2c69841c06 (patch) | |
tree | d4fe655e8a4fc0ea0a01427b030e231795484d78 /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | 80f3e024dcc14f30bff58179ad610f941642901b (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/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 68f6b8bc4dd9..3cccb3db6ff7 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -66,6 +66,9 @@ | |||
66 | u32 iwl_debug_level; | 66 | u32 iwl_debug_level; |
67 | #endif | 67 | #endif |
68 | 68 | ||
69 | static 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 */ |
76 | int iwl_param_disable_hw_scan; | 79 | static int iwl_param_disable_hw_scan; |
77 | int iwl_param_debug; | 80 | static int iwl_param_debug; |
78 | int iwl_param_disable; /* def: enable radio */ | 81 | static int iwl_param_disable; /* def: enable radio */ |
79 | int iwl_param_antenna; /* def: 0 = both antennas (use diversity) */ | 82 | static int iwl_param_antenna; /* def: 0 = both antennas (use diversity) */ |
80 | int iwl_param_hwcrypto; /* def: using software encryption */ | 83 | int iwl_param_hwcrypto; /* def: using software encryption */ |
81 | int iwl_param_qos_enable = 1; | 84 | static int iwl_param_qos_enable = 1; |
82 | int iwl_param_queues_num = IWL_MAX_NUM_QUEUES; | 85 | int iwl_param_queues_num = IWL_MAX_NUM_QUEUES; |
83 | 86 | ||
84 | /* | 87 | /* |
@@ -116,7 +119,7 @@ MODULE_VERSION(DRV_VERSION); | |||
116 | MODULE_AUTHOR(DRV_COPYRIGHT); | 119 | MODULE_AUTHOR(DRV_COPYRIGHT); |
117 | MODULE_LICENSE("GPL"); | 120 | MODULE_LICENSE("GPL"); |
118 | 121 | ||
119 | __le16 *ieee80211_get_qos_ctrl(struct ieee80211_hdr *hdr) | 122 | static __le16 *ieee80211_get_qos_ctrl(struct ieee80211_hdr *hdr) |
120 | { | 123 | { |
121 | u16 fc = le16_to_cpu(hdr->frame_control); | 124 | u16 fc = le16_to_cpu(hdr->frame_control); |
122 | int hdr_len = ieee80211_get_hdrlen(fc); | 125 | int hdr_len = ieee80211_get_hdrlen(fc); |
@@ -694,7 +697,7 @@ static int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | |||
694 | return ret ? ret : idx; | 697 | return ret ? ret : idx; |
695 | } | 698 | } |
696 | 699 | ||
697 | int iwl_send_cmd_async(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | 700 | static int iwl_send_cmd_async(struct iwl_priv *priv, struct iwl_host_cmd *cmd) |
698 | { | 701 | { |
699 | int ret; | 702 | int ret; |
700 | 703 | ||
@@ -718,7 +721,7 @@ int iwl_send_cmd_async(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | |||
718 | return 0; | 721 | return 0; |
719 | } | 722 | } |
720 | 723 | ||
721 | int iwl_send_cmd_sync(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | 724 | static int iwl_send_cmd_sync(struct iwl_priv *priv, struct iwl_host_cmd *cmd) |
722 | { | 725 | { |
723 | int cmd_idx; | 726 | int cmd_idx; |
724 | int ret; | 727 | int ret; |
@@ -2200,7 +2203,7 @@ int iwl_is_network_packet(struct iwl_priv *priv, struct ieee80211_hdr *header) | |||
2200 | 2203 | ||
2201 | #define TX_STATUS_ENTRY(x) case TX_STATUS_FAIL_ ## x: return #x | 2204 | #define TX_STATUS_ENTRY(x) case TX_STATUS_FAIL_ ## x: return #x |
2202 | 2205 | ||
2203 | const char *iwl_get_tx_fail_reason(u32 status) | 2206 | static const char *iwl_get_tx_fail_reason(u32 status) |
2204 | { | 2207 | { |
2205 | switch (status & TX_STATUS_MSK) { | 2208 | switch (status & TX_STATUS_MSK) { |
2206 | case TX_STATUS_SUCCESS: | 2209 | case TX_STATUS_SUCCESS: |
@@ -3354,7 +3357,7 @@ static void iwl_txstatus_to_ieee(struct iwl_priv *priv, | |||
3354 | * new 'R' index need to be reclaimed. As result, some free space | 3357 | * new 'R' index need to be reclaimed. As result, some free space |
3355 | * forms. If there is enough free space (> low mark), wake Tx queue. | 3358 | * forms. If there is enough free space (> low mark), wake Tx queue. |
3356 | */ | 3359 | */ |
3357 | int iwl_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index) | 3360 | static int iwl_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index) |
3358 | { | 3361 | { |
3359 | struct iwl_tx_queue *txq = &priv->txq[txq_id]; | 3362 | struct iwl_tx_queue *txq = &priv->txq[txq_id]; |
3360 | struct iwl_queue *q = &txq->q; | 3363 | struct iwl_queue *q = &txq->q; |
@@ -3994,7 +3997,7 @@ static inline __le32 iwl_dma_addr2rbd_ptr(struct iwl_priv *priv, | |||
3994 | * also updates the memory address in the firmware to reference the new | 3997 | * also updates the memory address in the firmware to reference the new |
3995 | * target buffer. | 3998 | * target buffer. |
3996 | */ | 3999 | */ |
3997 | int iwl_rx_queue_restock(struct iwl_priv *priv) | 4000 | static int iwl_rx_queue_restock(struct iwl_priv *priv) |
3998 | { | 4001 | { |
3999 | struct iwl_rx_queue *rxq = &priv->rxq; | 4002 | struct iwl_rx_queue *rxq = &priv->rxq; |
4000 | struct list_head *element; | 4003 | struct list_head *element; |
@@ -4084,7 +4087,7 @@ void iwl_rx_replenish(void *data) | |||
4084 | * This free routine walks the list of POOL entries and if SKB is set to | 4087 | * This free routine walks the list of POOL entries and if SKB is set to |
4085 | * non NULL it is unmapped and freed | 4088 | * non NULL it is unmapped and freed |
4086 | */ | 4089 | */ |
4087 | void iwl_rx_queue_free(struct iwl_priv *priv, struct iwl_rx_queue *rxq) | 4090 | static void iwl_rx_queue_free(struct iwl_priv *priv, struct iwl_rx_queue *rxq) |
4088 | { | 4091 | { |
4089 | int i; | 4092 | int i; |
4090 | for (i = 0; i < RX_QUEUE_SIZE + RX_FREE_BUFFERS; i++) { | 4093 | for (i = 0; i < RX_QUEUE_SIZE + RX_FREE_BUFFERS; i++) { |
@@ -4327,7 +4330,7 @@ static void iwl_rx_handle(struct iwl_priv *priv) | |||
4327 | iwl_rx_queue_restock(priv); | 4330 | iwl_rx_queue_restock(priv); |
4328 | } | 4331 | } |
4329 | 4332 | ||
4330 | int iwl_tx_queue_update_write_ptr(struct iwl_priv *priv, | 4333 | static int iwl_tx_queue_update_write_ptr(struct iwl_priv *priv, |
4331 | struct iwl_tx_queue *txq) | 4334 | struct iwl_tx_queue *txq) |
4332 | { | 4335 | { |
4333 | u32 reg = 0; | 4336 | u32 reg = 0; |