diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-02-13 14:32:30 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:37:09 -0500 |
commit | 5c1b09581ba91d156ec907f5cbad07d33bf9e2ed (patch) | |
tree | c6553d9a76c2e46c2804898ccc6afaf3d2453882 /drivers/net | |
parent | eaaf7894959d413d1e01443a622c507e1b4f61db (diff) |
iwlwifi: change iwl->priv iwl_priv * type in iwl-YYY-io.h
This patch makes all variables of type struct iwl_priv to be named priv
This is needed for smooth change of debug printing mechanism
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Ester Kummer <ester.kummer@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945-io.h | 39 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-io.h | 39 |
2 files changed, 34 insertions, 44 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-io.h b/drivers/net/wireless/iwlwifi/iwl-3945-io.h index 75e20d0a20d1..4a1872982027 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945-io.h +++ b/drivers/net/wireless/iwlwifi/iwl-3945-io.h | |||
@@ -59,28 +59,28 @@ | |||
59 | * | 59 | * |
60 | */ | 60 | */ |
61 | 61 | ||
62 | #define _iwl3945_write32(iwl, ofs, val) writel((val), (iwl)->hw_base + (ofs)) | 62 | #define _iwl3945_write32(priv, ofs, val) writel((val), (priv)->hw_base + (ofs)) |
63 | #ifdef CONFIG_IWL3945_DEBUG | 63 | #ifdef CONFIG_IWL3945_DEBUG |
64 | static inline void __iwl3945_write32(const char *f, u32 l, struct iwl3945_priv *iwl, | 64 | static inline void __iwl3945_write32(const char *f, u32 l, struct iwl3945_priv *priv, |
65 | u32 ofs, u32 val) | 65 | u32 ofs, u32 val) |
66 | { | 66 | { |
67 | IWL_DEBUG_IO("write32(0x%08X, 0x%08X) - %s %d\n", ofs, val, f, l); | 67 | IWL_DEBUG_IO("write32(0x%08X, 0x%08X) - %s %d\n", ofs, val, f, l); |
68 | _iwl3945_write32(iwl, ofs, val); | 68 | _iwl3945_write32(priv, ofs, val); |
69 | } | 69 | } |
70 | #define iwl3945_write32(iwl, ofs, val) \ | 70 | #define iwl3945_write32(priv, ofs, val) \ |
71 | __iwl3945_write32(__FILE__, __LINE__, iwl, ofs, val) | 71 | __iwl3945_write32(__FILE__, __LINE__, priv, ofs, val) |
72 | #else | 72 | #else |
73 | #define iwl3945_write32(iwl, ofs, val) _iwl3945_write32(iwl, ofs, val) | 73 | #define iwl3945_write32(priv, ofs, val) _iwl3945_write32(priv, ofs, val) |
74 | #endif | 74 | #endif |
75 | 75 | ||
76 | #define _iwl3945_read32(iwl, ofs) readl((iwl)->hw_base + (ofs)) | 76 | #define _iwl3945_read32(priv, ofs) readl((priv)->hw_base + (ofs)) |
77 | #ifdef CONFIG_IWL3945_DEBUG | 77 | #ifdef CONFIG_IWL3945_DEBUG |
78 | static inline u32 __iwl3945_read32(char *f, u32 l, struct iwl3945_priv *iwl, u32 ofs) | 78 | static inline u32 __iwl3945_read32(char *f, u32 l, struct iwl3945_priv *priv, u32 ofs) |
79 | { | 79 | { |
80 | IWL_DEBUG_IO("read_direct32(0x%08X) - %s %d\n", ofs, f, l); | 80 | IWL_DEBUG_IO("read_direct32(0x%08X) - %s %d\n", ofs, f, l); |
81 | return _iwl3945_read32(iwl, ofs); | 81 | return _iwl3945_read32(priv, ofs); |
82 | } | 82 | } |
83 | #define iwl3945_read32(iwl, ofs) __iwl3945_read32(__FILE__, __LINE__, iwl, ofs) | 83 | #define iwl3945_read32(priv, ofs) __iwl3945_read32(__FILE__, __LINE__, priv, ofs) |
84 | #else | 84 | #else |
85 | #define iwl3945_read32(p, o) _iwl3945_read32(p, o) | 85 | #define iwl3945_read32(p, o) _iwl3945_read32(p, o) |
86 | #endif | 86 | #endif |
@@ -105,18 +105,13 @@ static inline int __iwl3945_poll_bit(const char *f, u32 l, | |||
105 | u32 bits, u32 mask, int timeout) | 105 | u32 bits, u32 mask, int timeout) |
106 | { | 106 | { |
107 | int ret = _iwl3945_poll_bit(priv, addr, bits, mask, timeout); | 107 | int ret = _iwl3945_poll_bit(priv, addr, bits, mask, timeout); |
108 | if (unlikely(ret == -ETIMEDOUT)) | 108 | IWL_DEBUG_IO("poll_bit(0x%08X, 0x%08X, 0x%08X) - %s- %s %d\n", |
109 | IWL_DEBUG_IO | 109 | addr, bits, mask, |
110 | ("poll_bit(0x%08X, 0x%08X, 0x%08X) - timedout - %s %d\n", | 110 | unlikely(ret == -ETIMEDOUT)?"timeout":"", f, l); |
111 | addr, bits, mask, f, l); | ||
112 | else | ||
113 | IWL_DEBUG_IO | ||
114 | ("poll_bit(0x%08X, 0x%08X, 0x%08X) = 0x%08X - %s %d\n", | ||
115 | addr, bits, mask, ret, f, l); | ||
116 | return ret; | 111 | return ret; |
117 | } | 112 | } |
118 | #define iwl3945_poll_bit(iwl, addr, bits, mask, timeout) \ | 113 | #define iwl3945_poll_bit(priv, addr, bits, mask, timeout) \ |
119 | __iwl3945_poll_bit(__FILE__, __LINE__, iwl, addr, bits, mask, timeout) | 114 | __iwl3945_poll_bit(__FILE__, __LINE__, priv, addr, bits, mask, timeout) |
120 | #else | 115 | #else |
121 | #define iwl3945_poll_bit(p, a, b, m, t) _iwl3945_poll_bit(p, a, b, m, t) | 116 | #define iwl3945_poll_bit(p, a, b, m, t) _iwl3945_poll_bit(p, a, b, m, t) |
122 | #endif | 117 | #endif |
@@ -321,8 +316,8 @@ static inline int __iwl3945_poll_direct_bit(const char *f, u32 l, | |||
321 | "- %s %d\n", addr, mask, ret, f, l); | 316 | "- %s %d\n", addr, mask, ret, f, l); |
322 | return ret; | 317 | return ret; |
323 | } | 318 | } |
324 | #define iwl3945_poll_direct_bit(iwl, addr, mask, timeout) \ | 319 | #define iwl3945_poll_direct_bit(priv, addr, mask, timeout) \ |
325 | __iwl3945_poll_direct_bit(__FILE__, __LINE__, iwl, addr, mask, timeout) | 320 | __iwl3945_poll_direct_bit(__FILE__, __LINE__, priv, addr, mask, timeout) |
326 | #else | 321 | #else |
327 | #define iwl3945_poll_direct_bit _iwl3945_poll_direct_bit | 322 | #define iwl3945_poll_direct_bit _iwl3945_poll_direct_bit |
328 | #endif | 323 | #endif |
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-io.h b/drivers/net/wireless/iwlwifi/iwl-4965-io.h index 34a0b57eea0c..4af0c0175da2 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-io.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965-io.h | |||
@@ -59,28 +59,28 @@ | |||
59 | * | 59 | * |
60 | */ | 60 | */ |
61 | 61 | ||
62 | #define _iwl4965_write32(iwl, ofs, val) writel((val), (iwl)->hw_base + (ofs)) | 62 | #define _iwl4965_write32(priv, ofs, val) writel((val), (priv)->hw_base + (ofs)) |
63 | #ifdef CONFIG_IWL4965_DEBUG | 63 | #ifdef CONFIG_IWL4965_DEBUG |
64 | static inline void __iwl4965_write32(const char *f, u32 l, struct iwl4965_priv *iwl, | 64 | static inline void __iwl4965_write32(const char *f, u32 l, struct iwl4965_priv *priv, |
65 | u32 ofs, u32 val) | 65 | u32 ofs, u32 val) |
66 | { | 66 | { |
67 | IWL_DEBUG_IO("write32(0x%08X, 0x%08X) - %s %d\n", ofs, val, f, l); | 67 | IWL_DEBUG_IO("write32(0x%08X, 0x%08X) - %s %d\n", ofs, val, f, l); |
68 | _iwl4965_write32(iwl, ofs, val); | 68 | _iwl4965_write32(priv, ofs, val); |
69 | } | 69 | } |
70 | #define iwl4965_write32(iwl, ofs, val) \ | 70 | #define iwl4965_write32(priv, ofs, val) \ |
71 | __iwl4965_write32(__FILE__, __LINE__, iwl, ofs, val) | 71 | __iwl4965_write32(__FILE__, __LINE__, priv, ofs, val) |
72 | #else | 72 | #else |
73 | #define iwl4965_write32(iwl, ofs, val) _iwl4965_write32(iwl, ofs, val) | 73 | #define iwl4965_write32(priv, ofs, val) _iwl4965_write32(priv, ofs, val) |
74 | #endif | 74 | #endif |
75 | 75 | ||
76 | #define _iwl4965_read32(iwl, ofs) readl((iwl)->hw_base + (ofs)) | 76 | #define _iwl4965_read32(priv, ofs) readl((priv)->hw_base + (ofs)) |
77 | #ifdef CONFIG_IWL4965_DEBUG | 77 | #ifdef CONFIG_IWL4965_DEBUG |
78 | static inline u32 __iwl4965_read32(char *f, u32 l, struct iwl4965_priv *iwl, u32 ofs) | 78 | static inline u32 __iwl4965_read32(char *f, u32 l, struct iwl4965_priv *priv, u32 ofs) |
79 | { | 79 | { |
80 | IWL_DEBUG_IO("read_direct32(0x%08X) - %s %d\n", ofs, f, l); | 80 | IWL_DEBUG_IO("read_direct32(0x%08X) - %s %d\n", ofs, f, l); |
81 | return _iwl4965_read32(iwl, ofs); | 81 | return _iwl4965_read32(priv, ofs); |
82 | } | 82 | } |
83 | #define iwl4965_read32(iwl, ofs) __iwl4965_read32(__FILE__, __LINE__, iwl, ofs) | 83 | #define iwl4965_read32(priv, ofs) __iwl4965_read32(__FILE__, __LINE__, priv, ofs) |
84 | #else | 84 | #else |
85 | #define iwl4965_read32(p, o) _iwl4965_read32(p, o) | 85 | #define iwl4965_read32(p, o) _iwl4965_read32(p, o) |
86 | #endif | 86 | #endif |
@@ -105,18 +105,13 @@ static inline int __iwl4965_poll_bit(const char *f, u32 l, | |||
105 | u32 bits, u32 mask, int timeout) | 105 | u32 bits, u32 mask, int timeout) |
106 | { | 106 | { |
107 | int ret = _iwl4965_poll_bit(priv, addr, bits, mask, timeout); | 107 | int ret = _iwl4965_poll_bit(priv, addr, bits, mask, timeout); |
108 | if (unlikely(ret == -ETIMEDOUT)) | 108 | IWL_DEBUG_IO("poll_bit(0x%08X, 0x%08X, 0x%08X) - %s- %s %d\n", |
109 | IWL_DEBUG_IO | 109 | addr, bits, mask, |
110 | ("poll_bit(0x%08X, 0x%08X, 0x%08X) - timedout - %s %d\n", | 110 | unlikely(ret == -ETIMEDOUT)?"timeout":"", f, l); |
111 | addr, bits, mask, f, l); | ||
112 | else | ||
113 | IWL_DEBUG_IO | ||
114 | ("poll_bit(0x%08X, 0x%08X, 0x%08X) = 0x%08X - %s %d\n", | ||
115 | addr, bits, mask, ret, f, l); | ||
116 | return ret; | 111 | return ret; |
117 | } | 112 | } |
118 | #define iwl4965_poll_bit(iwl, addr, bits, mask, timeout) \ | 113 | #define iwl4965_poll_bit(priv, addr, bits, mask, timeout) \ |
119 | __iwl4965_poll_bit(__FILE__, __LINE__, iwl, addr, bits, mask, timeout) | 114 | __iwl4965_poll_bit(__FILE__, __LINE__, priv, addr, bits, mask, timeout) |
120 | #else | 115 | #else |
121 | #define iwl4965_poll_bit(p, a, b, m, t) _iwl4965_poll_bit(p, a, b, m, t) | 116 | #define iwl4965_poll_bit(p, a, b, m, t) _iwl4965_poll_bit(p, a, b, m, t) |
122 | #endif | 117 | #endif |
@@ -321,8 +316,8 @@ static inline int __iwl4965_poll_direct_bit(const char *f, u32 l, | |||
321 | "- %s %d\n", addr, mask, ret, f, l); | 316 | "- %s %d\n", addr, mask, ret, f, l); |
322 | return ret; | 317 | return ret; |
323 | } | 318 | } |
324 | #define iwl4965_poll_direct_bit(iwl, addr, mask, timeout) \ | 319 | #define iwl4965_poll_direct_bit(priv, addr, mask, timeout) \ |
325 | __iwl4965_poll_direct_bit(__FILE__, __LINE__, iwl, addr, mask, timeout) | 320 | __iwl4965_poll_direct_bit(__FILE__, __LINE__, priv, addr, mask, timeout) |
326 | #else | 321 | #else |
327 | #define iwl4965_poll_direct_bit _iwl4965_poll_direct_bit | 322 | #define iwl4965_poll_direct_bit _iwl4965_poll_direct_bit |
328 | #endif | 323 | #endif |