Go to the documentation of this file. 1 #ifndef _LINUX_BYTEORDER_GENERIC_H
2 #define _LINUX_BYTEORDER_GENERIC_H
85 #define cpu_to_le64 __cpu_to_le64
86 #define le64_to_cpu __le64_to_cpu
87 #define cpu_to_le32 __cpu_to_le32
88 #define le32_to_cpu __le32_to_cpu
89 #define cpu_to_le16 __cpu_to_le16
90 #define le16_to_cpu __le16_to_cpu
91 #define cpu_to_be64 __cpu_to_be64
92 #define be64_to_cpu __be64_to_cpu
93 #define cpu_to_be32 __cpu_to_be32
94 #define be32_to_cpu __be32_to_cpu
95 #define cpu_to_be16 __cpu_to_be16
96 #define be16_to_cpu __be16_to_cpu
97 #define cpu_to_le64p __cpu_to_le64p
98 #define le64_to_cpup __le64_to_cpup
99 #define cpu_to_le32p __cpu_to_le32p
100 #define le32_to_cpup __le32_to_cpup
101 #define cpu_to_le16p __cpu_to_le16p
102 #define le16_to_cpup __le16_to_cpup
103 #define cpu_to_be64p __cpu_to_be64p
104 #define be64_to_cpup __be64_to_cpup
105 #define cpu_to_be32p __cpu_to_be32p
106 #define be32_to_cpup __be32_to_cpup
107 #define cpu_to_be16p __cpu_to_be16p
108 #define be16_to_cpup __be16_to_cpup
109 #define cpu_to_le64s __cpu_to_le64s
110 #define le64_to_cpus __le64_to_cpus
111 #define cpu_to_le32s __cpu_to_le32s
112 #define le32_to_cpus __le32_to_cpus
113 #define cpu_to_le16s __cpu_to_le16s
114 #define le16_to_cpus __le16_to_cpus
115 #define cpu_to_be64s __cpu_to_be64s
116 #define be64_to_cpus __be64_to_cpus
117 #define cpu_to_be32s __cpu_to_be32s
118 #define be32_to_cpus __be32_to_cpus
119 #define cpu_to_be16s __cpu_to_be16s
120 #define be16_to_cpus __be16_to_cpus
133 #define ___htonl(x) __cpu_to_be32(x)
134 #define ___htons(x) __cpu_to_be16(x)
135 #define ___ntohl(x) __be32_to_cpu(x)
136 #define ___ntohs(x) __be16_to_cpu(x)
138 #define htonl(x) ___htonl(x)
139 #define ntohl(x) ___ntohl(x)
140 #define htons(x) ___htons(x)
141 #define ntohs(x) ___ntohs(x)
153 static inline void le64_add_cpu(
__le64 *var,
u64 val)
158 static inline void be16_add_cpu(
__be16 *var,
u16 val)
163 static inline void be32_add_cpu(
__be32 *var,
u32 val)
168 static inline void be64_add_cpu(
__be64 *var,
u64 val)