Lines Matching refs:TI_UINT8
195 #define MAC_COPY(dst,src) ((TI_UINT8*)(dst))[0] = ((TI_UINT8*)(src))[0]; \
196 ((TI_UINT8*)(dst))[1] = ((TI_UINT8*)(src))[1]; \
197 ((TI_UINT8*)(dst))[2] = ((TI_UINT8*)(src))[2]; \
198 ((TI_UINT8*)(dst))[3] = ((TI_UINT8*)(src))[3]; \
199 ((TI_UINT8*)(dst))[4] = ((TI_UINT8*)(src))[4]; \
200 ((TI_UINT8*)(dst))[5] = ((TI_UINT8*)(src))[5]
207 #define MAC_EQUAL(mac1,mac2) (((TI_UINT8*)(mac1))[0] == ((TI_UINT8*)(mac2))[0] && \
208 ((TI_UINT8*)(mac1))[1] == ((TI_UINT8*)(mac2))[1] && \
209 ((TI_UINT8*)(mac1))[2] == ((TI_UINT8*)(mac2))[2] && \
210 ((TI_UINT8*)(mac1))[3] == ((TI_UINT8*)(mac2))[3] && \
211 ((TI_UINT8*)(mac1))[4] == ((TI_UINT8*)(mac2))[4] && \
212 ((TI_UINT8*)(mac1))[5] == ((TI_UINT8*)(mac2))[5])
263 #define COPY_WLAN_WORD(dst,src) ((TI_UINT8 *)(dst))[0] = ((TI_UINT8 *)(src))[1]; \
264 ((TI_UINT8 *)(dst))[1] = ((TI_UINT8 *)(src))[0]
265 #define COPY_WLAN_LONG(dst,src) ((TI_UINT8 *)(dst))[0] = ((TI_UINT8 *)(src))[3]; \
266 ((TI_UINT8 *)(dst))[1] = ((TI_UINT8 *)(src))[2]; \
267 ((TI_UINT8 *)(dst))[2] = ((TI_UINT8 *)(src))[1]; \
268 ((TI_UINT8 *)(dst))[3] = ((TI_UINT8 *)(src))[0]
270 #define SET_WLAN_WORD(dst,val) ((TI_UINT8 *)(dst))[1] = (val) & 0xff; \
271 ((TI_UINT8 *)(dst))[0] = ((val) >> 8) & 0xff
273 #define SET_WLAN_LONG(dst,val) ((TI_UINT8 *)(dst))[3] = (val) & 0xff; \
274 ((TI_UINT8 *)(dst))[2] = ((val) >> 8) & 0xff; \
275 ((TI_UINT8 *)(dst))[1] = ((val) >> 16) & 0xff; \
276 ((TI_UINT8 *)(dst))[0] = ((val) >> 24) & 0xff
278 #define WLAN_WORD(src) (((TI_UINT8 *)(src))[1]) | (((TI_UINT8 *)(src))[0] << 8)
279 …LONG(src) (((TI_UINT8 *)(src))[3]) | (((TI_UINT8 *)(src))[2] << 8) | (((TI_UINT8 *)(s…
330 #define COPY_WLAN_WORD(dst,src) ((TI_UINT8 *)(dst))[0] = ((TI_UINT8 *)(src))[0]; \
331 ((TI_UINT8 *)(dst))[1] = ((TI_UINT8 *)(src))[1]
336 #define COPY_WLAN_LONG(dst,src) ((TI_UINT8 *)(dst))[0] = ((TI_UINT8 *)(src))[0]; \
337 ((TI_UINT8 *)(dst))[1] = ((TI_UINT8 *)(src))[1]; \
338 ((TI_UINT8 *)(dst))[2] = ((TI_UINT8 *)(src))[2]; \
339 ((TI_UINT8 *)(dst))[3] = ((TI_UINT8 *)(src))[3]
344 #define SET_WLAN_WORD(dst,val) ((TI_UINT8 *)(dst))[0] = (val) & 0xff; \
345 ((TI_UINT8 *)(dst))[1] = ((val) >> 8) & 0xff
350 #define SET_WLAN_LONG(dst,val) ((TI_UINT8 *)(dst))[0] = (val) & 0xff; \
351 ((TI_UINT8 *)(dst))[1] = ((val) >> 8) & 0xff; \
352 ((TI_UINT8 *)(dst))[2] = ((val) >> 16) & 0xff; \
353 ((TI_UINT8 *)(dst))[3] = ((val) >> 24) & 0xff
358 #define WLAN_WORD(src) (((TI_UINT8 *)(src))[0]) | (((TI_UINT8 *)(src))[1] << 8)
363 …LONG(src) (((TI_UINT8 *)(src))[0]) | (((TI_UINT8 *)(src))[1] << 8) | (((TI_UINT8 *)(s…
400 typedef TI_UINT8 TMacAddr [MAC_ADDR_LEN];
407 typedef TI_UINT8 TIpAddr [IP_V4_ADDR_LEN];