mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
eaaf789495
commit
5c1b09581b
|
@ -59,28 +59,28 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _iwl3945_write32(iwl, ofs, val) writel((val), (iwl)->hw_base + (ofs))
|
#define _iwl3945_write32(priv, ofs, val) writel((val), (priv)->hw_base + (ofs))
|
||||||
#ifdef CONFIG_IWL3945_DEBUG
|
#ifdef CONFIG_IWL3945_DEBUG
|
||||||
static inline void __iwl3945_write32(const char *f, u32 l, struct iwl3945_priv *iwl,
|
static inline void __iwl3945_write32(const char *f, u32 l, struct iwl3945_priv *priv,
|
||||||
u32 ofs, u32 val)
|
u32 ofs, u32 val)
|
||||||
{
|
{
|
||||||
IWL_DEBUG_IO("write32(0x%08X, 0x%08X) - %s %d\n", ofs, val, f, l);
|
IWL_DEBUG_IO("write32(0x%08X, 0x%08X) - %s %d\n", ofs, val, f, l);
|
||||||
_iwl3945_write32(iwl, ofs, val);
|
_iwl3945_write32(priv, ofs, val);
|
||||||
}
|
}
|
||||||
#define iwl3945_write32(iwl, ofs, val) \
|
#define iwl3945_write32(priv, ofs, val) \
|
||||||
__iwl3945_write32(__FILE__, __LINE__, iwl, ofs, val)
|
__iwl3945_write32(__FILE__, __LINE__, priv, ofs, val)
|
||||||
#else
|
#else
|
||||||
#define iwl3945_write32(iwl, ofs, val) _iwl3945_write32(iwl, ofs, val)
|
#define iwl3945_write32(priv, ofs, val) _iwl3945_write32(priv, ofs, val)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define _iwl3945_read32(iwl, ofs) readl((iwl)->hw_base + (ofs))
|
#define _iwl3945_read32(priv, ofs) readl((priv)->hw_base + (ofs))
|
||||||
#ifdef CONFIG_IWL3945_DEBUG
|
#ifdef CONFIG_IWL3945_DEBUG
|
||||||
static inline u32 __iwl3945_read32(char *f, u32 l, struct iwl3945_priv *iwl, u32 ofs)
|
static inline u32 __iwl3945_read32(char *f, u32 l, struct iwl3945_priv *priv, u32 ofs)
|
||||||
{
|
{
|
||||||
IWL_DEBUG_IO("read_direct32(0x%08X) - %s %d\n", ofs, f, l);
|
IWL_DEBUG_IO("read_direct32(0x%08X) - %s %d\n", ofs, f, l);
|
||||||
return _iwl3945_read32(iwl, ofs);
|
return _iwl3945_read32(priv, ofs);
|
||||||
}
|
}
|
||||||
#define iwl3945_read32(iwl, ofs) __iwl3945_read32(__FILE__, __LINE__, iwl, ofs)
|
#define iwl3945_read32(priv, ofs) __iwl3945_read32(__FILE__, __LINE__, priv, ofs)
|
||||||
#else
|
#else
|
||||||
#define iwl3945_read32(p, o) _iwl3945_read32(p, o)
|
#define iwl3945_read32(p, o) _iwl3945_read32(p, o)
|
||||||
#endif
|
#endif
|
||||||
|
@ -105,18 +105,13 @@ static inline int __iwl3945_poll_bit(const char *f, u32 l,
|
||||||
u32 bits, u32 mask, int timeout)
|
u32 bits, u32 mask, int timeout)
|
||||||
{
|
{
|
||||||
int ret = _iwl3945_poll_bit(priv, addr, bits, mask, timeout);
|
int ret = _iwl3945_poll_bit(priv, addr, bits, mask, timeout);
|
||||||
if (unlikely(ret == -ETIMEDOUT))
|
IWL_DEBUG_IO("poll_bit(0x%08X, 0x%08X, 0x%08X) - %s- %s %d\n",
|
||||||
IWL_DEBUG_IO
|
addr, bits, mask,
|
||||||
("poll_bit(0x%08X, 0x%08X, 0x%08X) - timedout - %s %d\n",
|
unlikely(ret == -ETIMEDOUT)?"timeout":"", f, l);
|
||||||
addr, bits, mask, f, l);
|
|
||||||
else
|
|
||||||
IWL_DEBUG_IO
|
|
||||||
("poll_bit(0x%08X, 0x%08X, 0x%08X) = 0x%08X - %s %d\n",
|
|
||||||
addr, bits, mask, ret, f, l);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#define iwl3945_poll_bit(iwl, addr, bits, mask, timeout) \
|
#define iwl3945_poll_bit(priv, addr, bits, mask, timeout) \
|
||||||
__iwl3945_poll_bit(__FILE__, __LINE__, iwl, addr, bits, mask, timeout)
|
__iwl3945_poll_bit(__FILE__, __LINE__, priv, addr, bits, mask, timeout)
|
||||||
#else
|
#else
|
||||||
#define iwl3945_poll_bit(p, a, b, m, t) _iwl3945_poll_bit(p, a, b, m, t)
|
#define iwl3945_poll_bit(p, a, b, m, t) _iwl3945_poll_bit(p, a, b, m, t)
|
||||||
#endif
|
#endif
|
||||||
|
@ -321,8 +316,8 @@ static inline int __iwl3945_poll_direct_bit(const char *f, u32 l,
|
||||||
"- %s %d\n", addr, mask, ret, f, l);
|
"- %s %d\n", addr, mask, ret, f, l);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#define iwl3945_poll_direct_bit(iwl, addr, mask, timeout) \
|
#define iwl3945_poll_direct_bit(priv, addr, mask, timeout) \
|
||||||
__iwl3945_poll_direct_bit(__FILE__, __LINE__, iwl, addr, mask, timeout)
|
__iwl3945_poll_direct_bit(__FILE__, __LINE__, priv, addr, mask, timeout)
|
||||||
#else
|
#else
|
||||||
#define iwl3945_poll_direct_bit _iwl3945_poll_direct_bit
|
#define iwl3945_poll_direct_bit _iwl3945_poll_direct_bit
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -59,28 +59,28 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _iwl4965_write32(iwl, ofs, val) writel((val), (iwl)->hw_base + (ofs))
|
#define _iwl4965_write32(priv, ofs, val) writel((val), (priv)->hw_base + (ofs))
|
||||||
#ifdef CONFIG_IWL4965_DEBUG
|
#ifdef CONFIG_IWL4965_DEBUG
|
||||||
static inline void __iwl4965_write32(const char *f, u32 l, struct iwl4965_priv *iwl,
|
static inline void __iwl4965_write32(const char *f, u32 l, struct iwl4965_priv *priv,
|
||||||
u32 ofs, u32 val)
|
u32 ofs, u32 val)
|
||||||
{
|
{
|
||||||
IWL_DEBUG_IO("write32(0x%08X, 0x%08X) - %s %d\n", ofs, val, f, l);
|
IWL_DEBUG_IO("write32(0x%08X, 0x%08X) - %s %d\n", ofs, val, f, l);
|
||||||
_iwl4965_write32(iwl, ofs, val);
|
_iwl4965_write32(priv, ofs, val);
|
||||||
}
|
}
|
||||||
#define iwl4965_write32(iwl, ofs, val) \
|
#define iwl4965_write32(priv, ofs, val) \
|
||||||
__iwl4965_write32(__FILE__, __LINE__, iwl, ofs, val)
|
__iwl4965_write32(__FILE__, __LINE__, priv, ofs, val)
|
||||||
#else
|
#else
|
||||||
#define iwl4965_write32(iwl, ofs, val) _iwl4965_write32(iwl, ofs, val)
|
#define iwl4965_write32(priv, ofs, val) _iwl4965_write32(priv, ofs, val)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define _iwl4965_read32(iwl, ofs) readl((iwl)->hw_base + (ofs))
|
#define _iwl4965_read32(priv, ofs) readl((priv)->hw_base + (ofs))
|
||||||
#ifdef CONFIG_IWL4965_DEBUG
|
#ifdef CONFIG_IWL4965_DEBUG
|
||||||
static inline u32 __iwl4965_read32(char *f, u32 l, struct iwl4965_priv *iwl, u32 ofs)
|
static inline u32 __iwl4965_read32(char *f, u32 l, struct iwl4965_priv *priv, u32 ofs)
|
||||||
{
|
{
|
||||||
IWL_DEBUG_IO("read_direct32(0x%08X) - %s %d\n", ofs, f, l);
|
IWL_DEBUG_IO("read_direct32(0x%08X) - %s %d\n", ofs, f, l);
|
||||||
return _iwl4965_read32(iwl, ofs);
|
return _iwl4965_read32(priv, ofs);
|
||||||
}
|
}
|
||||||
#define iwl4965_read32(iwl, ofs) __iwl4965_read32(__FILE__, __LINE__, iwl, ofs)
|
#define iwl4965_read32(priv, ofs) __iwl4965_read32(__FILE__, __LINE__, priv, ofs)
|
||||||
#else
|
#else
|
||||||
#define iwl4965_read32(p, o) _iwl4965_read32(p, o)
|
#define iwl4965_read32(p, o) _iwl4965_read32(p, o)
|
||||||
#endif
|
#endif
|
||||||
|
@ -105,18 +105,13 @@ static inline int __iwl4965_poll_bit(const char *f, u32 l,
|
||||||
u32 bits, u32 mask, int timeout)
|
u32 bits, u32 mask, int timeout)
|
||||||
{
|
{
|
||||||
int ret = _iwl4965_poll_bit(priv, addr, bits, mask, timeout);
|
int ret = _iwl4965_poll_bit(priv, addr, bits, mask, timeout);
|
||||||
if (unlikely(ret == -ETIMEDOUT))
|
IWL_DEBUG_IO("poll_bit(0x%08X, 0x%08X, 0x%08X) - %s- %s %d\n",
|
||||||
IWL_DEBUG_IO
|
addr, bits, mask,
|
||||||
("poll_bit(0x%08X, 0x%08X, 0x%08X) - timedout - %s %d\n",
|
unlikely(ret == -ETIMEDOUT)?"timeout":"", f, l);
|
||||||
addr, bits, mask, f, l);
|
|
||||||
else
|
|
||||||
IWL_DEBUG_IO
|
|
||||||
("poll_bit(0x%08X, 0x%08X, 0x%08X) = 0x%08X - %s %d\n",
|
|
||||||
addr, bits, mask, ret, f, l);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#define iwl4965_poll_bit(iwl, addr, bits, mask, timeout) \
|
#define iwl4965_poll_bit(priv, addr, bits, mask, timeout) \
|
||||||
__iwl4965_poll_bit(__FILE__, __LINE__, iwl, addr, bits, mask, timeout)
|
__iwl4965_poll_bit(__FILE__, __LINE__, priv, addr, bits, mask, timeout)
|
||||||
#else
|
#else
|
||||||
#define iwl4965_poll_bit(p, a, b, m, t) _iwl4965_poll_bit(p, a, b, m, t)
|
#define iwl4965_poll_bit(p, a, b, m, t) _iwl4965_poll_bit(p, a, b, m, t)
|
||||||
#endif
|
#endif
|
||||||
|
@ -321,8 +316,8 @@ static inline int __iwl4965_poll_direct_bit(const char *f, u32 l,
|
||||||
"- %s %d\n", addr, mask, ret, f, l);
|
"- %s %d\n", addr, mask, ret, f, l);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#define iwl4965_poll_direct_bit(iwl, addr, mask, timeout) \
|
#define iwl4965_poll_direct_bit(priv, addr, mask, timeout) \
|
||||||
__iwl4965_poll_direct_bit(__FILE__, __LINE__, iwl, addr, mask, timeout)
|
__iwl4965_poll_direct_bit(__FILE__, __LINE__, priv, addr, mask, timeout)
|
||||||
#else
|
#else
|
||||||
#define iwl4965_poll_direct_bit _iwl4965_poll_direct_bit
|
#define iwl4965_poll_direct_bit _iwl4965_poll_direct_bit
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue