Lines Matching refs:bytes
42 uint8_t bytes[2]; member
47 uint8_t bytes[4]; member
62 un.bytes[1] = val & 0xff; in sa_htobe16()
63 un.bytes[0] = (val >> 8) & 0xff; in sa_htobe16()
73 un.bytes[0] = val & 0xff; in sa_htole16()
74 un.bytes[1] = (val >> 8) & 0xff; in sa_htole16()
86 return ((un.bytes[0] << 8) | in sa_be16toh()
87 un.bytes[1]); in sa_be16toh()
97 return ((un.bytes[1] << 8) | in sa_le16toh()
98 un.bytes[0]); in sa_le16toh()
108 un.bytes[3] = val & 0xff; in sa_htobe32()
109 un.bytes[2] = (val >> 8) & 0xff; in sa_htobe32()
110 un.bytes[1] = (val >> 16) & 0xff; in sa_htobe32()
111 un.bytes[0] = (val >> 24) & 0xff; in sa_htobe32()
121 un.bytes[0] = val & 0xff; in sa_htole32()
122 un.bytes[1] = (val >> 8) & 0xff; in sa_htole32()
123 un.bytes[2] = (val >> 16) & 0xff; in sa_htole32()
124 un.bytes[3] = (val >> 24) & 0xff; in sa_htole32()
136 return ((un.bytes[0] << 24) | in sa_be32toh()
137 (un.bytes[1] << 16) | in sa_be32toh()
138 (un.bytes[2] << 8) | in sa_be32toh()
139 un.bytes[3]); in sa_be32toh()
149 return ((un.bytes[3] << 24) | in sa_le32toh()
150 (un.bytes[2] << 16) | in sa_le32toh()
151 (un.bytes[1] << 8) | in sa_le32toh()
152 un.bytes[0]); in sa_le32toh()