Lines Matching refs:pbuf
279 #define SetToDs(pbuf) \ argument
281 *(unsigned short *)(pbuf) |= cpu_to_le16(_TO_DS_); \
284 #define GetToDs(pbuf) (((*(unsigned short *)(pbuf)) & le16_to_cpu(_TO_DS_)) != 0) argument
286 #define ClearToDs(pbuf) \ argument
288 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_TO_DS_)); \
291 #define SetFrDs(pbuf) \ argument
293 *(unsigned short *)(pbuf) |= cpu_to_le16(_FROM_DS_); \
296 #define GetFrDs(pbuf) (((*(unsigned short *)(pbuf)) & le16_to_cpu(_FROM_DS_)) != 0) argument
298 #define ClearFrDs(pbuf) \ argument
300 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_FROM_DS_)); \
306 #define SetMFrag(pbuf) \ argument
308 *(unsigned short *)(pbuf) |= cpu_to_le16(_MORE_FRAG_); \
311 #define GetMFrag(pbuf) (((*(unsigned short *)(pbuf)) & le16_to_cpu(_MORE_FRAG_)) != 0) argument
313 #define ClearMFrag(pbuf) \ argument
315 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_MORE_FRAG_)); \
318 #define SetRetry(pbuf) \ argument
320 *(unsigned short *)(pbuf) |= cpu_to_le16(_RETRY_); \
323 #define GetRetry(pbuf) (((*(unsigned short *)(pbuf)) & le16_to_cpu(_RETRY_)) != 0) argument
325 #define ClearRetry(pbuf) \ argument
327 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_RETRY_)); \
330 #define SetPwrMgt(pbuf) \ argument
332 *(unsigned short *)(pbuf) |= cpu_to_le16(_PWRMGT_); \
335 #define GetPwrMgt(pbuf) (((*(unsigned short *)(pbuf)) & le16_to_cpu(_PWRMGT_)) != 0) argument
337 #define ClearPwrMgt(pbuf) \ argument
339 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_PWRMGT_)); \
342 #define SetMData(pbuf) \ argument
344 *(unsigned short *)(pbuf) |= cpu_to_le16(_MORE_DATA_); \
347 #define GetMData(pbuf) (((*(unsigned short *)(pbuf)) & le16_to_cpu(_MORE_DATA_)) != 0) argument
349 #define ClearMData(pbuf) \ argument
351 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_MORE_DATA_)); \
354 #define SetPrivacy(pbuf) \ argument
356 *(unsigned short *)(pbuf) |= cpu_to_le16(_PRIVACY_); \
359 #define GetPrivacy(pbuf) (((*(unsigned short *)(pbuf)) & le16_to_cpu(_PRIVACY_)) != 0) argument
361 #define ClearPrivacy(pbuf) \ argument
363 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_PRIVACY_)); \
367 #define GetOrder(pbuf) (((*(unsigned short *)(pbuf)) & le16_to_cpu(_ORDER_)) != 0) argument
369 #define GetFrameType(pbuf) (le16_to_cpu(*(unsigned short *)(pbuf)) & (BIT(3) | BIT(2))) argument
371 #define SetFrameType(pbuf, type) \ argument
373 *(unsigned short *)(pbuf) &= __constant_cpu_to_le16(~(BIT(3) | BIT(2))); \
374 *(unsigned short *)(pbuf) |= __constant_cpu_to_le16(type); \
377 #define get_frame_sub_type(pbuf) (cpu_to_le16(*(unsigned short *)(pbuf)) & (BIT(7) | BIT(6) | BIT(5… argument
380 #define set_frame_sub_type(pbuf, type) \ argument
382 …*(unsigned short *)(pbuf) &= cpu_to_le16(~(BIT(7) | BIT(6) | BIT(5) | BIT(4) | BIT(3) | BIT(2))); \
383 *(unsigned short *)(pbuf) |= cpu_to_le16(type); \
387 #define GetSequence(pbuf) (cpu_to_le16(*(unsigned short *)((SIZE_PTR)(pbuf) + 22)) >> 4) argument
389 #define GetFragNum(pbuf) (cpu_to_le16(*(unsigned short *)((SIZE_PTR)(pbuf) + 22)) & 0x0f) argument
391 #define GetTupleCache(pbuf) (cpu_to_le16(*(unsigned short *)((SIZE_PTR)(pbuf) + 22))) argument
393 #define SetFragNum(pbuf, num) \ argument
395 *(unsigned short *)((SIZE_PTR)(pbuf) + 22) = \
396 ((*(unsigned short *)((SIZE_PTR)(pbuf) + 22)) & le16_to_cpu(~(0x000f))) | \
400 #define SetSeqNum(pbuf, num) \ argument
402 *(unsigned short *)((SIZE_PTR)(pbuf) + 22) = \
403 ((*(unsigned short *)((SIZE_PTR)(pbuf) + 22)) & le16_to_cpu((unsigned short)~0xfff0)) | \
407 #define set_duration(pbuf, dur) \ argument
409 *(unsigned short *)((SIZE_PTR)(pbuf) + 2) = cpu_to_le16(0xffff & (dur)); \
434 #define GetAid(pbuf) (cpu_to_le16(*(unsigned short *)((SIZE_PTR)(pbuf) + 2)) & 0x3fff) argument
436 #define GetTid(pbuf) (cpu_to_le16(*(unsigned short *)((SIZE_PTR)(pbuf) + (((GetToDs(pbuf)<<1) | Get… argument
438 #define GetAddr1Ptr(pbuf) ((unsigned char *)((SIZE_PTR)(pbuf) + 4)) argument
440 #define get_addr2_ptr(pbuf) ((unsigned char *)((SIZE_PTR)(pbuf) + 10)) argument
442 #define GetAddr3Ptr(pbuf) ((unsigned char *)((SIZE_PTR)(pbuf) + 16)) argument
444 #define GetAddr4Ptr(pbuf) ((unsigned char *)((SIZE_PTR)(pbuf) + 24)) argument
786 #define set_order_bit(pbuf) \ argument
788 *(unsigned short *)(pbuf) |= cpu_to_le16(_ORDER_); \
793 #define GetOrderBit(pbuf) (((*(unsigned short *)(pbuf)) & le16_to_cpu(_ORDER_)) != 0) argument