|
@@ -496,7 +496,7 @@ static inline void tep_set_flag(struct tep_handle *pevent, int flag)
|
|
|
}
|
|
|
|
|
|
static inline unsigned short
|
|
|
-__data2host2(struct tep_handle *pevent, unsigned short data)
|
|
|
+__tep_data2host2(struct tep_handle *pevent, unsigned short data)
|
|
|
{
|
|
|
unsigned short swap;
|
|
|
|
|
@@ -510,7 +510,7 @@ __data2host2(struct tep_handle *pevent, unsigned short data)
|
|
|
}
|
|
|
|
|
|
static inline unsigned int
|
|
|
-__data2host4(struct tep_handle *pevent, unsigned int data)
|
|
|
+__tep_data2host4(struct tep_handle *pevent, unsigned int data)
|
|
|
{
|
|
|
unsigned int swap;
|
|
|
|
|
@@ -526,7 +526,7 @@ __data2host4(struct tep_handle *pevent, unsigned int data)
|
|
|
}
|
|
|
|
|
|
static inline unsigned long long
|
|
|
-__data2host8(struct tep_handle *pevent, unsigned long long data)
|
|
|
+__tep_data2host8(struct tep_handle *pevent, unsigned long long data)
|
|
|
{
|
|
|
unsigned long long swap;
|
|
|
|
|
@@ -545,14 +545,14 @@ __data2host8(struct tep_handle *pevent, unsigned long long data)
|
|
|
return swap;
|
|
|
}
|
|
|
|
|
|
-#define data2host2(pevent, ptr) __data2host2(pevent, *(unsigned short *)(ptr))
|
|
|
-#define data2host4(pevent, ptr) __data2host4(pevent, *(unsigned int *)(ptr))
|
|
|
-#define data2host8(pevent, ptr) \
|
|
|
+#define tep_data2host2(pevent, ptr) __tep_data2host2(pevent, *(unsigned short *)(ptr))
|
|
|
+#define tep_data2host4(pevent, ptr) __tep_data2host4(pevent, *(unsigned int *)(ptr))
|
|
|
+#define tep_data2host8(pevent, ptr) \
|
|
|
({ \
|
|
|
unsigned long long __val; \
|
|
|
\
|
|
|
memcpy(&__val, (ptr), sizeof(unsigned long long)); \
|
|
|
- __data2host8(pevent, __val); \
|
|
|
+ __tep_data2host8(pevent, __val); \
|
|
|
})
|
|
|
|
|
|
static inline int tep_host_bigendian(void)
|