Lines Matching refs:ptr
311 #define qdf_container_of(ptr, type, member) \ argument
312 __qdf_container_of(ptr, type, member)
466 static inline uint8_t *qdf_set_u16(uint8_t *ptr, uint16_t value) in qdf_set_u16() argument
469 *(ptr) = (uint8_t) (value >> 8); in qdf_set_u16()
470 *(ptr + 1) = (uint8_t) (value); in qdf_set_u16()
472 *(ptr + 1) = (uint8_t) (value >> 8); in qdf_set_u16()
473 *(ptr) = (uint8_t) (value); in qdf_set_u16()
475 return ptr + 2; in qdf_set_u16()
490 static inline uint8_t *qdf_get_u16(uint8_t *ptr, uint16_t *value) in qdf_get_u16() argument
493 *value = (((uint16_t) (*ptr << 8)) | ((uint16_t) (*(ptr + 1)))); in qdf_get_u16()
495 *value = (((uint16_t) (*(ptr + 1) << 8)) | ((uint16_t) (*ptr))); in qdf_get_u16()
497 return ptr + 2; in qdf_get_u16()
512 static inline uint8_t *qdf_get_u32(uint8_t *ptr, uint32_t *value) in qdf_get_u32() argument
515 *value = ((uint32_t) (*(ptr) << 24) | in qdf_get_u32()
516 (uint32_t) (*(ptr + 1) << 16) | in qdf_get_u32()
517 (uint32_t) (*(ptr + 2) << 8) | (uint32_t) (*(ptr + 3))); in qdf_get_u32()
519 *value = ((uint32_t) (*(ptr + 3) << 24) | in qdf_get_u32()
520 (uint32_t) (*(ptr + 2) << 16) | in qdf_get_u32()
521 (uint32_t) (*(ptr + 1) << 8) | (uint32_t) (*(ptr))); in qdf_get_u32()
523 return ptr + 4; in qdf_get_u32()