Lines Matching refs:pbuf
283 #define SetToDs(pbuf) \ argument
285 *(unsigned short *)(pbuf) |= cpu_to_le16(_TO_DS_); \
288 #define GetToDs(pbuf) (((*(unsigned short *)(pbuf)) & le16_to_cpu(_TO_DS_)) != 0) argument
290 #define ClearToDs(pbuf) \ argument
292 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_TO_DS_)); \
295 #define SetFrDs(pbuf) \ argument
297 *(unsigned short *)(pbuf) |= cpu_to_le16(_FROM_DS_); \
300 #define GetFrDs(pbuf) (((*(unsigned short *)(pbuf)) & le16_to_cpu(_FROM_DS_)) != 0) argument
302 #define ClearFrDs(pbuf) \ argument
304 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_FROM_DS_)); \
310 #define SetMFrag(pbuf) \ argument
312 *(unsigned short *)(pbuf) |= cpu_to_le16(_MORE_FRAG_); \
315 #define GetMFrag(pbuf) (((*(unsigned short *)(pbuf)) & le16_to_cpu(_MORE_FRAG_)) != 0) argument
317 #define ClearMFrag(pbuf) \ argument
319 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_MORE_FRAG_)); \
322 #define SetRetry(pbuf) \ argument
324 *(unsigned short *)(pbuf) |= cpu_to_le16(_RETRY_); \
327 #define GetRetry(pbuf) (((*(unsigned short *)(pbuf)) & le16_to_cpu(_RETRY_)) != 0) argument
329 #define ClearRetry(pbuf) \ argument
331 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_RETRY_)); \
334 #define SetPwrMgt(pbuf) \ argument
336 *(unsigned short *)(pbuf) |= cpu_to_le16(_PWRMGT_); \
339 #define GetPwrMgt(pbuf) (((*(unsigned short *)(pbuf)) & le16_to_cpu(_PWRMGT_)) != 0) argument
341 #define ClearPwrMgt(pbuf) \ argument
343 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_PWRMGT_)); \
346 #define SetMData(pbuf) \ argument
348 *(unsigned short *)(pbuf) |= cpu_to_le16(_MORE_DATA_); \
351 #define GetMData(pbuf) (((*(unsigned short *)(pbuf)) & le16_to_cpu(_MORE_DATA_)) != 0) argument
353 #define ClearMData(pbuf) \ argument
355 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_MORE_DATA_)); \
358 #define SetPrivacy(pbuf) \ argument
360 *(unsigned short *)(pbuf) |= cpu_to_le16(_PRIVACY_); \
363 #define GetPrivacy(pbuf) (((*(unsigned short *)(pbuf)) & le16_to_cpu(_PRIVACY_)) != 0) argument
365 #define ClearPrivacy(pbuf) \ argument
367 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_PRIVACY_)); \
371 #define GetOrder(pbuf) (((*(unsigned short *)(pbuf)) & le16_to_cpu(_ORDER_)) != 0) argument
373 #define GetFrameType(pbuf) (le16_to_cpu(*(unsigned short *)(pbuf)) & (BIT(3) | BIT(2))) argument
375 #define SetFrameType(pbuf, type) \ argument
377 *(unsigned short *)(pbuf) &= __constant_cpu_to_le16(~(BIT(3) | BIT(2))); \
378 *(unsigned short *)(pbuf) |= __constant_cpu_to_le16(type); \
381 #define get_frame_sub_type(pbuf) (cpu_to_le16(*(unsigned short *)(pbuf)) & (BIT(7) | BIT(6) | BIT(5… argument
384 #define set_frame_sub_type(pbuf, type) \ argument
386 …*(unsigned short *)(pbuf) &= cpu_to_le16(~(BIT(7) | BIT(6) | BIT(5) | BIT(4) | BIT(3) | BIT(2))); \
387 *(unsigned short *)(pbuf) |= cpu_to_le16(type); \
391 #define GetSequence(pbuf) (cpu_to_le16(*(unsigned short *)((SIZE_PTR)(pbuf) + 22)) >> 4) argument
393 #define GetFragNum(pbuf) (cpu_to_le16(*(unsigned short *)((SIZE_PTR)(pbuf) + 22)) & 0x0f) argument
395 #define GetTupleCache(pbuf) (cpu_to_le16(*(unsigned short *)((SIZE_PTR)(pbuf) + 22))) argument
397 #define SetFragNum(pbuf, num) \ argument
399 *(unsigned short *)((SIZE_PTR)(pbuf) + 22) = \
400 ((*(unsigned short *)((SIZE_PTR)(pbuf) + 22)) & le16_to_cpu(~(0x000f))) | \
404 #define SetSeqNum(pbuf, num) \ argument
406 *(unsigned short *)((SIZE_PTR)(pbuf) + 22) = \
407 ((*(unsigned short *)((SIZE_PTR)(pbuf) + 22)) & le16_to_cpu((unsigned short)~0xfff0)) | \
411 #define set_duration(pbuf, dur) \ argument
413 *(unsigned short *)((SIZE_PTR)(pbuf) + 2) = cpu_to_le16(0xffff & (dur)); \
438 #define GetAid(pbuf) (cpu_to_le16(*(unsigned short *)((SIZE_PTR)(pbuf) + 2)) & 0x3fff) argument
440 #define GetTid(pbuf) (cpu_to_le16(*(unsigned short *)((SIZE_PTR)(pbuf) + (((GetToDs(pbuf)<<1) | Get… argument
442 #define GetAddr1Ptr(pbuf) ((unsigned char *)((SIZE_PTR)(pbuf) + 4)) argument
444 #define get_addr2_ptr(pbuf) ((unsigned char *)((SIZE_PTR)(pbuf) + 10)) argument
446 #define GetAddr3Ptr(pbuf) ((unsigned char *)((SIZE_PTR)(pbuf) + 16)) argument
448 #define GetAddr4Ptr(pbuf) ((unsigned char *)((SIZE_PTR)(pbuf) + 24)) argument
789 #define set_order_bit(pbuf) \ argument
791 *(unsigned short *)(pbuf) |= cpu_to_le16(_ORDER_); \
796 #define GetOrderBit(pbuf) (((*(unsigned short *)(pbuf)) & le16_to_cpu(_ORDER_)) != 0) argument