diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2012-12-02 06:07:30 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-12-06 16:24:03 -0500 |
commit | 6a06b6c131d529f2913513355dd9e7c4e05e8e42 (patch) | |
tree | 5880c6e9837014f16bb5b8cfe0018991aecc0a4f /drivers/net/wireless/iwlwifi/iwl-devtrace.h | |
parent | b7998c8b4459deff3ea9c939e90812439423ab89 (diff) |
iwlwifi: move prph handling into the transport
New transports may handle it internally for better performance.
Also move the tracing inside PRPH access which will make the
output more readable:
iwlwifi_dev_ioread_prph32: Read 0x0 from SCD_AGGR_SEL (32-bit)
instead of the corresponding accesses to HBUS_TARG_PRPH_*.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-devtrace.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-devtrace.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-devtrace.h b/drivers/net/wireless/iwlwifi/iwl-devtrace.h index b3fde5f7b9bc..dc7e26b2f383 100644 --- a/drivers/net/wireless/iwlwifi/iwl-devtrace.h +++ b/drivers/net/wireless/iwlwifi/iwl-devtrace.h | |||
@@ -133,6 +133,40 @@ TRACE_EVENT(iwlwifi_dev_iowrite32, | |||
133 | __get_str(dev), __entry->offs, __entry->val) | 133 | __get_str(dev), __entry->offs, __entry->val) |
134 | ); | 134 | ); |
135 | 135 | ||
136 | TRACE_EVENT(iwlwifi_dev_iowrite_prph32, | ||
137 | TP_PROTO(const struct device *dev, u32 offs, u32 val), | ||
138 | TP_ARGS(dev, offs, val), | ||
139 | TP_STRUCT__entry( | ||
140 | DEV_ENTRY | ||
141 | __field(u32, offs) | ||
142 | __field(u32, val) | ||
143 | ), | ||
144 | TP_fast_assign( | ||
145 | DEV_ASSIGN; | ||
146 | __entry->offs = offs; | ||
147 | __entry->val = val; | ||
148 | ), | ||
149 | TP_printk("[%s] write PRPH[%#x] = %#x)", | ||
150 | __get_str(dev), __entry->offs, __entry->val) | ||
151 | ); | ||
152 | |||
153 | TRACE_EVENT(iwlwifi_dev_ioread_prph32, | ||
154 | TP_PROTO(const struct device *dev, u32 offs, u32 val), | ||
155 | TP_ARGS(dev, offs, val), | ||
156 | TP_STRUCT__entry( | ||
157 | DEV_ENTRY | ||
158 | __field(u32, offs) | ||
159 | __field(u32, val) | ||
160 | ), | ||
161 | TP_fast_assign( | ||
162 | DEV_ASSIGN; | ||
163 | __entry->offs = offs; | ||
164 | __entry->val = val; | ||
165 | ), | ||
166 | TP_printk("[%s] read PRPH[%#x] = %#x", | ||
167 | __get_str(dev), __entry->offs, __entry->val) | ||
168 | ); | ||
169 | |||
136 | TRACE_EVENT(iwlwifi_dev_irq, | 170 | TRACE_EVENT(iwlwifi_dev_irq, |
137 | TP_PROTO(const struct device *dev), | 171 | TP_PROTO(const struct device *dev), |
138 | TP_ARGS(dev), | 172 | TP_ARGS(dev), |