Lines Matching refs:val
172 #define sys_le16_to_cpu(val) (val) argument
173 #define sys_cpu_to_le16(val) (val) argument
174 #define sys_le24_to_cpu(val) (val) argument
175 #define sys_cpu_to_le24(val) (val) argument
176 #define sys_le32_to_cpu(val) (val) argument
177 #define sys_cpu_to_le32(val) (val) argument
178 #define sys_le48_to_cpu(val) (val) argument
179 #define sys_cpu_to_le48(val) (val) argument
180 #define sys_le64_to_cpu(val) (val) argument
181 #define sys_cpu_to_le64(val) (val) argument
182 #define sys_be16_to_cpu(val) __bswap_16(val) argument
183 #define sys_cpu_to_be16(val) __bswap_16(val) argument
184 #define sys_be24_to_cpu(val) __bswap_24(val) argument
185 #define sys_cpu_to_be24(val) __bswap_24(val) argument
186 #define sys_be32_to_cpu(val) __bswap_32(val) argument
187 #define sys_cpu_to_be32(val) __bswap_32(val) argument
188 #define sys_be48_to_cpu(val) __bswap_48(val) argument
189 #define sys_cpu_to_be48(val) __bswap_48(val) argument
190 #define sys_be64_to_cpu(val) __bswap_64(val) argument
191 #define sys_cpu_to_be64(val) __bswap_64(val) argument
193 #define sys_le16_to_cpu(val) __bswap_16(val) argument
194 #define sys_cpu_to_le16(val) __bswap_16(val) argument
195 #define sys_le24_to_cpu(val) __bswap_24(val) argument
196 #define sys_cpu_to_le24(val) __bswap_24(val) argument
197 #define sys_le32_to_cpu(val) __bswap_32(val) argument
198 #define sys_cpu_to_le32(val) __bswap_32(val) argument
199 #define sys_le48_to_cpu(val) __bswap_48(val) argument
200 #define sys_cpu_to_le48(val) __bswap_48(val) argument
201 #define sys_le64_to_cpu(val) __bswap_64(val) argument
202 #define sys_cpu_to_le64(val) __bswap_64(val) argument
203 #define sys_be16_to_cpu(val) (val) argument
204 #define sys_cpu_to_be16(val) (val) argument
205 #define sys_be24_to_cpu(val) (val) argument
206 #define sys_cpu_to_be24(val) (val) argument
207 #define sys_be32_to_cpu(val) (val) argument
208 #define sys_cpu_to_be32(val) (val) argument
209 #define sys_be48_to_cpu(val) (val) argument
210 #define sys_cpu_to_be48(val) (val) argument
211 #define sys_be64_to_cpu(val) (val) argument
212 #define sys_cpu_to_be64(val) (val) argument
226 static inline void sys_put_be16(uint16_t val, uint8_t dst[2]) in sys_put_be16() argument
228 dst[0] = val >> 8; in sys_put_be16()
229 dst[1] = val; in sys_put_be16()
241 static inline void sys_put_be24(uint32_t val, uint8_t dst[3]) in sys_put_be24() argument
243 dst[0] = val >> 16; in sys_put_be24()
244 sys_put_be16(val, &dst[1]); in sys_put_be24()
256 static inline void sys_put_be32(uint32_t val, uint8_t dst[4]) in sys_put_be32() argument
258 sys_put_be16(val >> 16, dst); in sys_put_be32()
259 sys_put_be16(val, &dst[2]); in sys_put_be32()
271 static inline void sys_put_be48(uint64_t val, uint8_t dst[6]) in sys_put_be48() argument
273 sys_put_be16(val >> 32, dst); in sys_put_be48()
274 sys_put_be32(val, &dst[2]); in sys_put_be48()
286 static inline void sys_put_be64(uint64_t val, uint8_t dst[8]) in sys_put_be64() argument
288 sys_put_be32(val >> 32, dst); in sys_put_be64()
289 sys_put_be32(val, &dst[4]); in sys_put_be64()
301 static inline void sys_put_le16(uint16_t val, uint8_t dst[2]) in sys_put_le16() argument
303 dst[0] = val; in sys_put_le16()
304 dst[1] = val >> 8; in sys_put_le16()
316 static inline void sys_put_le24(uint32_t val, uint8_t dst[3]) in sys_put_le24() argument
318 sys_put_le16(val, dst); in sys_put_le24()
319 dst[2] = val >> 16; in sys_put_le24()
331 static inline void sys_put_le32(uint32_t val, uint8_t dst[4]) in sys_put_le32() argument
333 sys_put_le16(val, dst); in sys_put_le32()
334 sys_put_le16(val >> 16, &dst[2]); in sys_put_le32()
346 static inline void sys_put_le48(uint64_t val, uint8_t dst[6]) in sys_put_le48() argument
348 sys_put_le32(val, dst); in sys_put_le48()
349 sys_put_le16(val >> 32, &dst[4]); in sys_put_le48()
361 static inline void sys_put_le64(uint64_t val, uint8_t dst[8]) in sys_put_le64() argument
363 sys_put_le32(val, dst); in sys_put_le64()
364 sys_put_le32(val >> 32, &dst[4]); in sys_put_le64()