Lines Matching refs:val

30 #define BCMSWAP16(val) \  argument
31 ((uint16)((((uint16)(val) & (uint16)0x00ffU) << 8) | \
32 (((uint16)(val) & (uint16)0xff00U) >> 8)))
35 #define BCMSWAP32(val) \ argument
36 ((uint32)((((uint32)(val) & (uint32)0x000000ffU) << 24) | \
37 (((uint32)(val) & (uint32)0x0000ff00U) << 8) | \
38 (((uint32)(val) & (uint32)0x00ff0000U) >> 8) | \
39 (((uint32)(val) & (uint32)0xff000000U) >> 24)))
42 #define BCMSWAP32BY16(val) \ argument
43 ((uint32)((((uint32)(val) & (uint32)0x0000ffffU) << 16) | \
44 (((uint32)(val) & (uint32)0xffff0000U) >> 16)))
101 #define bcmswap16(val) ({ \ argument
102 uint16 _val = (val); \
106 #define bcmswap32(val) ({ \ argument
107 uint32 _val = (val); \
111 #define bcmswap32by16(val) ({ \ argument
112 uint32 _val = (val); \
125 #define htol16_ua_store(val, bytes) ({ \ argument
126 uint16 _val = (val); \
132 #define htol32_ua_store(val, bytes) ({ \ argument
133 uint32 _val = (val); \
141 #define hton16_ua_store(val, bytes) ({ \ argument
142 uint16 _val = (val); \
148 #define hton32_ua_store(val, bytes) ({ \ argument
149 uint32 _val = (val); \
181 bcmswap16(uint16 val) in bcmswap16() argument
183 return BCMSWAP16(val); in bcmswap16()
187 bcmswap32(uint32 val) in bcmswap32() argument
189 return BCMSWAP32(val); in bcmswap32()
193 bcmswap32by16(uint32 val) in bcmswap32by16() argument
195 return BCMSWAP32BY16(val); in bcmswap32by16()
216 htol16_ua_store(uint16 val, uint8 *bytes) in htol16_ua_store() argument
218 bytes[0] = val & 0xff; in htol16_ua_store()
219 bytes[1] = val >> 8; in htol16_ua_store()
226 htol32_ua_store(uint32 val, uint8 *bytes) in htol32_ua_store() argument
228 bytes[0] = val & 0xff; in htol32_ua_store()
229 bytes[1] = (val >> 8) & 0xff; in htol32_ua_store()
230 bytes[2] = (val >> 16) & 0xff; in htol32_ua_store()
231 bytes[3] = val >> 24; in htol32_ua_store()
238 hton16_ua_store(uint16 val, uint8 *bytes) in hton16_ua_store() argument
240 bytes[0] = val >> 8; in hton16_ua_store()
241 bytes[1] = val & 0xff; in hton16_ua_store()
248 hton32_ua_store(uint32 val, uint8 *bytes) in hton32_ua_store() argument
250 bytes[0] = val >> 24; in hton32_ua_store()
251 bytes[1] = (val >> 16) & 0xff; in hton32_ua_store()
252 bytes[2] = (val >> 8) & 0xff; in hton32_ua_store()
253 bytes[3] = val & 0xff; in hton32_ua_store()