diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2008-09-02 23:26:56 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-11 15:53:31 -0400 |
commit | a33c2f47bd4618b0483d5ec4c5bc793e6d02c1f7 (patch) | |
tree | 20806f4dca919ca77c9b674d3f0ac43c4da46291 /drivers/net/wireless | |
parent | 04816448d8b77551834c9ea01e407ef5f0042f0f (diff) |
iwlwifi: remove uneeded declarations
This patch cleans up iwlwifi by removing uneeded declarations and removing
uneeded symbol export reducing the namespace pollution. It also fixes some
typos in comments.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 9 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.h | 10 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 45 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-power.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-power.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-scan.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-tx.c | 9 |
9 files changed, 28 insertions, 63 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index d9c4fdbf7f77..d2569a271d6f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -1607,8 +1607,7 @@ static int iwl4965_send_rxon_assoc(struct iwl_priv *priv) | |||
1607 | return ret; | 1607 | return ret; |
1608 | } | 1608 | } |
1609 | 1609 | ||
1610 | 1610 | static int iwl4965_hw_channel_switch(struct iwl_priv *priv, u16 channel) | |
1611 | int iwl4965_hw_channel_switch(struct iwl_priv *priv, u16 channel) | ||
1612 | { | 1611 | { |
1613 | int rc; | 1612 | int rc; |
1614 | u8 band = 0; | 1613 | u8 band = 0; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 914a3ca54600..31ea28858896 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -485,7 +485,7 @@ static u8 iwl4965_rate_get_lowest_plcp(struct iwl_priv *priv) | |||
485 | return IWL_RATE_6M_PLCP; | 485 | return IWL_RATE_6M_PLCP; |
486 | } | 486 | } |
487 | 487 | ||
488 | unsigned int iwl4965_hw_get_beacon_cmd(struct iwl_priv *priv, | 488 | static unsigned int iwl4965_hw_get_beacon_cmd(struct iwl_priv *priv, |
489 | struct iwl_frame *frame, u8 rate) | 489 | struct iwl_frame *frame, u8 rate) |
490 | { | 490 | { |
491 | struct iwl_tx_beacon_cmd *tx_beacon_cmd; | 491 | struct iwl_tx_beacon_cmd *tx_beacon_cmd; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 46683eacfdcd..36d08b0eec43 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -801,7 +801,7 @@ void iwl_set_rxon_chain(struct iwl_priv *priv) | |||
801 | else | 801 | else |
802 | priv->staging_rxon.rx_chain &= ~RXON_RX_CHAIN_MIMO_FORCE_MSK; | 802 | priv->staging_rxon.rx_chain &= ~RXON_RX_CHAIN_MIMO_FORCE_MSK; |
803 | 803 | ||
804 | IWL_DEBUG_ASSOC("rx_chain=0x%Xi active=%d idle=%d\n", | 804 | IWL_DEBUG_ASSOC("rx_chain=0x%X active=%d idle=%d\n", |
805 | priv->staging_rxon.rx_chain, | 805 | priv->staging_rxon.rx_chain, |
806 | active_rx_cnt, idle_rx_cnt); | 806 | active_rx_cnt, idle_rx_cnt); |
807 | 807 | ||
@@ -1158,7 +1158,6 @@ int iwl_verify_ucode(struct iwl_priv *priv) | |||
1158 | } | 1158 | } |
1159 | EXPORT_SYMBOL(iwl_verify_ucode); | 1159 | EXPORT_SYMBOL(iwl_verify_ucode); |
1160 | 1160 | ||
1161 | |||
1162 | static const char *desc_lookup(int i) | 1161 | static const char *desc_lookup(int i) |
1163 | { | 1162 | { |
1164 | switch (i) { | 1163 | switch (i) { |
@@ -1239,9 +1238,9 @@ EXPORT_SYMBOL(iwl_dump_nic_error_log); | |||
1239 | /** | 1238 | /** |
1240 | * iwl_print_event_log - Dump error event log to syslog | 1239 | * iwl_print_event_log - Dump error event log to syslog |
1241 | * | 1240 | * |
1242 | * NOTE: Must be called with iwl4965_grab_nic_access() already obtained! | 1241 | * NOTE: Must be called with iwl_grab_nic_access() already obtained! |
1243 | */ | 1242 | */ |
1244 | void iwl_print_event_log(struct iwl_priv *priv, u32 start_idx, | 1243 | static void iwl_print_event_log(struct iwl_priv *priv, u32 start_idx, |
1245 | u32 num_events, u32 mode) | 1244 | u32 num_events, u32 mode) |
1246 | { | 1245 | { |
1247 | u32 i; | 1246 | u32 i; |
@@ -1282,8 +1281,6 @@ void iwl_print_event_log(struct iwl_priv *priv, u32 start_idx, | |||
1282 | } | 1281 | } |
1283 | } | 1282 | } |
1284 | } | 1283 | } |
1285 | EXPORT_SYMBOL(iwl_print_event_log); | ||
1286 | |||
1287 | 1284 | ||
1288 | void iwl_dump_nic_event_log(struct iwl_priv *priv) | 1285 | void iwl_dump_nic_event_log(struct iwl_priv *priv) |
1289 | { | 1286 | { |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index b5db050b22d1..55a4b584ce07 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
@@ -184,7 +184,6 @@ struct iwl_cfg { | |||
184 | struct ieee80211_hw *iwl_alloc_all(struct iwl_cfg *cfg, | 184 | struct ieee80211_hw *iwl_alloc_all(struct iwl_cfg *cfg, |
185 | struct ieee80211_ops *hw_ops); | 185 | struct ieee80211_ops *hw_ops); |
186 | void iwl_hw_detect(struct iwl_priv *priv); | 186 | void iwl_hw_detect(struct iwl_priv *priv); |
187 | |||
188 | void iwl_clear_stations_table(struct iwl_priv *priv); | 187 | void iwl_clear_stations_table(struct iwl_priv *priv); |
189 | void iwl_reset_qos(struct iwl_priv *priv); | 188 | void iwl_reset_qos(struct iwl_priv *priv); |
190 | void iwl_set_rxon_chain(struct iwl_priv *priv); | 189 | void iwl_set_rxon_chain(struct iwl_priv *priv); |
@@ -215,7 +214,6 @@ void iwl_rx_replenish(struct iwl_priv *priv); | |||
215 | int iwl_rx_init(struct iwl_priv *priv, struct iwl_rx_queue *rxq); | 214 | int iwl_rx_init(struct iwl_priv *priv, struct iwl_rx_queue *rxq); |
216 | int iwl_rx_agg_start(struct iwl_priv *priv, const u8 *addr, int tid, u16 ssn); | 215 | int iwl_rx_agg_start(struct iwl_priv *priv, const u8 *addr, int tid, u16 ssn); |
217 | int iwl_rx_agg_stop(struct iwl_priv *priv, const u8 *addr, int tid); | 216 | int iwl_rx_agg_stop(struct iwl_priv *priv, const u8 *addr, int tid); |
218 | /* FIXME: remove when TX is moved to iwl core */ | ||
219 | int iwl_rx_queue_restock(struct iwl_priv *priv); | 217 | int iwl_rx_queue_restock(struct iwl_priv *priv); |
220 | int iwl_rx_queue_space(const struct iwl_rx_queue *q); | 218 | int iwl_rx_queue_space(const struct iwl_rx_queue *q); |
221 | void iwl_rx_allocate(struct iwl_priv *priv); | 219 | void iwl_rx_allocate(struct iwl_priv *priv); |
@@ -234,11 +232,7 @@ void iwl_rx_statistics(struct iwl_priv *priv, | |||
234 | ******************************************************/ | 232 | ******************************************************/ |
235 | int iwl_txq_ctx_reset(struct iwl_priv *priv); | 233 | int iwl_txq_ctx_reset(struct iwl_priv *priv); |
236 | int iwl_tx_skb(struct iwl_priv *priv, struct sk_buff *skb); | 234 | int iwl_tx_skb(struct iwl_priv *priv, struct sk_buff *skb); |
237 | /* FIXME: remove when free Tx is fully merged into iwlcore */ | ||
238 | int iwl_hw_txq_free_tfd(struct iwl_priv *priv, struct iwl_tx_queue *txq); | ||
239 | void iwl_hw_txq_ctx_free(struct iwl_priv *priv); | 235 | void iwl_hw_txq_ctx_free(struct iwl_priv *priv); |
240 | int iwl_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, void *tfd, | ||
241 | dma_addr_t addr, u16 len); | ||
242 | int iwl_txq_update_write_ptr(struct iwl_priv *priv, struct iwl_tx_queue *txq); | 236 | int iwl_txq_update_write_ptr(struct iwl_priv *priv, struct iwl_tx_queue *txq); |
243 | int iwl_tx_agg_start(struct iwl_priv *priv, const u8 *ra, u16 tid, u16 *ssn); | 237 | int iwl_tx_agg_start(struct iwl_priv *priv, const u8 *ra, u16 tid, u16 *ssn); |
244 | int iwl_tx_agg_stop(struct iwl_priv *priv , const u8 *ra, u16 tid); | 238 | int iwl_tx_agg_stop(struct iwl_priv *priv , const u8 *ra, u16 tid); |
@@ -253,6 +247,7 @@ int iwl_set_tx_power(struct iwl_priv *priv, s8 tx_power, bool force); | |||
253 | * RF -Kill - here and not in iwl-rfkill.h to be available when | 247 | * RF -Kill - here and not in iwl-rfkill.h to be available when |
254 | * RF-kill subsystem is not compiled. | 248 | * RF-kill subsystem is not compiled. |
255 | ****************************************************/ | 249 | ****************************************************/ |
250 | void iwl_rf_kill(struct iwl_priv *priv); | ||
256 | void iwl_radio_kill_sw_disable_radio(struct iwl_priv *priv); | 251 | void iwl_radio_kill_sw_disable_radio(struct iwl_priv *priv); |
257 | int iwl_radio_kill_sw_enable_radio(struct iwl_priv *priv); | 252 | int iwl_radio_kill_sw_enable_radio(struct iwl_priv *priv); |
258 | 253 | ||
@@ -283,7 +278,6 @@ static inline __le32 iwl_hw_set_rate_n_flags(u8 rate, u32 flags) | |||
283 | void iwl_init_scan_params(struct iwl_priv *priv); | 278 | void iwl_init_scan_params(struct iwl_priv *priv); |
284 | int iwl_scan_cancel(struct iwl_priv *priv); | 279 | int iwl_scan_cancel(struct iwl_priv *priv); |
285 | int iwl_scan_cancel_timeout(struct iwl_priv *priv, unsigned long ms); | 280 | int iwl_scan_cancel_timeout(struct iwl_priv *priv, unsigned long ms); |
286 | const char *iwl_escape_essid(const char *essid, u8 essid_len); | ||
287 | int iwl_scan_initiate(struct iwl_priv *priv); | 281 | int iwl_scan_initiate(struct iwl_priv *priv); |
288 | void iwl_setup_rx_scan_handlers(struct iwl_priv *priv); | 282 | void iwl_setup_rx_scan_handlers(struct iwl_priv *priv); |
289 | void iwl_setup_scan_deferred_work(struct iwl_priv *priv); | 283 | void iwl_setup_scan_deferred_work(struct iwl_priv *priv); |
@@ -316,8 +310,6 @@ int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd); | |||
316 | /***************************************************** | 310 | /***************************************************** |
317 | * Error Handling Debugging | 311 | * Error Handling Debugging |
318 | ******************************************************/ | 312 | ******************************************************/ |
319 | void iwl_print_event_log(struct iwl_priv *priv, u32 start_idx, | ||
320 | u32 num_events, u32 mode); | ||
321 | void iwl_dump_nic_error_log(struct iwl_priv *priv); | 313 | void iwl_dump_nic_error_log(struct iwl_priv *priv); |
322 | void iwl_dump_nic_event_log(struct iwl_priv *priv); | 314 | void iwl_dump_nic_event_log(struct iwl_priv *priv); |
323 | 315 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index 6e150f678c68..1823687e5820 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -565,50 +565,31 @@ struct iwl_hw_params { | |||
565 | #define IWL_RX_STATS(x) (&x->u.rx_frame.stats) | 565 | #define IWL_RX_STATS(x) (&x->u.rx_frame.stats) |
566 | #define IWL_RX_DATA(x) (IWL_RX_HDR(x)->payload) | 566 | #define IWL_RX_DATA(x) (IWL_RX_HDR(x)->payload) |
567 | 567 | ||
568 | |||
569 | /****************************************************************************** | ||
570 | * | ||
571 | * Functions implemented in iwl-base.c which are forward declared here | ||
572 | * for use by iwl-*.c | ||
573 | * | ||
574 | *****************************************************************************/ | ||
575 | struct iwl_addsta_cmd; | ||
576 | extern int iwl_send_add_sta(struct iwl_priv *priv, | ||
577 | struct iwl_addsta_cmd *sta, u8 flags); | ||
578 | u8 iwl_add_station_flags(struct iwl_priv *priv, const u8 *addr, int is_ap, | ||
579 | u8 flags, struct ieee80211_ht_info *ht_info); | ||
580 | extern unsigned int iwl4965_fill_beacon_frame(struct iwl_priv *priv, | ||
581 | struct ieee80211_hdr *hdr, | ||
582 | const u8 *dest, int left); | ||
583 | extern void iwl4965_update_chain_flags(struct iwl_priv *priv); | ||
584 | int iwl4965_set_pwr_src(struct iwl_priv *priv, enum iwl_pwr_src src); | ||
585 | extern int iwl4965_set_power(struct iwl_priv *priv, void *cmd); | ||
586 | |||
587 | extern const u8 iwl_bcast_addr[ETH_ALEN]; | ||
588 | |||
589 | /****************************************************************************** | 568 | /****************************************************************************** |
590 | * | 569 | * |
591 | * Functions implemented in iwl-[34]*.c which are forward declared here | 570 | * Functions implemented in core module which are forward declared here |
592 | * for use by iwl-base.c | 571 | * for use by iwl-[4-5].c |
593 | * | 572 | * |
594 | * NOTE: The implementation of these functions are hardware specific | 573 | * NOTE: The implementation of these functions are not hardware specific |
595 | * which is why they are in the hardware specific files (vs. iwl-base.c) | 574 | * which is why they are in the core module files. |
596 | * | 575 | * |
597 | * Naming convention -- | 576 | * Naming convention -- |
598 | * iwl4965_ <-- Its part of iwlwifi (should be changed to iwl4965_) | 577 | * iwl_ <-- Is part of iwlwifi |
599 | * iwl4965_hw_ <-- Hardware specific (implemented in iwl-XXXX.c by all HW) | ||
600 | * iwlXXXX_ <-- Hardware specific (implemented in iwl-XXXX.c for XXXX) | 578 | * iwlXXXX_ <-- Hardware specific (implemented in iwl-XXXX.c for XXXX) |
601 | * iwl4965_bg_ <-- Called from work queue context | 579 | * iwl4965_bg_ <-- Called from work queue context |
602 | * iwl4965_mac_ <-- mac80211 callback | 580 | * iwl4965_mac_ <-- mac80211 callback |
603 | * | 581 | * |
604 | ****************************************************************************/ | 582 | ****************************************************************************/ |
583 | struct iwl_addsta_cmd; | ||
584 | extern int iwl_send_add_sta(struct iwl_priv *priv, | ||
585 | struct iwl_addsta_cmd *sta, u8 flags); | ||
586 | extern u8 iwl_add_station_flags(struct iwl_priv *priv, const u8 *addr, | ||
587 | int is_ap, u8 flags, struct ieee80211_ht_info *ht_info); | ||
588 | extern void iwl4965_update_chain_flags(struct iwl_priv *priv); | ||
589 | extern int iwl4965_set_pwr_src(struct iwl_priv *priv, enum iwl_pwr_src src); | ||
590 | extern const u8 iwl_bcast_addr[ETH_ALEN]; | ||
605 | extern int iwl_rxq_stop(struct iwl_priv *priv); | 591 | extern int iwl_rxq_stop(struct iwl_priv *priv); |
606 | extern void iwl_txq_ctx_stop(struct iwl_priv *priv); | 592 | extern void iwl_txq_ctx_stop(struct iwl_priv *priv); |
607 | extern unsigned int iwl4965_hw_get_beacon_cmd(struct iwl_priv *priv, | ||
608 | struct iwl_frame *frame, u8 rate); | ||
609 | extern void iwl4965_disable_events(struct iwl_priv *priv); | ||
610 | |||
611 | extern int iwl4965_hw_channel_switch(struct iwl_priv *priv, u16 channel); | ||
612 | extern int iwl_queue_space(const struct iwl_queue *q); | 593 | extern int iwl_queue_space(const struct iwl_queue *q); |
613 | static inline int iwl_queue_used(const struct iwl_queue *q, int i) | 594 | static inline int iwl_queue_used(const struct iwl_queue *q, int i) |
614 | { | 595 | { |
diff --git a/drivers/net/wireless/iwlwifi/iwl-power.c b/drivers/net/wireless/iwlwifi/iwl-power.c index bd6f600027d1..55ec31ec9e15 100644 --- a/drivers/net/wireless/iwlwifi/iwl-power.c +++ b/drivers/net/wireless/iwlwifi/iwl-power.c | |||
@@ -250,7 +250,7 @@ static int iwl_update_power_command(struct iwl_priv *priv, | |||
250 | 250 | ||
251 | 251 | ||
252 | /* | 252 | /* |
253 | * calucaute the final power mode index | 253 | * compute the final power mode index |
254 | */ | 254 | */ |
255 | int iwl_power_update_mode(struct iwl_priv *priv, bool force) | 255 | int iwl_power_update_mode(struct iwl_priv *priv, bool force) |
256 | { | 256 | { |
@@ -267,9 +267,9 @@ int iwl_power_update_mode(struct iwl_priv *priv, bool force) | |||
267 | return -EAGAIN; | 267 | return -EAGAIN; |
268 | } | 268 | } |
269 | 269 | ||
270 | /* If on battery, set to 3, | 270 | /* If on battery, set to 3, |
271 | * if plugged into AC power, set to CAM ("continuously aware mode"), | 271 | * if plugged into AC power, set to CAM ("continuously aware mode"), |
272 | * else user level */ | 272 | * else user level */ |
273 | 273 | ||
274 | switch (setting->system_power_setting) { | 274 | switch (setting->system_power_setting) { |
275 | case IWL_POWER_SYS_AUTO: | 275 | case IWL_POWER_SYS_AUTO: |
diff --git a/drivers/net/wireless/iwlwifi/iwl-power.h b/drivers/net/wireless/iwlwifi/iwl-power.h index a5c334f10e5d..df484a90ae64 100644 --- a/drivers/net/wireless/iwlwifi/iwl-power.h +++ b/drivers/net/wireless/iwlwifi/iwl-power.h | |||
@@ -72,7 +72,7 @@ struct iwl_power_mgr { | |||
72 | /* final power level that used to calculate final power command */ | 72 | /* final power level that used to calculate final power command */ |
73 | u8 power_mode; | 73 | u8 power_mode; |
74 | u8 user_power_setting; /* set by user through mac80211 or sysfs */ | 74 | u8 user_power_setting; /* set by user through mac80211 or sysfs */ |
75 | u8 system_power_setting; /* set by kernel syatem tools */ | 75 | u8 system_power_setting; /* set by kernel system tools */ |
76 | u8 critical_power_setting; /* set if driver over heated */ | 76 | u8 critical_power_setting; /* set if driver over heated */ |
77 | u8 is_battery_active; /* DC/AC power */ | 77 | u8 is_battery_active; /* DC/AC power */ |
78 | u8 power_disabled; /* flag to disable using power saving level */ | 78 | u8 power_disabled; /* flag to disable using power saving level */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-scan.c b/drivers/net/wireless/iwlwifi/iwl-scan.c index 6c8ac3a87d54..d026aaf62335 100644 --- a/drivers/net/wireless/iwlwifi/iwl-scan.c +++ b/drivers/net/wireless/iwlwifi/iwl-scan.c | |||
@@ -88,7 +88,7 @@ static int iwl_is_empty_essid(const char *essid, int essid_len) | |||
88 | 88 | ||
89 | 89 | ||
90 | 90 | ||
91 | const char *iwl_escape_essid(const char *essid, u8 essid_len) | 91 | static const char *iwl_escape_essid(const char *essid, u8 essid_len) |
92 | { | 92 | { |
93 | static char escaped[IW_ESSID_MAX_SIZE * 2 + 1]; | 93 | static char escaped[IW_ESSID_MAX_SIZE * 2 + 1]; |
94 | const char *s = essid; | 94 | const char *s = essid; |
@@ -111,7 +111,6 @@ const char *iwl_escape_essid(const char *essid, u8 essid_len) | |||
111 | *d = '\0'; | 111 | *d = '\0'; |
112 | return escaped; | 112 | return escaped; |
113 | } | 113 | } |
114 | EXPORT_SYMBOL(iwl_escape_essid); | ||
115 | 114 | ||
116 | /** | 115 | /** |
117 | * iwl_scan_cancel - Cancel any currently executing HW scan | 116 | * iwl_scan_cancel - Cancel any currently executing HW scan |
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c index 9d485aadef96..9d5bcf46cbe9 100644 --- a/drivers/net/wireless/iwlwifi/iwl-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-tx.c | |||
@@ -63,7 +63,7 @@ static const u16 default_tid_to_tx_fifo[] = { | |||
63 | * Does NOT advance any TFD circular buffer read/write indexes | 63 | * Does NOT advance any TFD circular buffer read/write indexes |
64 | * Does NOT free the TFD itself (which is within circular buffer) | 64 | * Does NOT free the TFD itself (which is within circular buffer) |
65 | */ | 65 | */ |
66 | int iwl_hw_txq_free_tfd(struct iwl_priv *priv, struct iwl_tx_queue *txq) | 66 | static int iwl_hw_txq_free_tfd(struct iwl_priv *priv, struct iwl_tx_queue *txq) |
67 | { | 67 | { |
68 | struct iwl_tfd_frame *bd_tmp = (struct iwl_tfd_frame *)&txq->bd[0]; | 68 | struct iwl_tfd_frame *bd_tmp = (struct iwl_tfd_frame *)&txq->bd[0]; |
69 | struct iwl_tfd_frame *bd = &bd_tmp[txq->q.read_ptr]; | 69 | struct iwl_tfd_frame *bd = &bd_tmp[txq->q.read_ptr]; |
@@ -115,10 +115,8 @@ int iwl_hw_txq_free_tfd(struct iwl_priv *priv, struct iwl_tx_queue *txq) | |||
115 | } | 115 | } |
116 | return 0; | 116 | return 0; |
117 | } | 117 | } |
118 | EXPORT_SYMBOL(iwl_hw_txq_free_tfd); | ||
119 | 118 | ||
120 | 119 | static int iwl_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, void *ptr, | |
121 | int iwl_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, void *ptr, | ||
122 | dma_addr_t addr, u16 len) | 120 | dma_addr_t addr, u16 len) |
123 | { | 121 | { |
124 | int index, is_odd; | 122 | int index, is_odd; |
@@ -151,7 +149,6 @@ int iwl_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, void *ptr, | |||
151 | 149 | ||
152 | return 0; | 150 | return 0; |
153 | } | 151 | } |
154 | EXPORT_SYMBOL(iwl_hw_txq_attach_buf_to_tfd); | ||
155 | 152 | ||
156 | /** | 153 | /** |
157 | * iwl_txq_update_write_ptr - Send new write index to hardware | 154 | * iwl_txq_update_write_ptr - Send new write index to hardware |
@@ -478,7 +475,6 @@ void iwl_hw_txq_ctx_free(struct iwl_priv *priv) | |||
478 | } | 475 | } |
479 | EXPORT_SYMBOL(iwl_hw_txq_ctx_free); | 476 | EXPORT_SYMBOL(iwl_hw_txq_ctx_free); |
480 | 477 | ||
481 | |||
482 | /** | 478 | /** |
483 | * iwl_txq_ctx_reset - Reset TX queue context | 479 | * iwl_txq_ctx_reset - Reset TX queue context |
484 | * Destroys all DMA structures and initialise them again | 480 | * Destroys all DMA structures and initialise them again |
@@ -545,6 +541,7 @@ int iwl_txq_ctx_reset(struct iwl_priv *priv) | |||
545 | error_kw: | 541 | error_kw: |
546 | return ret; | 542 | return ret; |
547 | } | 543 | } |
544 | |||
548 | /** | 545 | /** |
549 | * iwl_txq_ctx_stop - Stop all Tx DMA channels, free Tx queue memory | 546 | * iwl_txq_ctx_stop - Stop all Tx DMA channels, free Tx queue memory |
550 | */ | 547 | */ |