• Home
  • Raw
  • Download

Lines Matching refs:val

37 #define BCMSWAP16(val) \  argument
38 ((uint16)((((uint16)(val) & (uint16)0x00ffU) << 8) | \
39 (((uint16)(val) & (uint16)0xff00U) >> 8)))
42 #define BCMSWAP32(val) \ argument
43 ((uint32)((((uint32)(val) & (uint32)0x000000ffU) << 24) | \
44 (((uint32)(val) & (uint32)0x0000ff00U) << 8) | \
45 (((uint32)(val) & (uint32)0x00ff0000U) >> 8) | \
46 (((uint32)(val) & (uint32)0xff000000U) >> 24)))
49 #define BCMSWAP32BY16(val) \ argument
50 ((uint32)((((uint32)(val) & (uint32)0x0000ffffU) << 16) | \
51 (((uint32)(val) & (uint32)0xffff0000U) >> 16)))
55 bcmswap16(uint16 val) in bcmswap16() argument
57 return BCMSWAP16(val); in bcmswap16()
61 bcmswap32(uint32 val) in bcmswap32() argument
63 return BCMSWAP32(val); in bcmswap32()
67 bcmswap32by16(uint32 val) in bcmswap32by16() argument
69 return BCMSWAP32BY16(val); in bcmswap32by16()
126 htol16_ua_store(uint16 val, uint8 *bytes) in htol16_ua_store() argument
128 bytes[0] = val & 0xff; in htol16_ua_store()
129 bytes[1] = val >> 8; in htol16_ua_store()
134 htol32_ua_store(uint32 val, uint8 *bytes) in htol32_ua_store() argument
136 bytes[0] = val & 0xff; in htol32_ua_store()
137 bytes[1] = (val >> 8) & 0xff; in htol32_ua_store()
138 bytes[2] = (val >> 16) & 0xff; in htol32_ua_store()
139 bytes[3] = val >> 24; in htol32_ua_store()
144 hton16_ua_store(uint16 val, uint8 *bytes) in hton16_ua_store() argument
146 bytes[0] = val >> 8; in hton16_ua_store()
147 bytes[1] = val & 0xff; in hton16_ua_store()
152 hton32_ua_store(uint32 val, uint8 *bytes) in hton32_ua_store() argument
154 bytes[0] = val >> 24; in hton32_ua_store()
155 bytes[1] = (val >> 16) & 0xff; in hton32_ua_store()
156 bytes[2] = (val >> 8) & 0xff; in hton32_ua_store()
157 bytes[3] = val & 0xff; in hton32_ua_store()